gitmyhub

alex

Rust ★ 81 updated 13d ago

Alex — a local LLM proxy for all your token providers, APIs and harnesses. Route Claude, ChatGPT/Codex, Gemini, Grok, Kimi & OpenRouter subscriptions into any coding tool. Your tokens, your traces, your choice.

A local proxy that lets you mix and match AI coding tools with different AI provider accounts, while recording traces of every session.

RustAnthropic APIOpenAI APIGemini APIsetup: moderatecomplexity 3/5

Alex is a local proxy program that sits between the AI coding tools you use, such as Claude Code, Codex, or Gemini, and the AI subscriptions or accounts that pay for them. Normally, the tool you code in, the AI model you use, and the account paying for it are all tied together, so switching any one of them is awkward. Alex separates these three things so you can, for example, use a Claude model inside a tool built for Codex, or use a GPT model inside Claude Code, without manually copying login credentials between them.

It runs as a background service on your own computer and exposes a local address that looks like the real Anthropic, OpenAI, or Gemini API to whichever coding tool connects to it. Once a provider account and a compatible tool are both connected, you pick which supported model to use, and Alex handles translating requests between the different API formats each provider expects.

Alex also records what happens during a session. It captures each request as a trace, groups a tool's related requests into one readable conversation, and for several supported tools it can even reconstruct the tree of subagents that a coding agent spawned while working, so you can see exactly what happened. Certain captured sessions from tools like Pi, Claude Code, and Codex can also be resumed as a native session in a different one of those tools, carrying over history and working directory where possible.

Other stated features include combining multiple subscriptions of the same provider so usage limits are less likely to interrupt a session, sending a notification if a subscription needs you to log in again, and tracing activity even from closed tools that were not designed to support custom endpoints, such as Amp and Cursor.

Alex is written in Rust and installed with a single terminal command on macOS or Linux, with Windows support planned but not yet available. It is distributed as a downloadable app or daemon rather than a library you import into your own code.

Where it fits