explaingit

aitabby/opencodex

Analysis updated 2026-05-18

92TypeScriptAudience · developerComplexity · 2/5Setup · easy

TLDR

A local macOS server that lets Codex Desktop connect to third-party AI APIs instead of only OpenAI's own service.

Mindmap

mindmap
  root((OpenCodex))
    What it does
      Patches Codex config
      Bridges to other APIs
    Features
      Web dashboard
      Live log stream
      One-click restore
    Extras
      Computer Use engine
      Vision Bridge
    Tech stack
      Node.js
      macOS APIs
    Audience
      Codex Desktop 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

Point Codex Desktop at DeepSeek or another OpenAI-format API instead of OpenAI

USE CASE 2

Manage API keys and models for Codex from a local web dashboard

USE CASE 3

Let a text-only model handle screenshots via the Vision Bridge component

USE CASE 4

Automate mouse, keyboard, and window control on macOS through the Computer Use engine

What is it built with?

Node.jsmacOS

How does it compare?

aitabby/opencodexjdevalk/specification.websitedataants-ai/cutscript
Stars929293
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyeasymoderate
Complexity2/52/53/5
Audiencedeveloperdevelopergeneral

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

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires macOS, Node.js 18+, and an existing Codex Desktop installation.

The README does not state a license.

In plain English

OpenCodex is a local server that runs on your Mac and acts as a bridge between Codex Desktop (an AI coding tool from OpenAI) and third-party AI APIs. By default, Codex Desktop only works with OpenAI's own services. OpenCodex patches the Codex configuration file automatically when it starts up, letting you point Codex at any API that follows the OpenAI format, such as DeepSeek or other providers. The project includes a web dashboard accessible at localhost:8765 in your browser. From there you can add API keys, set custom API endpoints, add or remove models, choose which models appear inside Codex, and restart Codex with one click. A live log stream shows what is happening in real time. There is also a one-click option to restore the original Codex configuration if needed. Two additional components extend what Codex can do on macOS. The first is a Computer Use engine that can control the mouse, keyboard, and windows using the system's native event API, and can take compressed screenshots. The second is a Vision Bridge for AI models that only handle text and cannot process images on their own. When Codex needs to work with a screenshot but the active model does not support images, Vision Bridge compresses the screenshot, sends it to a separate vision-capable model to produce a text description, and injects that description into the prompt instead. This allows text-only models to participate in tasks that would otherwise require image understanding. Installation requires macOS, Node.js version 18 or later, and an existing Codex Desktop installation. Setup is three commands to clone, install dependencies, and start the server. The dashboard opens automatically in the browser.

Copy-paste prompts

Prompt 1
Set up OpenCodex so Codex Desktop uses my DeepSeek API key instead of OpenAI
Prompt 2
Show me how to add a custom model to Codex through the OpenCodex dashboard
Prompt 3
Explain how Vision Bridge lets a text-only model handle a screenshot in Codex
Prompt 4
Restore my original Codex configuration using OpenCodex's one-click option

Frequently asked questions

What is opencodex?

A local macOS server that lets Codex Desktop connect to third-party AI APIs instead of only OpenAI's own service.

What language is opencodex written in?

Mainly TypeScript. The stack also includes Node.js, macOS.

What license does opencodex use?

The README does not state a license.

How hard is opencodex to set up?

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

Who is opencodex for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.