Skip to main content
Opencode lets you add a custom provider through its AI SDK support, so you can point it at a Valkyrie deployment over the OpenAI-compatible API.

Configure the provider

Add Valkyrie to your Opencode config, either global at ~/.config/opencode/opencode.json or per-project at ./opencode.json:
Then export your key and start Opencode:
The baseURL ends in /v1. Use your deployment slug (deployment-{id}) or an alias in place of {deployment_slug}, and set your-model-id to the model your deployment serves. {env:VAR} reads the key from the environment so it never lands in the config file.

A real example

Against Valkyrie’s shared Qwen deployment (alias qwen, model RadixArk/Qwen3.8-27B-NVFP4):