OpenCode usage and sessions

Download for macOSFree 3-day trial · Apple silicon
AgentPeek showing OpenCode sessions and monthly usage totals on a Mac
Sessions
Plugin, 10 events
Permissions
Allow or deny
Direct Chat
opencode acp
Usage
Monthly tokens and spend
Installs
~/.config/opencode/plugins/agentpeek.js

Usage OpenCode keeps, surfaced

OpenCode records everything in a local database (~/.local/share/opencode); AgentPeek reads it on your Mac and shows monthly token and spend totals with token volume in the by-day chart. No network call, no sign-in. OpenCode reports no quota percentage, so AgentPeek shows the totals themselves, and monthly, weekly, and daily spend caps alert you when crossed.

Sessions you can answer from the notch

OpenCode sessions (the desktop app included) appear with live state, tool activity, and transcripts. Permission prompts surface in the notch: allow with ⌘ A, deny with ⌘ N. Questions flag the session for attention, and the composer sends follow-up prompts into resumable sessions.

Setup and routes

AgentPeek installs a managed plugin at ~/.config/opencode/plugins/agentpeek.js, repairable from Doctor. Quick Routes opens the OpenCode plugins folder, config, and logs without the .config-or-.opencode guessing game.

Questions

Install AgentPeek: it reads OpenCode's local database on your Mac and shows monthly token and spend totals, plus a by-day chart, in the notch and menu bar. No network call and no separate sign-in.
Yes. OpenCode permission prompts surface in the Mac notch and are answered with Cmd A to allow or Cmd N to deny. Questions flag the session for attention so you can answer them in OpenCode itself.
Yes, as totals: monthly token and spend numbers read from the local database. OpenCode reports no quota percentage, so AgentPeek reports plain totals instead of inventing one, and spend caps can alert you at the thresholds you set.

OpenCode is a product of its respective owner. AgentPeek is independent and not affiliated with or endorsed by them.

Keep your agents in view

Download for macOSFree 3-day trial · Apple silicon