Docs

Connect an agent in two minutes.

Create a gateway key, point your agent at Cohesor with one environment variable, and start saving. No SDK changes, no proxy config.

1

Create a gateway key

In the dashboard, open API Keys and generate a key. It starts with sk-coh- and is shown only once — copy it somewhere safe. Then pick your models on the Routing page. That's it: Cohesor serves the models for you.

Create a key

2

Point your agent at the gateway

Add these to ~/.zshrc (or run them in your terminal). The same key works across agents.

# Route Claude Code through Cohesor (we serve the model)
export ANTHROPIC_BASE_URL="https://api.cohesor.com"
export ANTHROPIC_AUTH_TOKEN="sk-coh-your_gateway_key"
3

Enable MCP tools (optional)

Add Cohesor as an MCP server in ~/.claude/.mcp.json to give your agent governed GitHub, Google, Slack and Postgres tools.

~/.claude/.mcp.json
{ "mcpServers": { "cohesor": {
  "url": "https://api.cohesor.com/mcp",
  "headers": { "x-api-key": "sk-coh-your_gateway_key" }
} } }
4

Verify the connection

Fire a request from your agent as usual. Within seconds it appears in your dashboard's activity feed — with tokens saved and dollar impact for that call.

Connected

Compression and routing are on by default — you're already saving.

Need a hand?

We'll help you connect your fleet and tune routing for your workload.