Security model
API keys are project credentials. Treat them like passwords:- Do not expose secret API keys in browser-side code.
- Store keys in a server-side secret manager or environment variable.
- Rotate keys if they are leaked.
- Use separate keys for development, staging, and production.
Example
Errors
Authentication errors use the platform error format:Personal MCP
Model HTTP APIs use ordinarysk_ API keys. For account management through MCP, create a separate mcp_user_ token with explicit scopes and expiry. See Personal MCP for credential differences, the connection URL and revocation.