Skip to main content
Qwen Code is an OpenAI-compatible coding CLI. You can point it at a Valkyrie deployment with a few environment variables, or with a settings file if you want it saved.

Quick setup with environment variables

Environment variables take priority. You can also put them in ~/.qwen/.env (or ./.qwen/.env for a single project).

Saved setup with settings.json

To keep the config, add a provider to ~/.qwen/settings.json:
envKey names the environment variable that holds your key, so the key itself stays out of the file.
The base URL ends in /v1. Use your deployment slug (deployment-{id}) or an alias, and set the model id to what your deployment serves.