Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:3457/v1/models
Source: https://github.com/nasrulhadi/proxy-freebuff
# Proxy Freebuff
A transparent, zero-dependency **OpenAI- and Anthropic-compatible proxy** for [Freebuff](https://freebuff.com) — Codebuff's free-agent program. It lets you use Freebuff's free models from any OpenAI/Anthropic client: **9router, Cursor, Continue, Aider, opencode, Claude Code, or any custom OpenAI-compatible tool**.
Freebuff is only officially usable through its own CLI. This proxy speaks the same wire protocol the CLI uses, manages the free-session and agent-run lifecycle for you, and exposes a clean OpenAI/Anthropic API on your local machine.
```mermaid
flowchart LR
T[Your tool] -->|POST /v1/chat/completions - OpenAI| P[Proxy Freebuff]
T -->|POST /v1/messages - Anthropic| P
P --> S[Free session
create / poll / end]
P --> R[Agent run
START / rotate / FINISH]
P --> C[POST /api/v1/chat/completions]
S --> U[api.codebuff.com]
R --> U
C --> U
```
## Why
Freebuff has two API surfaces:
| Surface | Works on any plan? |
|---|---|
| `/api/v1/chat/completions` (the CLI's endpoint) | **Yes** |
| `/provider/v1/*` (public provider API) | No — blocked for free agents |
Calling `/api/v1/chat/completions` directly gets you rejected with `403 free_mode_cli_required` — the backend fingerprints CLI traffic and refuses direct API calls. This proxy replicates the CLI's request envelope (headers + metadata shape), so it works like the official client does.
## Features
- **OpenAI-compatible** — `POST /v1/chat/completions` (streaming + non-streaming), `GET /v1/models`
- **Anthropic-compatible** — `POST /v1/messages` (streaming + non-streaming), `POST /v1/messages/count_tokens` with automatic format conversion (thinking blocks, tool use, images)
- **Free session management** — creates (only when the CLI is not running), polls, and rotates free sessions; surfaces the waiting room as `503 + Retry-After` so clients retry politely
- **Agent run lifecycle** — one run per agent, pre-warmed lazily, rotated every 6h, `FIN