Skip to content

/v1/settings

GET /v1/settings
{
"general": {
"host": "127.0.0.1",
"port": 8787,
"mode": "balanced"
},
"byok": {
"openai_key": "sk-...",
"anthropic_key": "sk-ant-...",
"groq_key": "gsk-...",
"openrouter_key": "sk-or-...",
"backend_url": "https://api.fastlane.dev",
"device_id": "abc-123-def"
}
}
POST /v1/settings
Content-Type: application/json
{
"general": {
"host": "127.0.0.1",
"port": 8787,
"mode": "accurate"
},
"byok": {
"openai_key": "sk-new-key"
}
}
{
"status": "saved",
"restart_required": true
}

Settings changes require a proxy restart to take effect. The API saves to disk, but the running process uses the settings loaded at startup.