{"id":48755883,"url":"https://github.com/futureppo/codeflicke2api","last_synced_at":"2026-04-13T02:01:57.656Z","repository":{"id":348655329,"uuid":"1176001285","full_name":"Futureppo/codeflicke2api","owner":"Futureppo","description":"CodeFlicker2API 是一个将快手 CodeFlicker AI 编码助手的 API 转换为 OpenAI 和 Anthropic 兼容格式的反向代理服务，内置 Web 管理面板，支持多账号轮询、批量导入与一键 Token 刷新。","archived":false,"fork":false,"pushed_at":"2026-04-08T15:48:01.000Z","size":141,"stargazers_count":32,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-13T02:00:15.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Futureppo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T13:36:15.000Z","updated_at":"2026-04-08T15:48:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca8003c2-c545-4738-b2f4-7426c7d9ce89","html_url":"https://github.com/Futureppo/codeflicke2api","commit_stats":null,"previous_names":["futureppo/codeflicke2api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Futureppo/codeflicke2api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fcodeflicke2api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fcodeflicke2api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fcodeflicke2api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fcodeflicke2api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Futureppo","download_url":"https://codeload.github.com/Futureppo/codeflicke2api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fcodeflicke2api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"online","status_checked_at":"2026-04-13T02:00:06.623Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-13T02:00:48.260Z","updated_at":"2026-04-13T02:01:57.648Z","avatar_url":"https://github.com/Futureppo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeFlicker2API\n\n## 注意！！\n目前官方风控加强，反代就封号，请仔细考虑后再使用本项目！！\n\n\u003e [!CAUTION]\n\u003e **免责声明**\n\u003e\n\u003e 本项目仅供学习研究和技术交流使用，**严禁用于任何商业用途或非法活动**。\n\u003e\n\u003e - 本项目通过逆向工程分析 CodeFlicker (KwaiPilot) 的通信协议，将其内部 API 转换为 OpenAI 兼容格式。此行为可能违反 CodeFlicker 的服务条款（ToS）。\n\u003e - 使用本项目产生的一切后果（包括但不限于账号封禁、法律纠纷等）由使用者自行承担，项目开发者不承担任何责任。\n\u003e - 本项目不提供任何形式的担保，包括但不限于适销性、特定用途适用性和非侵权性的暗示担保。\n\u003e - 如收到相关方的合规通知，本项目将立即下架。\n\u003e\n\u003e **使用本项目即表示您已阅读并同意以上声明。**\n\n## 简介\n\nCodeFlicker2API 是一个将快手 CodeFlicker（KwaiPilot）AI 编码助手的 API 转换为 **OpenAI** 和 **Anthropic** 兼容格式的反向代理服务，内置 Web 管理面板，支持多账号轮询、批量导入与一键 Token 刷新。\n\n## 功能特性\n\n- **双协议兼容** — 同时支持 OpenAI (`/v1/chat/completions`) 和 Anthropic (`/v1/messages`) 接口格式\n- **多模型支持** — 自动拉取上游模型列表，支持 GPT、Claude、DeepSeek、Glm、Kimi 等多家模型\n- **账号池轮询** — 线程安全的 Round-Robin 调度，自动跳过异常账号\n- **自愈机制** — 自动识别限速 / 封禁状态，限速账号 5 分钟后自动恢复\n- **批量导入** — 支持 JSON 粘贴或文件上传，自动从 JWT 中提取 UserID\n- **一键刷新** — 通过 email/password 批量刷新即将过期的 JWT Token\n- **可视化面板** —  内嵌 Web 管理界面，账号管理、Key 管理、系统设置一站式操作\n- **Function Calling** — 完整支持 OpenAI Tool Use / Function Calling 能力\n- **流式与非流式** — 同时支持 SSE 流式和标准 JSON 两种响应模式\n\n## 快速开始\n\n### 本地运行\n\n```bash\n# 编译运行\ngo build -o codeflicke2api.exe .\n./codeflicke2api.exe\n\n# 或直接运行\ngo run .\n```\n\n### Docker 部署\n\n```bash\n# Docker Compose（推荐）\ndocker compose up -d\n\n# 手动构建\ndocker build -t codeflicke2api .\ndocker run -d -p 8080:8080 -v ./data:/app/data codeflicke2api\n```\n\n启动后访问 `http://localhost:8080`，使用默认 Token `123456` 登录管理面板。\n\n## 项目结构\n\n```\ncodeflicke2api/\n├── main.go              # 入口，路由注册\n├── config.go            # 配置加载\n├── database.go          # 数据库模型（GORM + SQLite）\n├── account.go           # 账号轮询池（Round-Robin）\n├── middleware.go         # 鉴权中间件\n├── upstream.go           # 上游请求客户端（SSE）\n├── handler_openai.go     # OpenAI 兼容端点\n├── handler_anthropic.go  # Anthropic 兼容端点\n├── handler_admin.go      # 管理面板 API\n├── web/index.html        # 管理面板前端\n├── Dockerfile\n├── docker-compose.yml\n└── README.md\n```\n\n## 技术栈\n\nGo + Gin + GORM + SQLite\n\n## Star History\n\n[![GitHub Stars](https://img.shields.io/github/stars/Futureppo/codeflicke2api?logo=github\u0026style=flat-square)](https://github.com/Futureppo/codeflicke2api/stargazers)\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Futureppo/codeflicke2api\u0026type=Date)](https://star-history.com/#Futureppo/codeflicke2api\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureppo%2Fcodeflicke2api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutureppo%2Fcodeflicke2api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureppo%2Fcodeflicke2api/lists"}