# Clawzempic > Drop-in LLM optimization proxy. Change one URL, add two headers, save 70-95% on API costs. Clawzempic is a proxy that sits between your AI agent and your LLM provider. It reduces costs through intelligent model routing, conversation windowing, prompt caching, and memory management. Works with Anthropic (Claude) and OpenRouter (300+ models). ## Quick Start ```bash npx clawzempic ``` Or sign up via API: ``` POST https://api.clawzempic.ai/v1/signup Content-Type: application/json {"email": "you@example.com", "agent_name": "my-agent"} ``` Then route traffic by changing your base URL to `https://api.clawzempic.ai` and adding two headers: - `x-api-key: sk-clwz-YOUR_KEY` (Clawzempic key from signup) - `x-upstream-key: sk-ant-... or sk-or-...` (your Anthropic or OpenRouter key) ## How It Works Six optimization layers: 1. **Routing** — Scores request complexity, routes simple requests to cheaper models (~24% of savings) 2. **Windowing** — Summarizes old messages in long conversations (~61% of savings) 3. **Caching** — Injects prompt cache breakpoints for Anthropic models (90% discount on repeated context) 4. **Memory** — Persistent facts and recent activity injected across conversations 5. **Security** — Injection detection, credential redaction, tool call blocking 6. **Scripts** — Intercepts trivial queries (time, status) at zero LLM cost ## Pricing - **Free:** $0/mo — full optimization up to $30 in savings, then passthrough. No credit card. - **Core:** $29/mo — unlimited optimized spend. ## Key Endpoints - `POST /v1/chat/completions` — OpenAI-compatible chat (requires x-api-key + x-upstream-key) - `POST /v1/messages` — Anthropic-native Messages API - `POST /v1/signup` — Create account (no auth) - `GET /v1/insights?period=7d` — Usage analytics and savings - `GET/PATCH /v1/settings` — Routing config, model customization - `GET /v1/billing/status` — Plan and spend info ## Docs - [Full documentation](https://www.clawzempic.ai/docs/home) - [Quickstart](https://www.clawzempic.ai/docs/quickstart) - [API Reference](https://www.clawzempic.ai/docs/api) - [How Routing Works](https://www.clawzempic.ai/docs/routing) - [Cost Savings](https://www.clawzempic.ai/docs/savings) - [Security](https://www.clawzempic.ai/docs/security) - [Full API docs for LLMs](https://www.clawzempic.ai/llms-full.txt) - [Machine-readable service descriptor](https://www.clawzempic.ai/.well-known/agent.json)