Tokenscope
이 내용은 아직 번역본이 없습니다.
Tokenscope provides token usage, cache, context, and cost analysis for OpenCode sessions, built on the telemetry OpenCode already persists.
Key features
| Feature | Description |
|---|---|
| Session reports | Turns persisted OpenCode telemetry into a readable report |
| Honest numbers | Recorded usage kept separate from local tokenization and explanatory estimates |
| Cost tracking | Cost analysis alongside token, cache, and context views |
Installation
- Install globally:
npm install -g @ramtinj95/opencode-tokenscope
- Add the plugin to
opencode.json(project root or~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@ramtinj95/opencode-tokenscope"]
}
- Create the
/tokenscopecommand at~/.config/opencode/command/tokenscope.md— see the repository README for the command file content.