Agents
Save (or replace) a provider's credential. The credential is encrypted with `EncryptionService` and stored inside `agent_sandbox.providers[provider_id].credentials_encrypted`.
The plaintext shape depends on the flavor's credential_format:
- ApiKey / OauthToken: the key/token string.
- ConfigFile: the full file body (e.g. OpenCode's auth.json).
post/settings/ai-providers/{provider_id}/credential
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/settings/ai-providers/{provider_id}/credential
- Auth: HTTP bearer
Path parameters
provider_idstring required
AI provider ID
Request body
Response
Changes
No recorded changes to this operation across all 50 revisions of this API.