vinyumao/dsh-opencode-usage0

@chen-001/dsh-opencode-usage

OpenCode Go 套餐用量显示插件:滚动/每周/每月用量百分比与重置倒计时,输入框下方常驻徽章 + 展开卡片,Agent 可经 opencode_go_usage 工具查询。API key 默认取环境变量 OPENCODE_GO_API_KEY,可在卡片内覆盖。

AI Analysis

核心用途是实时监控和查询 OpenCode Go 套餐的用量。适合使用 OpenCode Go 服务并需要防止超额用量的用户。必要条件是需配置 OpenCode Go API 密钥。

Package
@chen-001/dsh-opencode-usage
Version
0.1.0
License
MIT
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:vinyumao/dsh-opencode-usage

Configuration

API key resolution order: plugin config file → OPENCODE_GO_API_KEY environment variable → none.

ConfigDefaultDescription
apiKeyenv varStored to ~/.dsh/dsh-opencode-usage.json (mode 0600) when filled in via the card's config form
baseUrlhttps://opencode.ai/zen/goUpstream gateway base; /v1/usage is appended automatically
refreshSeconds300Badge auto-refresh interval (seconds, min 10)
enabled / announceToAgenttrueMaster switch / whether to announce the plugin to agents

Optional file-based config:

// ~/.dsh/dsh-opencode-usage.json
{ "apiKey": "sk-…", "baseUrl": "https://opencode.ai/zen/go", "refreshSeconds": 300 }