bodhi-cli
End-user CLI for Bodhi — a coding assistant grounded in attestation + modular decomposition.
Pre-release. This README documents commands that ship today; the package is at version
0.0.0until the v0.1.0 trigger lands per ADR-0050. The empirical defenses of Bodhi's two non-negotiable wedges (modular decomposition + verifiability) are operator-gated and not yet published.
Commands
bodhi explain <path>— read a local code file, return a Claude-generated explanation rendered in the terminal with the project's design-token theme.bodhi review [diff]— review a unified diff file (or stdin when omitted) using Claude. Usebodhi review -to read from stdin explicitly.bodhi commit-msg [diff]— generate a Conventional-Commits-style commit message from a unified diff (file or stdin).bodhi upgrade-self— re-installbodhifrom the workspace source so the PATH binary tracksmain. Workspace-only convenience for contributors running from a checkout.bodhi --version(or-V) — print the package version and exit.bodhi --help— show the top-level help and exit.
Configuration
bodhi-cli resolves required values (ANTHROPIC_API_KEY, BODHI_ANTHROPIC_MODEL, BODHI_MAX_INPUT_BYTES, and per-command _MAX_TOKENS caps) from these sources, in order — the first match populates BodhiCliSettings. Shell environment variables always win on top.
- Explicit override —
BODHI_CONFIG_PATH=/path/to/config.toml. Read as TOML. - Workspace
infra/.env— relative to the current directory. Used by repo-cloned workflows. - Workspace
.env— relative to the current directory. Same shape asinfra/.env. - User-scoped
~/.config/bodhi/config.toml— for pip-installed users with no repo clone. HonorsXDG_CONFIG_HOMEwhen set (e.g.$XDG_CONFIG_HOME/bodhi/config.toml).
The TOML schema uses lowercased env-var names as keys:
anthropic_api_key = "sk-ant-..."
bodhi_anthropic_model = "claude-haiku-4-5-20251001"
bodhi_max_input_bytes = 200000
bodhi_explain_max_tokens = 1024
bodhi_review_max_tokens = 1024
bodhi_commit_msg_max_tokens = 512
Recommended permissions for the user-scoped config: chmod 600 ~/.config/bodhi/config.toml (the file holds your Anthropic API key). The CLI does not enforce permissions — your filesystem, your call.
See packages/bodhi_cli/src/bodhi_cli/settings.py for the canonical surface.
Documentation
- Reference:
docs/reference/cli/bodhi.md— manual reference for each command. - Decisions: ADRs at
docs/adr/— the directional calls behind this surface live in ADR-0002 through ADR-0013, with ADR-0050 covering the release cadence and ADR-0060 covering license + open-frontier posture. - Tutorials:
docs/tutorials/— end-user learning paths (the v0.1.0 getting-started tutorial lands separately under issue tracking T1-E).
License
Apache 2.0 — see LICENSE at the repository root. The wheel bundles LICENSE per Apache 2.0 §4(a) (T1-I per the v0.1.0 readiness spike at docs/spikes/bodhi-cli-v0.1.0-readiness.md).
Metadata
Release files for bodhi-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bodhi_cli-0.1.0.tar.gz | 33.5 kB | With provenance | Details for bodhi_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bodhi_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bodhi_cli-0.1.0-py3-none-any.whl |
Total release size: 58.3 kB
Release files / bodhi_cli-0.1.0.tar.gz
| Download URL | bodhi_cli-0.1.0.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f003743633cfdcc2d4070b9d1c057cc67e7afa711b504412a0f4350526704761
|
|
BLAKE2b-256 checksum How to use checksums |
6f66a8c82b8ea735ccc88d1b5fd9f81a15fe3fba91b08c74c01eb5b5c01ba655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logRelease files / bodhi_cli-0.1.0-py3-none-any.whl
| Download URL | bodhi_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81eae7456e6bfe774fda52368faf9aff358dc124a1b5afc5de1ae6cbe5a7cfd6
|
|
BLAKE2b-256 checksum How to use checksums |
9f54e67f5ee470088955f46039f9fbf806741575f27dca5e780dd2a5ae8863ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logSecurity for bodhi-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bodhi_cli-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.