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.1.tar.gz (43.1 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.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencode_db-0.5.1.tar.gz
  • Upload date:
  • Size: 43.1 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.1.tar.gz
Algorithm Hash digest
SHA256 0d9ace4d81d80a1c5fda1d8c8f5ef5ad37351ddf3cdf071977b473c805531189
MD5 c5a550e0b30d9d7214a8cdf94497aa91
BLAKE2b-256 902367902d2626d517fe67509b7fe74264660f5b785cfa37e51e84e9e81ddc86

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opencode_db-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 40.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21d72922f5eba8ab734c71092a32aa63204b045f90f6e1cd525d69c9e0cd0dc2
MD5 d2d89fdd58eda5140542a0389d3e86c4
BLAKE2b-256 2bb0ccafb03e8e6c04436b9dce82f5b1e473a6c62bb6b5d8d334a9df78fb0f83

See more details on using hashes here.

Provenance

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