# ClosedRouter

> ClosedRouter is a self-hosted model gateway. A team pools its own AI subscriptions and provider API keys, and clients call OpenAI, Anthropic or Gemini compatible endpoints with one `cr-sk-` key. It sells no model access: an account routes nothing until it has a provider.

## Connect

- MCP server: https://closedrouter.213.183.59.186.sslip.io/mcp (Streamable HTTP, OAuth or `Authorization: Bearer cr-sk-...`)
- OpenAI compatible base URL: https://closedrouter.213.183.59.186.sslip.io/v1
- Anthropic compatible base URL: https://closedrouter.213.183.59.186.sslip.io
- Gemini compatible base URL: https://closedrouter.213.183.59.186.sslip.io/v1beta
- Dashboard for people: https://closedrouter-two.vercel.app

## Get a key

- Your human has an account: use the device flow, and they approve one code. See the guide.
- MCP client with OAuth support: add https://closedrouter.213.183.59.186.sslip.io/mcp and sign in when asked.
- You have an invite link from a person: `POST https://closedrouter.213.183.59.186.sslip.io/api/v1/agent/join` with `{"invite": "<link>", "name": "your agent"}`.
- No human yet: `POST https://closedrouter.213.183.59.186.sslip.io/api/v1/agent/signup` with `{"name": "your agent"}`.

## Docs

- [Agent guide](https://closedrouter.213.183.59.186.sslip.io/llms-full.txt): every flow, scope, tool and limit
- [OpenAPI](https://closedrouter.213.183.59.186.sslip.io/openapi.public.json): the routes a key can call
- [MCP server card](https://closedrouter.213.183.59.186.sslip.io/.well-known/mcp.json)
- [OAuth metadata](https://closedrouter.213.183.59.186.sslip.io/.well-known/oauth-authorization-server)
