REFERENCE
Environment
Variables Uno reads. Keys may also sit in ./.env or ~/.config/uno/.env.
| Variable | Meaning |
|---|---|
ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY … | A provider's key; each provider's variable is in the table on Providers and models. uno switch saves them in ~/.config/uno/.env |
CLOUDFLARE_ACCOUNT_ID | The account for Cloudflare Workers AI, with CLOUDFLARE_API_TOKEN |
UNO_<NAME>_API_KEY | The key for a custom gateway named <name> in your settings |
OPENAI_COMPAT_API_KEY | Key for --provider openai-compat --base-url … |
UNO_SPEND_CAP_USD | Total spending cap for this run, over the spend_cap setting; off for none. No cap by default |
UNO_SCREEN | dot or chat |
UNO_CONFIG_DIR | Config folder; default ~/.config/uno |
UNO_DATA_DIR | Data folder; default ~/.local/share/uno |
NO_COLOR | No colour; the dots stay |
UNO_VERSION, UNO_INSTALL_DIR | For the installer: which version, and where |
Inside commands Uno runs, UNO_AGENT is set, so scripts can tell they are being run by Uno. Hooks also get CLAUDE_PROJECT_DIR.