Observed since 21 Oct, 10:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Convert AI chat conversations to structured Markdown
Convert AI chat conversations to structured Markdown documents.
# Install
pip install aichat2md
# Configure (one-time setup)
aichat2md --setup
# Convert a ChatGPT share URL
aichat2md https://chatgpt.com/share/xxx
# Convert a webarchive file
aichat2md ~/Downloads/chat.webarchive
# ChatGPT
aichat2md https://chatgpt.com/share/xxx
# Gemini (supports both long and short URLs)
aichat2md https://gemini.google.com/share/xxx
aichat2md https://g.co/gemini/share/xxx
# Doubao
aichat2md https://www.doubao.com/thread/xxx
# Webarchive file
aichat2md ~/Downloads/conversation.webarchive
# HTML files (Chrome/Edge/Firefox/Safari)
aichat2md ~/Downloads/conversation.html
aichat2md ~/Downloads/conversation.mhtml
Note: Claude share links cannot be directly extracted due to Cloudflare browser detection. Please export manually:
aichat2md <exported-file>pip install aichat2md
playwright install chromium
aichat2md --setup
You'll be prompted to:
# Convert from URL (uses configured output directory)
aichat2md https://chatgpt.com/share/xxx
# Convert from webarchive (outputs to same directory as input)
aichat2md ~/Downloads/chat.webarchive
# Use Chinese prompts (even if English is configured)
aichat2md <url> --lang zh
# Use English prompts
aichat2md <url> --lang en
# Specify output file
aichat2md <url> -o ~/Documents/my-notes.md
aichat2md <url> --output ~/Documents/my-notes.md
# Use a different model than configured
aichat2md <url> --model gpt-4o
aichat2md <url> --model deepseek-chat
aichat2md --version
Configuration is stored in ~/.config/aichat2md/config.json (cross-platform).
{
"api_key": "sk-your-api-key",
"api_base_url": "https://api.deepseek.com",
"model": "deepseek-chat",
"language": "en",
"output_dir": "/Users/you/Downloads",
"max_tokens": 4000,
"temperature": 0.7
}
aichat2md --setup
The tool converts chat conversations into structured Markdown with:
---
tags: [Python, API, Web]
date: 2026-02-02
source: https://chatgpt.com/share/xxx
---
# Building REST APIs with FastAPI
## Summary
This document covers building production-ready REST APIs using FastAPI...
## Key Topics
- API design patterns
- Request validation
- Error handling
## API Design Principles
...
## Code Examples
\```python
from fastapi import FastAPI
app = FastAPI()
...
\```
This saves costs and allows local caching of extracted content.
# Clone repository
git clone https://github.com/yourusername/aichat2md.git
cd aichat2md
# Install in editable mode
pip install -e .
# Install Playwright
playwright install chromium
pip install pytest
pytest tests/
pip install build
python -m build
Run aichat2md --setup to create configuration.
Check your API key in ~/.config/aichat2md/config.json.
Install browsers: playwright install chromium
Claude share links cannot be directly extracted due to Cloudflare browser detection. Please export manually:
aichat2md <exported-file>The conversation might be too short or the AI response failed. Check error messages.
Contributions welcome! Please:
MIT License - see LICENSE file.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.3.3 | 27 Feb 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6dc846866cd2889a91bf887844f29b5240787eba0725d39da50cb6d5ae47b78c