Anthropic direct API key
POST /v1/auth/anthropic/api-key — Save an Anthropic platform API key. Validates via GET /v1/models before persisting. Lives in a dedicated `anthropicApiKe
POST /v1/auth/anthropic/api-key
Save an Anthropic platform API key. Validates via GET /v1/models before persisting. Lives in a dedicated anthropicApiKey profile slot — survives gateway restart without depending on $dataDir/env being sourced.
| Method | POST |
| Path | /v1/auth/anthropic/api-key |
| Auth | Authorization: Bearer <token> required |
| Category | auth |
Request body
{ "apiKey": "sk-ant-...", "saveAnyway"?: boolean }