zyycn/codex-proxy-rs
基于 Rust 的低风控、高性能、自托管 Codex 多账号透明代理网关
What it solves
It provides a self-hosted AI gateway designed for Codex, allowing users to manage multiple AI accounts and distribute access to them via client keys. It solves the problem of managing multiple account credentials and tracking usage across different users or clients in a centralized way.
How it works
The system acts as a proxy between the client and the AI service. It implements the Responses API (noting that it does not support /v1/chat/completions). Administrators can add AI accounts, organize them into groups, and generate client API keys that are linked to specific account groups. Clients then connect to this gateway using these keys to access the underlying models.
Who it’s for
It is intended for users who need to manage multiple AI accounts for themselves or others, specifically those using Codex CLI, desktop applications, or any other client that supports the Responses API.
Highlights
- Multi-account Management: Support for adding, grouping, and authorizing multiple AI accounts.
- Usage Tracking: Includes a management dashboard for system overview, account grouping, proxy management, and usage statistics.
- Client Key System: Ability to create specific client keys with restricted access to certain account groups.
- Plugin Support: Provides an SDK and tools for developing and installing plugins to extend gateway functionality.
- Self-hosted Deployment: Easy deployment via Docker Compose with integrated PostgreSQL and Redis.
Related
- Project
- Project
- Project
- Project
- Project