chieflab_set_provider_key
Store a provider API key for THIS workspace. Once stored, ChiefLab uses your key (BYOK — you pay the provider directly, no markup). Without it, ChiefLab uses its own key and bills through with a margin. Providers: gemini (image gen), resend (email), zernio (social publish), anthropic (LLM, future), openai (LLM, future). Stored encrypted at rest. Use chieflab_revoke_provider_key to remove. The key never leaves this workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | The provider API key (e.g. for Gemini: a Google API key starting with AIza...). | |
| provider | Yes | gemini | resend | zernio | anthropic | openai | |
| workspaceId | No | Optional workspace id (defaults to your bearer's workspace). |