OpenCode
Anomaly
The open-source terminal coding agent. Install our plugin, log in, and every model your key can call appears with its real limits.
OpenCode connects to Actualyze through opencode-actualyze, a plugin Actualyze publishes. Once you log in with an API key, the plugin asks Actualyze which models the key can call and adds each one to OpenCode with its context window, output limit, tool and reasoning support, input types and prices.
Before you start
- OpenCode 2. Run
opencode --versionand check that it prints a 2.x version. OpenCode's documentation lists the installers for each platform. - An Actualyze API key with the inference scope and read-write permission. Workspace Admins, Members and FinOps Managers who belong to a team can create one: in the Actualyze app, select API Keys under ADMIN in the sidebar (every role that can hold keys sees this page, not only admins), then select Create API Key. Keep the default Read & Write permission. The key's budget is the one your OpenCode usage draws down.
Install
opencode plugin add opencode-actualyzeThe plugin adds the Actualyze provider itself, so there is nothing to put in opencode.json.
Connect to Actualyze
Connect your API key in either of two ways:
- From a shell, run
opencode auth login, pick Actualyze from the list, and paste your key. - In OpenCode, run
/, pressactualyze kto connect a key, and paste it.
Choose a model
Run / and pick a model under Actualyze. The list is every model your key can call, each with the context window, output limit, capabilities and prices Actualyze reports. The plugin keeps the list up to date, so models added to your key show up without any change on your side.
/ shows which key is connected and the models it found.
Troubleshooting
- Actualyze doesn't appear in
/: no key is connected. Runmodels /and pressactualyze kto connect one. - The
/command doesn't exist: the plugin isn't installed. Runactualyze opencode plugin listto check, then install it (see Install). /saysactualyze No models for this key: the key works, but its team has no model access yet. Ask a Workspace Admin.- Some models are missing: your key can't call them, or an administrator hid them from discovery.
402: a spend limit stopped the request before any model ran, so nothing was charged. The message says which limit: usually the key's budget, or the key's own monthly limit.401: the key was rejected. It may be mistyped, revoked or expired, lack the inference scope, or belong to someone who is no longer on the key's team.403: the request was refused. If the message says read-write permission is required, the key is read-only; create a read-write key. Otherwise your team can't use the model you asked for; check its access in the Model Catalog or pick another.402sayingBudget required: the key's budget was deleted, archived or retired, or you no longer have access to it. Create a new key bound to a budget you can use.- Model not found: the model is no longer available to your key. Press
rin/to refresh the list.actualyze
Reference
| Setting | Value |
|---|---|
| Endpoint | https:// |
| Connect a key | opencode auth login, then Actualyze, or /, then k |
| Connection status | / |
| Pick a model | / |
| Update the plugin | opencode plugin update opencode-actualyze |
- Plugin source and README: actualyze-ai/opencode-actualyze
- OpenCode 2's providers and plugins documentation
Actualyze labels this traffic as OpenCode in the Client column of the Observability Activity tab, which Workspace Admins, FinOps Managers and Auditors can see. Requests you cancel mid-stream still draw down the usage they consumed.