Add an API key
add_byok_keyAdd a BYOK API key for supported providers and validate it instantly, with the key encrypted in storage and failed keys quarantined.
Instructions
Add and immediately validate a BYOK API key for anthropic | openai | firecrawl | browserbase | cursor. The raw key is stored encrypted in Supabase Vault and never returned; failed probes remain quarantined. Optional baseUrl is accepted only for allow-listed OpenAI-compatible HTTPS providers. Write; NOT idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The API key value to add | |
| label | No | Human-readable label for this key | |
| baseUrl | No | Allow-listed OpenAI-compatible HTTPS base URL | |
| priority | No | Priority for ordering (lower = higher priority) | |
| provider | Yes | Provider slug | |
| projectId | Yes | Project id (`project_id` is accepted too.) |