# Hep.gg AI Proxy Anthropic-compatible proxy that meters usage per machine. Each user owns one master token; machines under that user get scoped proxy tokens. Worker base URL: https://ai.hep.gg Auth (anthropic proxy): Authorization: Bearer ## Endpoints ### POST /anthropic/:proxy_token/v1/messages Anthropic Messages API forwarded transparently. Use the proxy token as both the URL segment and (optionally) the Authorization header. Streaming via SSE supported when the upstream request includes "stream": true. Headers passed through to upstream: most Anthropic headers (model selection, beta features). Sensitive headers stripped. ### Hep.gg dashboard (cookie auth) GET /api/v1/ai/account POST /api/v1/ai/account/rotate GET /api/v1/ai/machines POST /api/v1/ai/machines { name, model_slug? } PATCH /api/v1/ai/machines/:id POST /api/v1/ai/machines/:id/rotate DELETE /api/v1/ai/machines/:id GET /api/v1/ai/llm-keys GET /api/v1/ai/usage?from=&to=