opencode-session-cost
v2.1.0
Published
OpenCode TUI plugin that shows subagent cost breakdown in the sidebar, using only OpenCode's own local session data.
Maintainers
Readme
opencode-session-cost
OpenCode 2.x includes subagent spend in the session total, but doesn't show how much came from subagents or which subagent cost what.
This plugin adds a collapsible Subagents block to the OpenCode sidebar whenever a session spawns subagents, showing the subagent count, combined subagent spend, and a per-subagent cost breakdown.

Click any subagent in the list to open its session details dialog with the agent, model, status, duration, 4-decimal cost, token breakdown, and shortcuts to switch between subagents or jump directly into that subagent's session:

Install
Requires OpenCode 2.x. Run:
opencode plugin add opencode-session-costRestart the OpenCode TUI and the Subagents section will appear automatically whenever a session uses subagents.
Contributing
Contributions are welcome. See CONTRIBUTING.md for development setup, coding standards, and the pull request process.
License
MIT — see LICENSE.
