Sidebar Usage
OpenCode plugin that shows Anthropic, GitHub Copilot and OpenAI usage limits in the sidebar
0
0
20.0
生态多维模型
6 天前
2026-10-14
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@tomdewildt/opencode-sidebar-usage@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@tomdewildt/opencode-sidebar-usage@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @tomdewildt/opencode-sidebar-usageOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Plugin for OpenCode that shows the 5 hour, weekly and monthly usage limits of your Claude, ChatGPT and GitHub Copilot subscriptions in the sidebar.
How To Run
Prerequisites:
- mise version
2025.1.0or later - bun version
1.4.0or later - opencode version
2.0.0or later
Development
- Run
mise run initto initialize the environment. - Run
mise run testto run the tests. - Run
mise run buildto bundle the plugin intodist/.
How To Use
Add the plugin to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["@tomdewildt/opencode-sidebar-usage"]
}
References
同类生态推荐
Sidebar Context
@tomdewildt/opencode-sidebar-context
OpenCode plugin that shows context usage, cache hit rate and cost in the sidebar
Llm Proxy
opencode-llm-proxy
Local AI gateway for OpenCode with tool/function calling — use any model via OpenAI, Anthropic, or Gemini API format
Copilot Delegate
opencode-copilot-delegate
OpenCode plugin that delegates tasks to GitHub Copilot CLI as background subprocesses