Skip to main content
POST
Start a Claude sign-in
Takes a managing key (oc_key_...) or a signed-in session. See LLMs for LLM keys in a vault. Begins signing a Claude subscription into a vault. Open the url; Claude shows a code to paste into the finish call. Good for ten minutes.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
vaultId
string
required

The vault the item goes in.

Required string length: 1 - 64

Response

The link to open and the state to give back.

state
string
required

Give it back on finish, as is.

url
string
required

Open it in the browser. Claude shows a code to paste back.