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.6.1.tar.gz (45.2 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.6.1-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencode_db-0.6.1.tar.gz
  • Upload date:
  • Size: 45.2 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.6.1.tar.gz
Algorithm Hash digest
SHA256 427c81170dea11e85194c8ef1f6dd216436c030941b2e4e27a8675004aec47ed
MD5 73407965d53db5e4f84371c6d797fabd
BLAKE2b-256 8c12465cdfe5cd138470a50b345b4b5a208e72b2ee9cd80c38e33960efc9b61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencode_db-0.6.1.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.6.1-py3-none-any.whl.

File metadata

  • Download URL: opencode_db-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 42.2 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b91ac7790101e9538aa6c82e0a217de4f6d18ffa94ebac0066c5daf5c52b83f
MD5 579ad2b041be37de74bb35bf123f81e0
BLAKE2b-256 d17110bebf6238cd773b81002de108251241647afa112d0b9390cae5d28418bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencode_db-0.6.1-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