Skip to main content

cli-sessions

List and resume your Claude Code, Codex, Antigravity (agy), and Copilot CLI sessions from one place.

Each of these tools prints a session ID when you quit, with no built-in way to browse past sessions across tools. sessions scans each tool's local session storage and gives you one sorted, searchable list.

Install

pip install cli-sessions

Usage

sessions            # all sessions, oldest first, most recent last
sessions --claude    # only Claude Code
sessions --codex     # only Codex
sessions --agy       # only Antigravity
sessions --copilot   # only Copilot CLI

Pick a number to resume that session — sessions runs the right resume command (claude --resume, codex resume, agy --conversation, or copilot --resume=) in the session's original working directory.

How it works

Nothing is sent anywhere. sessions only reads local session files each tool already writes:

  • Claude Code: ~/.claude/projects/*/*.jsonl
  • Codex: ~/.codex/state_*.sqlite (or ~/.codex/session_index.jsonl as a fallback)
  • Antigravity: ~/.gemini/antigravity-cli/conversations/*.db + history.jsonl
  • Copilot CLI: ~/.copilot/session-store.db

License

MIT

Metadata

Release files for cli-sessions 0.1.0

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

Source distribution (sdist)

Source distribution for cli-sessions 0.1.0
File Size Uploaded Provenance Actions
cli_sessions-0.1.0.tar.gz 5.7 kB Without provenance Details for cli_sessions-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cli-sessions 0.1.0
File Interpreter ABI Platform Actions
cli_sessions-0.1.0-py3-none-any.whl Python 3 none any Details for cli_sessions-0.1.0-py3-none-any.whl

Total release size: 12.6 kB

Release files / cli_sessions-0.1.0.tar.gz

Download URL cli_sessions-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
10e0c74259cf8c5ae7e760a3baacb4022d89fab88dac97baab48be64048f7bd2
BLAKE2b-256 checksum
How to use checksums
cf30cd0e62afe75b7ac697c19487e920ceab0e122a4dce4190c6815a3abd3536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / cli_sessions-0.1.0-py3-none-any.whl

Download URL cli_sessions-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51a1e608b584fd3e64150d29757f5958f8ab449998e0ae5343f2f6ee0038519b
BLAKE2b-256 checksum
How to use checksums
9d07228d5b454747ee2880f6a7a82e8e8b9bd9221ad200bc1cd3c998be76baa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for cli-sessions 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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