Skip to main content

Create your API key →

Mint an aireserve_api_… key in the portal — every OpenCode session is then metered and billed through your organization.
OpenCode takes custom providers in opencode.json — globally at ~/.config/opencode/opencode.json or per project (OpenCode’s provider docs). One OpenAI-compatible block serves every gateway model, Claude included:
The {env:…} reference keeps the secret out of the file — export the key and run:
Model ids in the models map must match the gateway’s ids exactly — the list is one GET https://api.aireserve.com/v1/models away.

Verify

Run a one-shot prompt against the provider you just added:
The reply streams back through the gateway, and the request appears on your usage page — metered against your key.