{"repo":"Codex-Pool/Codex-Pool","free":true,"listed":false,"github":"https://github.com/Codex-Pool/Codex-Pool","clone":"git clone https://github.com/Codex-Pool/Codex-Pool.git","description":"Self-hosted Codex/OpenAI compatible gateway and admin console with a stable personal edition.","language":"Rust","stars":18,"topics":[],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"Codex-Pool 面向自托管场景的 Codex / OpenAI 兼容代理与管理台 当前公开稳定支持 personal 版：单二进制、SQLite、内嵌前端。 当前状态 - 当前仓库对外主推的是 personal ：单实例、单管理员入口、SQLite 存储、内嵌管理台。 - team 和 business 仍在开发中，仓库里已有部分代码、文档和编排文件，但 暂不作为公开稳定使用路径承诺 。 - 推荐的公开使用方式是：直接拉取 GHCR 预构建的 personal 镜像并用 Docker Compose 启动。 它能做什么 Codex-Pool 用于把多个上游账号统一纳入一个管理面和一个兼容入口，对外提供： - OpenAI / Codex 兼容请求入口 - 管理台中的账号池、日志、导入、模型、代理、计费与系统配置能力 - 针对 OAuth / Session 账号的批量导入、健康循环和状态可视化 - personal 形态下的一体化运行：admin UI + control-plane API + /v1/ 代理 当前公开支持范围 稳定公开 - personal - 单二进制 - SQLite - 无需 PostgreSQL / Redis / ClickHouse / 独立 frontend 容器 开发中 - team - business 如果你要公开部署或对外文档化，建议默认只写 personal ，不要把 team / business 当作已稳定发布能力。 Personal Docker 快速开始 1. 准备依赖 - Docker - Docker Compose 2. 准备环境变量 以 docker/.env.personal.example 为模板准备一份本地环境文件： 你至少需要替换这些值： - CONTROL PLANE INTERNAL AUTH TOKEN - CONTROL PLANE API KEY HMAC KEYS - CREDENTIALS ENCRYPTION KEY - ADMIN PASSWORD - ADMIN JWT SECRET 默认镜像是最近一次正式发布： 如果你要锁定正式版本，也可以改成类似： 如果你想跟踪 main 上的最新未发版构建，可以改成： 3. 启动 启动后访问： - 管理台： http://127.0.0.1:${PERSONAL APP PORT:-8090} - 健康检查： http://127.0.0.1:${PERSONAL APP PORT:-8090}/livez 4. 关于平台架构 官方预构建镜像会发布 Linux 双架构： - linux/amd64 - linux/arm64 所以在 Intel Linux、Apple Silicon macOS，以及大多数使用 Docker Desktop 的 Windows 环境里，都会自动拉取合适的 Linux 镜像。 Personal 源码构建（开发者） 1. 准备依赖 - Rust 工具链 - Node.js 与 npm 2. 构建前端静态资源 personal 二进制会把 frontend/dist 内嵌进去，所以要先构建前端： 3. 构建 personal 二进制 产物路径： 管理员鉴权 管理员登录接口： 请求示例： 后续调用管理接口时带上： 注意：批量上传账号接口虽然路径不在 /api/v1/admin/ 下，但它同样要求管理员鉴权。 批量上传账号 接口： 请求格式： - multipart/form-data - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Codex-Pool","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Codex-Pool/Codex-Pool/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}