Agents
Save (or replace) a provider's credential. The credential is encrypted with `EncryptionService` and stored inside `agent_sandbox.providers[provider_id].credentials_encrypted`.
Changed onThe 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)
- AuthHTTP bearer
Path parameters
provider_idstring required
AI provider ID
Request body
Response
Changes
- breaking
the
credentialrequest property format changed from no format topassword
- breaking
- info
the
credentialrequest property format was generalized frompasswordto no format
- info