[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1039":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},1039,"Freebuff2API","Quorinex\u002FFreebuff2API","Quorinex","🚀 OpenAI-compatible Freebuff proxy with dynamic free-agent tracking, token rotation, and ready-to-use Docker deployment.","",null,"Go",476,79,1,4,0,9,18,63,27,79.01,"MIT License",false,"main",[],"2026-06-12 04:00:07","# Freebuff2API\n\n[English](README.md) | [简体中文](README_zh.md)\n\nFreebuff2API is an OpenAI-compatible proxy server for [Freebuff](https:\u002F\u002Ffreebuff.com). It translates standard OpenAI API requests into Freebuff's backend format, allowing you to use Freebuff's free models with any OpenAI-compatible client, SDK, or CLI tool.\n\n## Features\n\n- **OpenAI Compatible API** — Standard OpenAI endpoints; works with any compatible client out of the box.\n- **Stealth Request Handling** — Dynamic, randomized client fingerprints that mimic official Freebuff SDK behavior.\n- **Multi-Token Rotation** — Cycle through multiple auth tokens with automatic periodic rotation.\n- **HTTP Proxy Support** — Route all outbound traffic through a configurable upstream proxy.\n\n## Getting Auth Tokens\n\nFreebuff2API requires one or more Freebuff **auth tokens**. There are two ways to obtain one:\n\n### Method 1 — Web (Recommended)\n\nVisit **[https:\u002F\u002Ffreebuff.llm.pm](https:\u002F\u002Ffreebuff.llm.pm)**, log in with your Freebuff account, and your auth token will be displayed directly on the page. Copy it as your **AUTH_TOKENS** — no local installation required.\n\n### Method 2 — Freebuff CLI\n\nInstall the Freebuff CLI:\n\n```bash\nnpm i -g freebuff\n```\n\nRun `freebuff` in your terminal — on first launch it will guide you through login.\n\nAfter logging in, your token is saved to a local credentials file:\n\n| OS | Credentials Path |\n|---|---|\n| Windows | `C:\\Users\\\u003Cusername>\\.config\\manicode\\credentials.json` |\n| Linux \u002F macOS | `~\u002F.config\u002Fmanicode\u002Fcredentials.json` |\n\nThe file looks like:\n\n```json\n{\n  \"default\": {\n    \"id\": \"user_10293847\",\n    \"name\": \"Zhang San\",\n    \"email\": \"zhangsan@example.com\",\n    \"authToken\": \"fa82b5c1-e39d-4c7a-961f-d2b3c4e5f6a7\",\n    ...\n  }\n}\n```\n\nOnly the `authToken` value is needed — copy it as your **AUTH_TOKENS**.\n\n> **Tip:** Log in with multiple accounts and configure all their tokens for higher throughput.\n\n## Configuration\n\nConfiguration is managed via a JSON file and\u002For environment variables. The JSON keys and environment variable names are identical. By default the app looks for `config.json` in the working directory; use `-config` to specify another path.\n\n```json\n{\n  \"LISTEN_ADDR\": \":8080\",\n  \"UPSTREAM_BASE_URL\": \"https:\u002F\u002Fcodebuff.com\",\n  \"AUTH_TOKENS\": [\"eyJhb...\"],\n  \"ROTATION_INTERVAL\": \"6h\",\n  \"REQUEST_TIMEOUT\": \"15m\",\n  \"API_KEYS\": [],\n  \"HTTP_PROXY\": \"\"\n}\n```\n\n### Reference\n\n| Key \u002F Env Var | Description |\n|---|---|\n| `LISTEN_ADDR` | Proxy listen address (default `:8080`) |\n| `UPSTREAM_BASE_URL` | Freebuff backend URL (default `https:\u002F\u002Fcodebuff.com`) |\n| `AUTH_TOKENS` | Freebuff auth tokens (JSON array or comma-separated env var) |\n| `ROTATION_INTERVAL` | Run rotation interval (default `6h`) |\n| `REQUEST_TIMEOUT` | Upstream request timeout (default `15m`) |\n| `API_KEYS` | Client API keys for proxy auth (empty = open access) |\n| `HTTP_PROXY` | HTTP proxy for outbound requests |\n\nEnvironment variables override JSON values when both are set.\n\n## Deployment\n\n### Docker\n\nPre-built multi-arch images are available on GHCR:\n\n```bash\ndocker run -d --name Freebuff2API \\\n  -p 8080:8080 \\\n  -e AUTH_TOKENS=\"token1,token2\" \\\n  ghcr.io\u002Fquorinex\u002Ffreebuff2api:latest\n```\n\nBuild from source:\n\n```bash\ndocker build -t Freebuff2API .\ndocker run -d -p 8080:8080 -e AUTH_TOKENS=\"token1,token2\" Freebuff2API\n```\n\n### Build from Source\n\n**Requirements:** Go 1.23+\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FQuorinex\u002FFreebuff2API.git\ncd Freebuff2API\ngo build -o Freebuff2API .\n.\u002FFreebuff2API -config config.json\n```\n\n## Links\n\n- [linux.do](https:\u002F\u002Flinux.do)\n\n## Disclaimer\n\nThis project has no official affiliation with OpenAI, Codebuff, or Freebuff. All related trademarks and copyrights belong to their respective owners.\n\nAll contents within this repository are provided solely for communication, experimentation, and learning, and do not constitute production-ready services or professional advice. This project is provided on an \"As-Is\" basis, and users must use it at their own risk. The author assumes no liability for any direct or indirect damages resulting from the use, modification, or distribution of this project, nor provides any warranties of any kind, express or implied.\n\n## License\n\nMIT\n","Freebuff2API 是一个与OpenAI兼容的代理服务器，用于将标准的OpenAI API请求转换为Freebuff后端格式，使用户能够通过任何支持OpenAI的客户端、SDK或CLI工具使用Freebuff提供的免费模型。该项目具备OpenAI兼容接口、动态随机化的客户端指纹模拟、多令牌轮换以及HTTP代理支持等核心功能。它采用Go语言编写，支持Docker部署，便于快速上手和扩展。适用于需要利用Freebuff资源但偏好使用OpenAI生态系统工具的开发者或团队，在保证数据安全的同时提高了开发灵活性。",2,"2026-06-11 02:41:14","CREATED_QUERY"]