godelgate Book a demo

LLM proxy, costs and Chat

Route model calls through Godelgate to keep provider keys on the server, track tokens and cost per person, set budgets, and chat with your tools.

#Set up

On Settings → Models, add your workspace's Anthropic and/or OpenAI API key. They're stored encrypted and never sent to clients. Optionally set a monthly budget for the workspace and per person, in US dollars.

#The LLM proxy

Clients use their own gg_ key as the API key, and Godelgate forwards their requests with the workspace's provider key.

bash
# Claude Code
export ANTHROPIC_BASE_URL=https://godelgate.com/llm/anthropic
export ANTHROPIC_API_KEY=gg_...

# OpenAI SDKs and tools (Chat Completions and Responses)
export OPENAI_BASE_URL=https://godelgate.com/llm/openai/v1
export OPENAI_API_KEY=gg_...
EndpointForwards to
POST /llm/anthropic/v1/messages (and /count_tokens)Anthropic Messages API
POST /llm/openai/v1/chat/completionsOpenAI Chat Completions
POST /llm/openai/v1/responsesOpenAI Responses API

Streaming passes through unchanged. Godelgate reads token usage from each response, including cached tokens, and records the cost. Removing someone from the workspace or revoking their key stops their model access too.

#Costs and budgets

The Usage tab shows this month's cost, requests and tokens, by person and by model, and recent requests. Members see their own usage; admins see everyone's.

Claude models are priced at Anthropic's first-party rates. Other models are counted in tokens and need a price before they show a cost (PUT /api/llm with prices). When a budget is reached, further requests get a 429 with the reason until the next month.

#Chat

The Chat tab is Claude with every tool in your workspace. Choose Claude Opus 5.5, Sonnet 5.5 or Haiku 5.5. Every tool call goes through the gate like any agent's: policy, the trifecta check, approvals and the audit log all apply, and calls are logged under your email. Chat uses the workspace's Anthropic key and counts toward budgets.