Skip to main content
Actualyze AI LogoActualyze AI Logo
All integrations
OpenCode logoOpenCode logo

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.

Terminal agentsOpenAI Chat CompletionsActualyze plugin

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 --version and 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-actualyze

The 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 /actualyze, press k to connect a key, and paste it.

#Choose a model

Run /models 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.

/actualyze shows which key is connected and the models it found.

#Troubleshooting

  • Actualyze doesn't appear in /models: no key is connected. Run /actualyze and press k to connect one.
  • The /actualyze command doesn't exist: the plugin isn't installed. Run opencode plugin list to check, then install it (see Install).
  • /actualyze says 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.
  • 402 saying Budget 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 r in /actualyze to refresh the list.

#Reference

SettingValue
Endpointhttps://app.actualyze.ai/openai/v1
Connect a keyopencode auth login, then Actualyze, or /actualyze, then k
Connection status/actualyze
Pick a model/models
Update the pluginopencode plugin update opencode-actualyze

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.

Need an API key?

Start a trial and create a key in a few minutes, or talk to us about rolling Actualyze out across your teams.