Skip to main content
AnySpecs CLI

Code is cheap, Show me Any Specs.

📄 中文版本 | ⚙️ Quick Start | 🤔 Reporting Issues

AnySpecs CLI is a unified command-line tool for exporting chat history from multiple AI assistants. It currently supports Cursor AI, Claude Code, and Kiro Records, with support for various export formats including Markdown, HTML, and JSON.

Features

  • Multi-Source Support: Export from Cursor AI, Claude Code, Augment Code, Codex cli and Kiro Records(More to come)
  • Multiple Export Formats: Markdown, HTML, and JSON
  • Project-Based and Workspace Filtering: Export sessions by project or current directory
  • Flexible Session Management: List, filter, and export specific sessions
  • Default Export Directory: All exports save to .anyspecs/ by default for organized storage
  • AI Summary: Summarize chat history into a single file
  • Server Upload and Share: Upload exported files to remote servers
  • Terminal history and files diff history: Export terminal history and files diff history(WIP)

Installation

From Source

# Clone the repository
git clone https://github.com/anyspecs/anyspecs-cli.git
cd anyspecs-cli

# Install in development mode
pip install -e .

# Or install normally
pip install .

Using pip

pip install anyspecs

Quick Start

List All Chat Sessions in this workspace

# List all chat sessions in this workspace from all sources
anyspecs list

# List only Cursor/Claude/Kiro sessions in this workspace
anyspecs list --source cursor/claude/kiro/augment/codex/all

Export Chat Sessions

# Export current project's sessions to Markdown (default to .anyspecs/)
anyspecs export

# Export all sessions to HTML (default to .anyspecs/)
anyspecs export --all-projects --format html

# Export specific session
anyspecs export [--session-id abc123] [--format json]

# Export specific source sessions only(default is markdown) with custom output path
anyspecs export [--source claude/cursor/kiro/augment/codex] [--format markdown] [--output ./exports]

Setup config

# Setup specific AI provider
anyspecs setup [aihubmix/kimi/minimax/ppio/dify]
# list all the providers
anyspecs setup --list
# reset all the providers
anyspecs setup --reset

Compress

# Check out anyspecs compress --help for more information
anyspecs compress [--input anyspecs.md] [--output anyspecs.specs] [--provider aihubmix/kimi/minimax/ppio/dify] ....

Upload to share your specs

The default url is our official hub https://hub.anyspecs.cn/, you can also deploy the ASAP on your own server and use it.

Before your first upload, your should get your token on https://hub.anyspecs.cn/setting generate your token via 生成访问令牌, then export your token into your environment variable. eg: export ANYSPECS_TOKEN="44xxxxxxxxxxxxxx7a82".

# Default url is https://hub.anyspecs.cn/, you can also specify your server.
# Check remote specs repo
anyspecs upload --list
# Search specific repo
anyspecs upload --search "My specs"
# Upload a file to remote server
anyspecs upload --file anyspecs.specs
# Upload a file to remote server with description
anyspecs upload --file anyspecs.specs --description "My specs"

More Functions

anyspecs --help
# positional arguments:
#   {list,export,compress,upload,setup}
#                         Available commands
#     list                List all chat sessions
#     export              Export chat sessions
#     compress            AI-compress chat sessions into .specs format (auto-loads config)
#     upload              Upload files to AnySpecs hub service
#     setup               Setup and manage AI provider configurations
# options:
#   -h, --help            show this help message and exit
#   --verbose, -v         Enable verbose logging

Supported Sources

  • Cursor AI: from Cursor's local SQLite databases
  • Claude Code: from Claude Code's JSONL history files
  • Augment Code: from VSCode's history databases
  • Codex cli: from Codex cli's history files
  • Kiro Records: from summary directory of Kiro

History mainly includes:

  • Workspace-specific conversations
  • Global chat storage
  • Composer data and bubble conversations
  • Project context and metadata

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

# Clone the repository
git clone https://github.com/anyspecs/anyspecs-cli.git
cd anyspecs-cli

# Install in development mode with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black anyspecs/

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

v0.0.5

  • Add Codex cli support
  • Add Dify workflow process
  • Add upload to remote server support

v0.0.4

  • Add Augment Code support
  • Add version option

v0.0.3

  • Add AI Summary support(PPIO, Minimax, Kimi)

v0.0.2

  • Kiro Records support: Extract and export files from .kiro directory
  • Default export directory: All exports now save to .anyspecs/ by default
  • Workspace filtering: Cursor sessions now show only current workspace sessions in list command

v0.0.1

  • Initial release
  • Support for Cursor AI and Claude Code
  • Multiple export formats (Markdown, HTML, JSON)
  • Upload functionality
  • Project-based filtering
  • Organized package structure

Support

If you encounter any issues or have questions, please:

  1. Check the documentation
  2. Search existing issues
  3. Create a new issue

Metadata

Release files for anyspecs 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anyspecs 0.0.5
File Size Uploaded
anyspecs-0.0.5.tar.gz 62.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anyspecs 0.0.5
File Interpreter ABI Platform
anyspecs-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 134.8 kB

Release files / anyspecs-0.0.5.tar.gz

Download URL anyspecs-0.0.5.tar.gz
Size 62.7 kB
Tags Source
SHA-256 checksum
How to use checksums
83bb1ce3bc23cf729ebcc5098a557f73bdf6a157bf39414d007f1f837b0fa0ec
BLAKE2b-256 checksum
How to use checksums
400007d2c6994a3224e819b64331653e9c548ce9f40b35319498e9c17f467d06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / anyspecs-0.0.5-py3-none-any.whl

Download URL anyspecs-0.0.5-py3-none-any.whl
Size 72.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
955a0e87e65e865c9fb77c9e74749951253b4cd01052fc4ef120a12764108125
BLAKE2b-256 checksum
How to use checksums
4be9e04d54fa74a74e9f2122aa75d29998c96989b8e2ef6afbd5cbe92fa6e0a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page