AI Gateway

An OpenAI-compatible chat endpoint, a transparent Claude (Anthropic) proxy, the ccas analytics CLI, and AI Skills, a public agent-skill registry. One account, three credential types.

AI Gateway

The Hep.gg AI Gateway is two runtimes under one account.

The first is the AI gateway at https://ai.hep.gg: a transparent passthrough proxy for the Anthropic Claude API so calls made by Claude Code can be metered and analyzed, and the Anthropic API at https://claude.hep.gg, served by your own pooled Claude accounts for your apps. The ccas CLI installs from ai.hep.gg and wires Claude Code into the proxy.

The second is the platform MCP at https://mcp.hep.gg, a hosted Model Context Protocol server that lets a connected model or coding agent read the docs and act across your Hep.gg apps. Any account can turn it on from the dashboard.

Three credential types

This app uses three distinct credentials. Mixing them up is the most common source of 401s, so keep them straight.

Credentials
master token
hyd_...optional
Account-level. Sent as Authorization: Bearer hyd_.... Identifies your whole AI account. Used to register machines (/sync/machines) and call /me. Anyone holding it can manage your account, treat it like a password. Issued by the dashboard onboarder; rotate it from the dashboard.
Anthropic API key
sk-hepgg-...optional
Pool-backed. Sent as x-api-key (or Authorization: Bearer) to https://claude.hep.gg, an Anthropic-compatible Messages API served by your own pooled Claude accounts, for your own apps and harnesses. Minted on the Anthropic API page. See Anthropic API.
proxy token
pt_...optional
Machine-level. Embedded in the URL path of the Claude proxy: /anthropic/pt_.../v1/messages. Identifies the machine that registered it. Issued by POST /sync/machines (which ccas init calls for you).

Authentication summary

  • Account and management endpoints (/me, /sync/*): Authorization: Bearer hyd_... (your master token).
  • Claude proxy (/anthropic/...): the pt_ proxy token is the first path segment. You still send your own Anthropic credentials in the request, which are forwarded upstream unchanged.

There is no public endpoint to create a master token, it comes from the dashboard. Proxy tokens are minted with the master token. Never commit any of these to source control or print them in logs.

Quickstart

To call Claude from your own code, mint a key on the Anthropic API page and send standard Anthropic Messages requests to https://claude.hep.gg. See Anthropic API. To meter Claude Code itself, install ccas.

What you can do

Managed accounts

Some Claude accounts are managed and billed for you in Canadian dollars. If you have one, you sign in to Anthropic with an address we assign you (a name at teamhydra.dev). There is no separate inbox to check: verification and sign-in emails are forwarded to the email on your Hep.gg account, so add and verify an email there first.

Managed accounts are prepaid and renew on the 29th of each month. The Accounts page in the AI app shows each account's monthly rate, the date it is paid through, and your payment history (a managed account appears with a Managed badge on its card), and you are reminded before a payment is due. If you do not have one yet, you can request an account there and accept the terms.