Thinking of leaving abacus.ai but can't seem to find anyway to take your data with you?
Then the Abacus.ai Chat Exporter is for you!
Two powerful tools for Abacus.AI:
- π¬ Chat Exporter: Bulk download your chat conversations to HTML and JSON format
 - π PDF Processor: Batch upload and process PDFs with automated prompts
 
Export all chats from all projects:
cd ~/programs/abacus-chat-exporter
source venv/bin/activate
export ABACUS_API_KEY="your-key"
# Run the export
./export_all.shIf the export completes but folders are empty:
- You may not have created any chats yet
 - Go to https://abacus.ai and verify chats exist in the web UI
 - See NO_CHATS_FOUND.md for diagnosis
 
If you're seeing API errors:
- See PROJECT_SCOPED_SOLUTION.md
 - Or QUICK_REFERENCE.md for troubleshooting
 
Batch upload and process PDFs with automated prompts:
./process_pdfs.shSee PDF_PROCESSING.md for detailed documentation.
Abacus.AI provides APIs to list and export chat sessions. This tool includes scripts for:
- Option A: Exporting "Data Science Copilot" chats (AI Chat)
 - Option B: Exporting "Deployment Conversations" (production assistant chats)
 - Diagnostic Tools: Find where your chats are stored
 
Automates bulk PDF uploads to Abacus.AI with three-stage processing:
- Summarize the paper
 - Extract insights using symbolic logic
 - Demonstrate insights with C++ code examples
 
The project includes a pre-configured Python 3.13 virtual environment. Activate it:
cd ~/programs/abacus-chat-exporter
source venv/bin/activateOr if starting fresh:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Log into Abacus.AI
 - Navigate to Settings β Profile & Billing
 - Enable API metering
 - Go to API Keys Dashboard and create a new key
 - Save your key securely
 
Export all your Data Science Copilot chat sessions:
export ABACUS_API_KEY="your-api-key-here"
python bulk_export_ai_chat.pyThis will create a folder abacus_ai_chat_exports/ containing:
.htmlfiles for human-readable chat history.jsonfiles for full fidelity data (can be used to rehydrate later)
Export conversations from a specific deployed assistant:
export ABACUS_API_KEY="your-api-key-here"
export DEPLOYMENT_ID="your-deployment-id"
python bulk_export_deployment_convos.pyThis will create a folder abacus_deployment_{DEPLOYMENT_ID}_exports/ with HTML exports.
Files are named with the pattern: {timestamp}__{name}__{id}.{ext}
Example: 2025-10-21T10-30-00__my_chat_session__abc123.html
Human-readable chat history with formatting and structure preserved.
Complete data dump including:
- Chat session metadata
 - Full message history
 - Timestamps
 - All custom fields
 
If you prefer shell scripting:
# List all AI Chat sessions
curl -s -H "x-api-key: $ABACUS_API_KEY" \
  "https://api.abacus.ai/api/v0/listChatSessions" > sessions.json
# Export a specific session
curl -s -X POST -H "x-api-key: $ABACUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chatSessionId": "your-session-id"}' \
  "https://api.abacus.ai/api/v0/exportChatSession" > export.htmlFor full account-level data exports (GDPR/CCPA requests), contact Abacus.AI support. They honor data access requests with a ~15-day turnaround.
If the export script reports "No chat sessions found":
- 
Run the discovery tool:
source venv/bin/activate export ABACUS_API_KEY="your-key" python discover_chats.py
 - 
Check the web interface:
- Visit https://abacus.ai and verify you have chats
 - Note the URL pattern when viewing a chat
 - See 
FINDING_CHATS.mdfor detailed guidance 
 - 
Explore API methods:
python explore_api.py
 
- Verify your API key is correct
 - Ensure API metering is enabled in your account
 - Check that the key has not expired
 
The scripts include fallback mechanisms:
- If 
exportChatSessionfails, the script will fetch raw data viagetChatSessionand render HTML locally - Both HTML and JSON are saved to preserve data integrity
 
If you get segmentation faults (exit code 139):
./fix_segfault.shSee TROUBLESHOOTING.md for details.
bulk_export_ai_chat.py- Export AI Chat sessionsbulk_export_deployment_convos.py- Export deployment conversationsexport_all.sh- Convenience wrapper for both exportsexport_with_curl.sh- Alternative shell-based exporter
find_my_chats.py- π― Start here - Comprehensive chat finderdiscover_chats.py- Scan all account resourcesexplore_api.py- List all available API methodsdiagnose.sh- Interactive diagnostic tool
activate.sh- Activate virtual environmentfix_segfault.sh- Fix Python 3.13 compatibility issuestest_api.py- Test API connection
README.md- This fileQUICK_REFERENCE.md- Fast lookup for finding & exportingFINDING_CHATS.md- Detailed troubleshooting for missing chatsTROUBLESHOOTING.md- Fix common issuesQUICKSTART.md- Basic setup and usage
Free to use and modify for personal or commercial use.