Agent credentials

Set personal credential

Personal credentials take priority over organization ones and need a personal API key. The key is checked with the provider where possible. A new opencode-go key is added after the existing ones, up to 10, and deleting removes them all.

post/v1/{provider}/user/credentials

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/{provider}/user/credentials
  • Auth
    HTTP bearer

Path parameters

provider'anthropic' | 'openai' | 'openrouter' | 'cursor' | 'muse-api-key' | 'opencode-go' | 'aster' | 'ollama' | 'openai-compatible' | 'bedrock' | 'claude-foundry' | 'codex-foundry' | 'claude' | 'codex' | 'muse' required

Credential provider. claude, codex, and muse subscriptions also support reads and deletes; connect those with the CLI.

Headers

X-Replicas-Api-Version'2026-10-07'

API version. 2026-10-07 returns snake_case responses. See versioning.

Request body

api_keystring
base_urlstring
models_urlstring
authorization_headerstring
aws_access_key_idstring
aws_secret_access_keystring
aws_regionstring
small_fast_model_regionstring
resourcestring
sonnet_modelstring
haiku_modelstring
opus_modelstring
modelstring
modelsstring[]

Response

Success

successboolean required
credential_idstring

Changes

No recorded changes to this operation across all 1 revision of this API.