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.2.tar.gz (45.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.6.2-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencode_db-0.6.2.tar.gz
  • Upload date:
  • Size: 45.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.6.2.tar.gz
Algorithm Hash digest
SHA256 b1a94f085fd305fa35effdf358bc29d036b2c6c51a50903bb8c01927e4a9cd54
MD5 5f4ac3b34493f5a0783238934abbd2fe
BLAKE2b-256 4fe7403b3c8286f6f9e91334392c0386cea1c897dc9763effb147187c1d13c66

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opencode_db-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 42.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.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b56152c98f297861a5f0bb8acd9a59da3dbae84c2fbf097178e3fc09c10d16
MD5 b2de5b5eb1eeb4d63b6e1d76eaaf5738
BLAKE2b-256 496d0d5ddd744d5d0c61e4913518dc66fd6f8261272a99aa8fbc4f987c315957

See more details on using hashes here.

Provenance

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