Export all VS Code GitHub Copilot Chat conversations to JSON and Markdown.
Project description
copilotexport
Export all of your VS Code GitHub Copilot Chat conversations — including full tool-call history — to JSON and Markdown. Mirrors the layout of ChatGPT and Claude exports.
Installation
pip install copilotexport
Usage
CLI
# Export everything to ./_copilot/ and create CopilotExport.zip
copilotexport
# Custom source and output
copilotexport --src /path/to/Code/User/workspaceStorage --out ~/my-export
# Skip Markdown rendering (index + raw JSON only, much faster)
copilotexport --no-markdown
# Skip the zip file
copilotexport --no-zip
# Skip copying raw VS Code JSON (markdown + index only)
copilotexport --no-raw
Python API
from copilotexport import export, default_workspace_storage
from pathlib import Path
summary = export(
src=default_workspace_storage(),
out=Path("_copilot"),
write_markdown=True,
make_zip=True,
copy_raw=True,
)
print(summary)
Output layout
_copilot/
├── export_info.json # run summary
├── index.json # flat metadata for all sessions
├── workspaces.json # wsHash → folder URI map
├── sessions/
│ └── <workspace_label>/
│ └── <sessionId>.json # verbatim VS Code session file
└── markdown/
└── <workspace_label>/
└── <YYYY-MM-DD>_<title>_<id8>.md # human-readable transcript
Each Markdown transcript includes:
- Session metadata (title, session ID, timestamps, model, agent)
- User messages
- Assistant responses with prose rendered inline
- Tool calls rendered as structured blocks showing the tool name, request summary, result summary, and any file paths touched
Platform support
VS Code's workspaceStorage is auto-detected on Linux, macOS, and Windows.
| OS | Default path |
|---|---|
| Linux | ~/.config/Code/User/workspaceStorage |
| macOS | ~/Library/Application Support/Code/User/workspaceStorage |
| Windows | %APPDATA%\Code\User\workspaceStorage |
License
MIT — Copyright (c) DevXT LLC 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file copilotexport-0.0.1.tar.gz.
File metadata
- Download URL: copilotexport-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
815591545c9d832e53778a927cf9a460ceca49c7f537b75a1a34a1bba832b634
|
|
| MD5 |
a149261ecd4072b32a540b2552be51c5
|
|
| BLAKE2b-256 |
8641dd77e3b66905010d74a0a9865dc145411aacbad559343a0a0c1004800f34
|
File details
Details for the file copilotexport-0.0.1-py3-none-any.whl.
File metadata
- Download URL: copilotexport-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5975f287de09d690162dc0fd7fb8462f4cc960ae04b3860aabfed77e627975ed
|
|
| MD5 |
899d9c0683b2a526d6f3319090c8fbb6
|
|
| BLAKE2b-256 |
79818812ff542c8eed1822fabd6ebd2e9ba8f91f57d0fd03dc1ba8df36c51154
|