# Rouko

> Rouko is an LLM API for coding agents and SDKs. One rk_ key reaches
> low-cost chat models over the OpenAI Chat Completions, OpenAI
> Responses and Anthropic Messages protocols.

## Get started
- A human signs in with Telegram at https://rouko.dev and tops up the balance in RUB or Crypto.
- The human mints an rk_ key in the cabinet and hands it to the agent. Agents cannot sign in themselves.

## Endpoints
- Base URL: https://rouko.dev/v1
- POST /v1/chat/completions, /v1/responses, /v1/messages
- GET /v1/models returns the live catalog: model ids, context windows and USD prices per million tokens

## Auth
- Send the key as `Authorization: Bearer rk_...` or `x-api-key: rk_...`.

## Client setup
- Claude Code: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL
- Codex: a model_providers.rouko block in config.toml with wire_api = "responses"
- OpenCode and Cline: an OpenAI-compatible provider with baseURL https://rouko.dev/v1
- Any other OpenAI-compatible client or SDK: base URL https://rouko.dev/v1, API key rk_...
- Any Anthropic-compatible client or SDK: base URL https://rouko.dev, API key rk_...

## Billing
- Each request charges the account balance by reported token usage at /v1/models prices.
- Rouko rejects a request when the balance cannot cover in-flight estimates.
