Skip to main content
POST
Set CLAUDE_CODE_OAUTH_TOKEN and attach a claude-oauth runtime credential

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
agents
string

Comma-separated agent allowlist (default: main)

label
string

Credential label (default: claude-oauth)

setProvider
boolean

Also run agents.set provider claude

stdin
boolean

Read the token from redirected stdin (CLI; no TTY)

token
string

OAuth token for gateway/JSON callers; redacted from audit

Response

Success — body conforms to the @Returns schema.

agents
object[]
required
credential
object
required
credentialCreated
boolean
required
env
object
required