Add an API key
add_byok_keyAdd and validate a BYOK API key for Anthropic, OpenAI, Firecrawl, Browserbase, or Cursor, encrypt it in Supabase Vault, and quarantine failed probes.
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 |