Hotakus / opencode-visual-cache
Public实时 Token 缓存命中率 · TUI 侧边栏可视化 自适应主题色 · 自动低饱和设计语言 · 支持中/英双语;Real-time Token Cache Hit Rate · TUI Sidebar Visualization Adaptive Theme Colors · Auto-desaturated · Chinese / English
OpenCode Visual Cache is a plugin that adds a real-time statistics panel to the OpenCode AI coding assistant. It shows users their token cache hit rate (how much context the AI reuses), a breakdown of tokens read from cache versus fresh tokens, session costs, and money saved through caching. The panel automatically adapts to your color theme, supports Chinese and English, and can be collapsed to save sidebar space. It's designed for developers who want visibility into their AI usage and costs while coding.
How It Works
You open OpenCode and begin working on your project with an AI assistant by your side.
As your sessions get longer, you become curious about how much you're spending and how efficiently the AI is working.
You open the command menu and search for a way to track your AI usage, finding the cache statistics plugin.
A simple command installs the plugin automatically, and OpenCode takes care of everything for you.
A sleek new panel slides into your sidebar, showing your cache hit rate, token counts, and savings in real-time.
As you chat with the AI, you see the numbers change live—fresh tokens, cached reads, and how much money you're saving.
Now you can see exactly how efficiently your AI sessions run and how much caching saves you, all in a beautiful panel that matches your theme.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.