This guide shows how to configure OpenCode to use Ambient's inference API.
Prerequisites#
- An Ambient account with credits
- An Ambient API key from app.ambient.xyz/keys
- OpenCode installed
Configuration#
Launch OpenCode#
opencodeOpen the model selection menu#
Type
/modelsto launch the inference model selection menu.Open the provider selection menu#
Hit
Ctrl-Ato open the provider selection menu.Select Ambient#
Type
Ambientin the search box and press Enter.Paste your API key#
You'll be prompted for your Ambient API key. Paste the key from app.ambient.xyz/keys when asked.
Pick a model#
Then, select your desired model and proceed to complete the setup.
Resources#
- Quickstart: keys, first request, and what comes back
- Models and readiness: what the network is serving right now
- OpenCode documentation (external)