/docs/ai/keys-and-tokens

The AI Gateway's account endpoints use two credentials, covered here. (Keys for the Anthropic API are minted in the dashboard.) All endpoints here live at ai.hep.gg and are authenticated with your master token.

The credentials

Credential types
master token
hyd_...optional
Account-level. Bearer token for the management endpoints below (/me, /sync/*). Issued once per account. Treat it like a password.
proxy token
pt_...optional
Machine-level. Goes in the URL path of the Claude proxy. Issued when you register a machine.

Your account

GEThttps://ai.hep.gg/meAuth required
Return your AI account and its registered machines.

Send Authorization: Bearer hyd_.... Returns { user: { id, name, email }, machines: [...] }.

Registering a machine (for the Claude proxy)

POSThttps://ai.hep.gg/sync/machinesAuth required
Register a machine and receive a proxy_token.
Body
hostname
stringoptional
Machine hostname.
os
stringoptional
Operating system.
plan
stringoptional
Optional plan label.

Returns { id, proxy_token }. The proxy_token (pt_...) goes in the path of the Claude proxy. In practice the ccas CLI registers the machine and wires the proxy token for you, so you rarely call this by hand.