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.0.tar.gz (44.9 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.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencode_db-0.6.0.tar.gz
  • Upload date:
  • Size: 44.9 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.0.tar.gz
Algorithm Hash digest
SHA256 3d6bdfed358f9cd02c11c81d17bc1f3e3cdbee83aec8d6745c83956413a49e45
MD5 df8ec4a6c54f21efc9be9c222d2101da
BLAKE2b-256 7eb30d1c5f0003bae04b3f2866f8852039c26fdf5f9bcce88ad2e30ff9d3b06e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opencode_db-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 42.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2388f64c97ca3a59a0392ac9b9e44a49cf27b64d5814b12f314689ffcd884583
MD5 59cf825040669c29b31915b22bf80d23
BLAKE2b-256 b7bb0c1ca9f39a5ebb1b6b993b8b01560715ced4eec5770bafd128b831e8dacb

See more details on using hashes here.

Provenance

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