View and manage your OpenCode Go subscription right in VS Code: 5-hour/weekly/monthly usage bars, subscription status, available models, and multi-account support with one-click console access.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Add, switch, rename, or remove plans from the account management view.
The extension does not scan auth.json. Each key must be added explicitly.
Settings
Setting
Default
Description
opencodeGo.autoRefreshInterval
60
Refresh interval in seconds. Set to 0 to disable automatic refresh.
opencodeGo.gatewayUrl
""
Optional local gateway origin, for example http://127.0.0.1:8000. Only loopback HTTP(S) origins are accepted.
opencodeGo.notifyThresholds
{enabled:true,warn:80,crit:100}
Warning and critical usage thresholds.
Data and configuration safety
API keys are stored in VS Code SecretStorage and sent only to the official OpenCode usage endpoint. See SECURITY.md for the exact data flow. Context configuration changes preserve existing fields and create opencode.json.bak before replacement.
Development
This 0.4.0 repository is a JavaScript recovery baseline created from the previously installed extension. src/extension.js is the source of truth while the code is incrementally split into maintainable modules.
npm ci
npm run build
npm run check
npm run test:unit
npm run test:integration
npm run package
npm run package writes the VSIX to artifacts/. Public release setup and versioning are documented in RELEASING.md.