Codex Mate

June 7, 2026 · View on GitHub

Codex Mate logo

Codex Mate

One dashboard for all your local AI coding agents. Switch providers, manage sessions, and orchestrate tasks across Codex, Claude Code, OpenCode, and OpenClaw. Zero cloud, local-first control plane.

[Documentation] [Quick Start] [简体中文]

Version Build Downloads Install Platform Node License Stars Issues


Codex Mate Codex provider configuration

Codex Mate OpenCode provider configuration

Codex Mate unified session browser


Tip

Local First: All configurations and sessions are stored in your home directory. No telemetry, no cloud accounts required.

Important

This project is currently in early stage. We are seeking developers to help build the local agent ecosystem!

What is Codex Mate?

Have you ever felt overwhelmed by managing multiple local AI agents? Each has its own config format, session storage, and skills directory.

Codex Mate offers a unified control plane to bring order to the chaos. It's a local-first CLI + Web UI designed to manage Codex, Claude Code, OpenCode, and OpenClaw seamlessly.

What's So Special?

Unlike simple wrappers, Codex Mate acts as a Local Agent Bridge:

  • Unified Session Browser: Search, inspect, filter, and export local sessions across Codex, Claude Code, Gemini CLI, and CodeBuddy Code from one place.
  • OpenAI-Compatible Bridge: Use Codex with any OpenAI-compatible UI by normalizing the Responses API.
  • Claude Provider Bridge: Connect Claude Code to OpenAI Chat Completions-compatible providers and Ollama through the built-in local Claude-compatible proxy.
  • OpenCode Provider Control: Manage OpenCode provider/model selection with a CodexMate-owned provider store under ~/.codexmate, projecting only the active provider into native OpenCode config to avoid polluting or deleting user-owned settings.
  • Skills Marketplace: A local-first market to share and import skills between different agent apps.
  • Task Orchestrator: Plan and execute complex tasks with dependency tracking.

Current Progress

FeatureStatusDescription
Provider ManagementSwitch providers/models for Codex, Claude, OpenCode, and OpenClaw
Live Agent SyncReal-time monitoring of Codex/Claude config & status
Session BrowserSearch, preview, filter, and export sessions across Codex, Claude Code, Gemini CLI, and CodeBuddy Code
Usage AnalyticsVisualize message trends and top projects
Local Skills MarketCross-app import/export of agent skills
Task QueueDAG-based task execution and logs
OpenAI BridgeConvert Codex Responses API to standard OpenAI format
Claude Provider BridgeConnect Claude Code to OpenAI Chat Completions-compatible providers and Ollama via the built-in Claude-compatible proxy
OpenCode Provider StoreKeep multiple OpenCode providers in ~/.codexmate while projecting only the selected provider to native OpenCode config
Prompt TemplatesReusable prompt plugins with variables
MCP IntegrationExpose local tools and resources via MCP stdio
Auto UpdateQuick update CLI via codexmate update

Quick Start

Install via Homebrew (macOS / Linux)

brew tap SakuraByteCore/codexmate
brew install codexmate

Requires Node.js (brew install node if not present).

Install via npm

npm install -g codexmate
codexmate run

If the default Web UI port 3737 is unavailable, Codex Mate automatically tries the next ports (3738, 3739, ...). To force a fixed port, set CODEXMATE_PORT:

CODEXMATE_PORT=8080 codexmate run

Windows PowerShell:

$env:CODEXMATE_PORT=8080; codexmate run

Install via curl (Standalone)

curl -fsSL https://raw.githubusercontent.com/SakuraByteCore/codexmate/main/scripts/install.sh | bash

Supported Agents

  • Codex: npm install -g @openai/codex
  • Claude Code: npm install -g @anthropic-ai/claude-code
  • Gemini CLI: npm install -g @google/gemini-cli
  • CodeBuddy: npm install -g @tencent-ai/codebuddy-code
  • OpenCode: install from the official OpenCode docs

Architecture

%%{ init: { 'flowchart': { 'curve': 'catmullRom' } } }%%
flowchart TD
    User([User])
    CLI[CLI]
    WebUI[Web UI]
    MCP[MCP Server]

    subgraph Mate [Codex Mate Core]
        API[HTTP API]
        Config[Config Engine]
        Session[Session Manager]
        Skills[Skills Market]
        Tasks[Task Runner]
    end

    subgraph Local [Local Filesystem]
        CodexDir[~/.codex]
        ClaudeDir[~/.claude]
        ClawDir[~/.openclaw]
        OpenCodeDir[~/.config/opencode]
        MateDir[~/.codexmate]
        State[Sessions/Usage/Trash]
    end

    User --> CLI & WebUI & MCP
    CLI & WebUI & MCP --> API

    API --> Config & Session & Skills & Tasks

    Config --> CodexDir & ClaudeDir & ClawDir & OpenCodeDir & MateDir
    Session --> State
    Skills --> Local

Special Thanks

Special thanks to all contributors for their contributions to Codex Mate ❤️

Star History

Star History Chart

License

Apache-2.0