opencode is the most-starred open-source terminal coding agent — provider-agnostic and bring-your-own-key, so every token is billed straight to you. Terse auto-detects the opencode process, compresses every prompt before it reaches the model, and tracks per-turn cost. All on-device.
opencode runs an agentic loop: it reads your repo, edits files, and runs commands, feeding every diff and command output back into context each turn. That context — and the bill on your own API key — grows fast. Terse compresses what it can (your typed prompts) and flags what you shouldn't ignore: the same files being re-read turn after turn.
Terse scans running processes every 5 seconds. When opencode launches in your terminal, a floating monitor bar appears automatically — no plugin, no config, no changes to opencode itself.
AutomaticEvery instruction you type into opencode's prompt goes through Terse's 7-stage pipeline: typo correction, filler removal, hedge stripping, and phrase shortening. Code blocks and file paths pass through unchanged.
7-Stage Pipelineopencode's agentic loop re-reads files as it edits — often the same file several times per session. Terse tracks this and warns when a file has already been read, so you can stop it re-loading context it already has.
Session Trackingopencode works with Claude, GPT, Gemini, OpenRouter, or a local model. Terse reads whichever model is active and tracks per-turn cost at that provider's real rate. Switch providers mid-project and the numbers follow.
Per-Turn VisibilityAt the end of each opencode session, Terse shows total token usage, total cost on your own API key, and a breakdown of where tokens went — prompts, file reads, command output. Know exactly what drove the bill.
Session AnalyticsTerse reads your terminal input via OS Accessibility APIs and compresses locally in Rust. No prompt text, no code, and no file contents are ever sent to Terse's servers — fitting for an open-source, self-hosted workflow.
Zero Cloudopencode is provider-agnostic, and so is Terse. It tracks token costs and monitors sessions regardless of which model you point opencode at — directly or through OpenRouter.
Everything about using Terse with opencode.
Terse reduces token costs across every major terminal coding agent.
30-day free trial. No credit card required until your trial ends. Works with any provider opencode uses — Claude, GPT, Gemini, and local models.