explaingit

aidotnet/codexswitch

Analysis updated 2026-05-18

63C#Audience · developerComplexity · 2/5Setup · moderate

TLDR

A desktop app that lets OpenAI Codex talk to different AI providers like Anthropic or DeepSeek through a local proxy you control.

Mindmap

mindmap
  root((CodexSwitch))
    What it does
      Routes Codex requests
      Translates API formats
      Tracks usage and cost
    Tech stack
      C sharp
      Avalonia
    Use cases
      Provider switching
      Cost tracking
    Audience
      Codex users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Switch OpenAI Codex between different AI providers without reconfiguring it.

USE CASE 2

Route Codex requests to Claude, DeepSeek, or other providers based on cost.

USE CASE 3

Track how many tokens and how much cost each Codex session uses locally.

USE CASE 4

Manage API keys for multiple AI providers from one desktop app.

What is it built with?

C#Avalonia.NET

How does it compare?

aidotnet/codexswitchtheaceofficials/betterposter-for-jellyfinmnihek/star-fox-pc-port
Stars635857
LanguageC#C#C#
Setup difficultymoderateeasyeasy
Complexity2/52/51/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires API keys for the AI providers you want to route to.

In plain English

CodexSwitch is a desktop application for Windows, macOS, and Linux that acts as a local routing layer between OpenAI Codex (an AI coding agent) and various AI providers. The problem it solves is that Codex normally only talks to one AI service, but developers may want to use different AI providers such as OpenAI, Anthropic (Claude), DeepSeek, or others depending on cost, availability, or capability. CodexSwitch runs a small proxy server on your own computer at a local address. Codex is configured to send its requests to this local proxy instead of directly to the cloud. The proxy then selects the right AI provider based on the model requested, translates the request format if necessary (since different providers use different API formats), and forwards it. For example, if you ask for a Claude model, it converts the OpenAI-style request that Codex sends into Anthropic's format, sends it to Anthropic's servers, and converts the response back into the format Codex expects. It also records a local log of all requests, how many tokens were used, and the estimated cost. The desktop interface, built with Avalonia (a cross-platform UI framework for .NET applications written in C#), lets you switch the active provider with one click, manage API keys, view usage statistics over 24 hours, 7 days, and 30 days, and customize which model names map to which upstream providers. You would use this if you run the Codex agent and want to control costs, swap providers without reconfiguring Codex, or track your AI usage locally.

Copy-paste prompts

Prompt 1
Show me how to configure Codex to send requests through CodexSwitch's local proxy.
Prompt 2
Help me set up CodexSwitch to route Claude-model requests to Anthropic's API.
Prompt 3
Explain how CodexSwitch translates OpenAI-style requests into Anthropic's format.
Prompt 4
Walk me through viewing 7-day usage and cost statistics in CodexSwitch.

Frequently asked questions

What is codexswitch?

A desktop app that lets OpenAI Codex talk to different AI providers like Anthropic or DeepSeek through a local proxy you control.

What language is codexswitch written in?

Mainly C#. The stack also includes C#, Avalonia, .NET.

How hard is codexswitch to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is codexswitch for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.