Docs · Reference
Config, env, and exit codes.
Config file
TOML. Each profile is a separate file under profiles/.
toml
# ~/.config/v0cli/profiles/default.toml (XDG)
# or ~/Library/Application Support/v0cli/profiles/default.toml on macOS
[auth]
api_key = "v1_..."
[defaults]
model_id = "v0-pro"
privacy = "private"
[rate_limits]
# warn when under N remaining requests
warn_threshold = 10Environment variables
Var
Effect
V0_API_KEYOverrides profile API key.
V0_PROFILEActive profile name (default:
default).V0_BASE_URLOverride API base (default
api.v0.dev/v1).V0_CLI_HOMEPin all on-disk state to a custom dir.
NO_COLORDisable ANSI colors.
FORCE_COLORForce ANSI colors in non-TTY.
Exit codes
Code
Meaning
0Success.
1Generic error (network, runtime).
2T2 confirm required in JSON mode (missing
--yes).3Rate limit exhausted.
4Validation failure (bad params).
5T3 intent token required / invalid / consumed.
124chat wait timeout.130User cancelled (Ctrl-C,
v0 init).