shengshenglab

将codex订阅转成gpt的api,轻量级适合自用

18
0
69% credibility
Found Mar 20, 2026 at 18 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

This tool runs a simple local service that bridges your personal AI coding subscription to standard chat formats for easy use with everyday apps.

How It Works

1
🕵️ Discover codex2gpt

You find this handy tool on GitHub that lets you use your AI coding subscription right from your own computer.

2
📥 Get the files

Download the few simple files to a folder on your Mac or Linux machine.

3
🔗 Connect your AI account

Link your existing AI helper login so it can access your subscription automatically.

4
▶️ Start the helper

Run one easy command to launch your personal AI bridge on your computer.

5
⚙️ Tweak for your needs

Optionally adjust the address or add a private password for security.

6
💬 Ask for coding help

Send a message to your local bridge and receive smart AI replies instantly.

🎉 AI magic at home

Now enjoy powerful coding assistance from your tools without leaving your setup.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 18 to 18 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is codex2gpt?

codex2gpt is a lightweight Python proxy that converts your Codex subscription into a local OpenAI-compatible API server. It spins up endpoints like /v1/responses and /v1/chat/completions on localhost:18100, forwarding requests to Codex models such as gpt-5.4 while handling auth refresh and param normalization. Developers get a drop-in replacement for direct Codex calls, solving quirks like unsupported fields in OpenAI SDKs.

Why is it gaining traction?

No external deps—just Python 3.11 stdlib and a one-line ./run.sh start—makes it dead simple for macOS/Linux servers. Multi-account rotation auto-switches on rate limits or failures, plus chat completions conversion for broader client compat. Health checks, model lists, and optional API keys add polish without bloat.

Who should use this?

Codex subscribers building local scripts or tools that expect OpenAI APIs, like LangChain integrations or custom agents. Devs rotating team subs to dodge 429s during heavy coding sessions. Solo hackers testing prompts without browser tabs.

Verdict

Solid for personal Codex tinkering—18 stars and 0.7% credibility score signal early maturity, but strong docs, CLI utils, and unit tests make it production-ready for light self-use. Pass if you need scale or don't have a sub.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.