Skip to main content

OpenCode database CLI manager — browse, export, analyze, clean up sessions

Project description

opencode-db

Python License

CLI for OpenCode's local database. OpenCode saves every agent session, conversation, token usage, and cost in a local SQLite file. This tool lets you inspect, export, analyze, and clean up that data.

pip install opencode-db

Quick start

opencode-db list         # recent sessions
opencode-db stats        # database summary
opencode-db costs --total  # total token costs
opencode-db export       # export dialog to .md (interactive)
opencode-db help         # full reference

Requirements

  • Python 3.12+
  • OpenCode (must have been run at least once)
  • macOS / Linux

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencode_db-0.5.0.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencode_db-0.5.0-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file opencode_db-0.5.0.tar.gz.

File metadata

  • Download URL: opencode_db-0.5.0.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for opencode_db-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7d09c32b840c34c2bda34c783a65723bb207d363df76229efd609dc875c8e7c6
MD5 1b71936a78afa368631a812791996590
BLAKE2b-256 87348d66aad5579056ce9e001c52aa803ba4da22698c55ed2349951d5ccc59de

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencode_db-0.5.0.tar.gz:

Publisher: release.yml on VasilevNStas/opencode-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opencode_db-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: opencode_db-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for opencode_db-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0024d0bc5e0b8ff837682d75b63564eb860e8d9f3c21ade8d9f31b25c6562271
MD5 d41f35a53ccc3133e2d30cc186a582df
BLAKE2b-256 06df5ab2c3fa2e567fbc4bd98aedb5a9750a0ec511e0982b2004279a1601574f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencode_db-0.5.0-py3-none-any.whl:

Publisher: release.yml on VasilevNStas/opencode-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page