james-6-23/codex2api
Codex2API 是一个基于 Go + Gin + React/Vite 的 Codex 反向代理与管理后台项目
What it solves
Codex2API acts as a centralized, observable gateway for managing multiple Codex accounts. It solves the complexity of handling account pools, rate limits, and health monitoring by providing a unified, OpenAI/Anthropic-compatible API endpoint that intelligently routes requests across your available accounts.
How it works
It functions as a long-running service that sits between your applications and various AI providers. You import your account credentials (Refresh/Access tokens) into the system, which then manages them using a scheduler that tracks health, concurrency, and usage quotas. It exposes standard API endpoints (like /v1/chat/completions and image/video generation) and provides a built-in React dashboard for monitoring analytics, managing API keys, and configuring prompt filtering.
Who it’s for
This project is for developers and power users who need to manage large-scale or high-concurrency access to Codex-based services, requiring professional-grade observability, billing tracking, and automated account-pool management.
Highlights
- Unified Gateway: Exposes OpenAI and Anthropic-compatible endpoints for chat, images, and videos.
- Intelligent Scheduling: Automatically routes requests based on account health, credit status, and dynamic concurrency limits.
- Production-Ready Observability: Includes a visual dashboard for usage analytics, request logs, and cost tracking.
- Flexible Deployment: Supports high-performance production setups (PostgreSQL + Redis) or lightweight single-node deployments (SQLite + memory).
- Built-in Admin Console: Manage account pools, API keys, and system settings directly through a web interface.
Related
- Project
- Project
- Project
- Project
- Project