Skip to main content
POST
Atomically set one allowlisted key in the Ravi env file

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
key
string
required

Allowlisted env key, e.g. CLAUDE_CODE_OAUTH_TOKEN

stdin
boolean

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

value
string

Value for gateway/JSON callers; redacted from audit

Response

Success — body conforms to the @Returns schema.

action
enum<string>
required
Available options:
set,
unset
daemonReloadRequired
boolean
required
key
string
required
origin
enum<string>
required
Available options:
file,
process,
file+process,
absent
path
string
required
present
boolean
required
processPresent
boolean
required
redacted
boolean
required
secret
boolean
required
value
string | null
required