/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 tokenhyd_...optional
Account-level. Bearer token for the management endpoints below (
/me, /sync/*). Issued once per account. Treat it like a password.proxy tokenpt_...optional
Machine-level. Goes in the URL path of the Claude proxy. Issued when you register a machine.
Your account
GET
https://ai.hep.gg/meAuth requiredReturn your AI account and its registered machines.
Send Authorization: Bearer hyd_.... Returns { user: { id, name, email }, machines: [...] }.
Registering a machine (for the Claude proxy)
POST
https://ai.hep.gg/sync/machinesAuth requiredRegister a machine and receive a proxy_token.
Body
hostnamestringoptional
Machine hostname.
osstringoptional
Operating system.
planstringoptional
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.