v3.8.1: update CHANGELOG.md + README.md with Freebuff docs
This commit is contained in:
59
README.md
59
README.md
@@ -544,13 +544,27 @@ The launcher generates model catalog JSON with dual field naming to satisfy both
|
||||
| OpenCode Zen | OpenAI-compat | `https://opencode.ai/zen/v1` |
|
||||
| OpenCode Go | OpenAI-compat | `https://opencode.ai/zen/go/v1` |
|
||||
| Command Code | Command Code | `https://api.commandcode.ai` |
|
||||
| **Freebuff** | **Freebuff** | `https://freebuff.com` *(free DeepSeek/Kimi)* |
|
||||
| Crof.ai | OpenAI-compat | `https://crof.ai/v1` |
|
||||
| OpenAdapter | OpenAI-compat | `https://api.openadapter.in/v1` |
|
||||
| NVIDIA NIM | OpenAI-compat | `https://integrate.api.nvidia.com/v1` |
|
||||
| Kilo.ai | OpenAI-compat | `https://api.kilo.ai/api/gateway` |
|
||||
| OpenRouter | OpenAI-compat | `https://openrouter.ai/api/v1` |
|
||||
| Z.AI | OpenAI-compat | `https://api.z.ai/api/coding/paas/v4` |
|
||||
| Google Gemini (API Key) | OpenAI-compat | `https://generativelanguage.googleapis.com/v1beta/openai` |
|
||||
| Google Gemini (OAuth) | Gemini OAuth | `cloudcode-pa.googleapis.com` |
|
||||
| Google Antigravity (OAuth) | Antigravity OAuth | `daily-cloudcode-pa.sandbox.googleapis.com` |
|
||||
| Custom | Any | User-defined |
|
||||
|
||||
### Free Models (via Freebuff)
|
||||
Freebuff provides free access to these models — no API key needed:
|
||||
- **DeepSeek V4 Pro** — Smartest model
|
||||
- **DeepSeek V4 Flash** — Most efficient
|
||||
- **Kimi K2.6** — Balanced
|
||||
- **MiniMax M2.7** — Fastest
|
||||
|
||||
*Requires: `npm install -g freebuff && freebuff login` (GitHub OAuth)*
|
||||
|
||||
---
|
||||
|
||||
## File Structure
|
||||
@@ -581,6 +595,51 @@ README.md # This file
|
||||
|
||||
---
|
||||
|
||||
### Phase 10: Freebuff Integration — Free AI for Everyone (v3.8.1)
|
||||
|
||||
**Problem:** Users want access to powerful models like DeepSeek V4 Pro without paying API fees. Freebuff (by CodebuffAI) offers free access to premium models through their server, but it's a CLI tool — not an API you can plug into Codex Launcher.
|
||||
|
||||
**The insight:** Freebuff's backend is a Next.js app with an OpenAI-compatible `/api/v1/chat/completions` endpoint. It uses agent-run lifecycle management and model-specific routing. If we replicate the agent run protocol in our proxy, we can tap into freebuff's free tier.
|
||||
|
||||
**How Freebuff works internally:**
|
||||
1. User logs in via GitHub OAuth → session token stored in `~/.config/manicode/credentials.json`
|
||||
2. Each request creates an **agent run** via `POST /api/v1/agent-runs`
|
||||
3. Chat completions sent with `codebuff_metadata: {run_id, cost_mode: "free"}`
|
||||
4. Server routes to the correct upstream provider using its own API keys
|
||||
5. Agent run finished when request completes
|
||||
|
||||
**What we built:**
|
||||
|
||||
```
|
||||
Codex Request
|
||||
│
|
||||
▼
|
||||
┌─────────────────────────────────┐
|
||||
│ translate-proxy.py │
|
||||
│ _handle_freebuff() │
|
||||
│ │
|
||||
│ 1. Read token from credentials │
|
||||
│ 2. POST /api/v1/agent-runs │──→ {action: "START", agentId}
|
||||
│ 3. POST /api/v1/chat/completions │──→ {model, messages,
|
||||
│ codebuff_metadata: {
|
||||
│ run_id, cost_mode: "free"}}
|
||||
│ 4. Stream response back to Codex │←── SSE events
|
||||
│ 5. POST /api/v1/agent-runs │──→ {action: "FINISH"}
|
||||
└─────────────────────────────────┘
|
||||
```
|
||||
|
||||
**Free models available:**
|
||||
| Model | Agent ID | Notes |
|
||||
|-------|----------|-------|
|
||||
| DeepSeek V4 Pro | `base2-free-deepseek` | Smartest |
|
||||
| DeepSeek V4 Flash | `base2-free-deepseek-flash` | Most efficient |
|
||||
| Kimi K2.6 | `base2-free-kimi` | Balanced |
|
||||
| MiniMax M2.7 | `base2-free` | Fastest |
|
||||
|
||||
**Bonus fix:** While investigating this, we discovered that `endpoints.json` had been overwritten with only 4 AG X entries, losing all 17+ provider presets. Restored all presets from proxy cache files.
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Issue | Cause | Fix |
|
||||
|
||||
Reference in New Issue
Block a user