1、config.toml
model_provider = "rightcode"
model = "gpt-5.2"
model_reasoning_effort = "high"
disable_response_storage = true
preferred_auth_method = "apikey"
windows_wsl_setup_acknowledged = true
[model_providers.rightcode]
name = "rightcode"
base_url = "https://www.right.codes/codex/v1"
wire_api = "responses"
env_key = "RIGHTCODE_API_KEY"2、powershell
[Environment]::SetEnvironmentVariable("RIGHTCODE_API_KEY","your-api-key","Machine")