Skip to content

Commit 2a30afb

Browse files
committed
chore: resolve merge conflict with main
2 parents 9cb97a8 + 49c7ac7 commit 2a30afb

61 files changed

Lines changed: 4743 additions & 862 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Codex Mate
66

7-
**Local-first CLI + Web UI that edits your AI tool configs and sessions directly on disk, with built-in usage analytics and safe rollback.**
7+
**One dashboard for all your local AI coding tools — switch providers, manage sessions, edit configs, and orchestrate tasks across Codex, Claude Code, and OpenClaw. Built-in OpenAI-compatible bridge, usage analytics, and prompt templates. Zero cloud, zero setup.**
88

99
[![Build](https://img.shields.io/github/actions/workflow/status/SakuraByteCore/codexmate/release.yml?label=build&style=flat)](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
1010
[![Version](https://img.shields.io/npm/v/codexmate?label=version&style=flat)](https://www.npmjs.com/package/codexmate)
@@ -28,6 +28,7 @@
2828
Codex Mate is a local-first CLI + Web UI for unified management of:
2929

3030
- Codex provider/model switching and config writes
31+
- OpenAI-compatible bridge mode for Codex Responses API conversion
3132
- Claude Code profiles (writes to `~/.claude/settings.json`)
3233
- Claude Code `CLAUDE.md` editing (writes to `~/.claude/CLAUDE.md`)
3334
- OpenClaw JSON5 profiles and workspace `AGENTS.md`
@@ -55,6 +56,7 @@ It works on local files directly and does not require cloud hosting. The skills
5556
**Configuration**
5657
- Provider/model switching (`switch`, `use`)
5758
- Codex `config.toml` template confirmation before write
59+
- OpenAI bridge providers: write Codex to a local `/bridge/openai/<provider>/v1` endpoint and normalize Responses API requests for OpenAI-compatible upstreams
5860
- Claude Code profile management and apply
5961
- Claude Code `CLAUDE.md` editing (writes to `~/.claude/CLAUDE.md`)
6062
- OpenClaw JSON5 profile management
@@ -89,6 +91,7 @@ It works on local files directly and does not require cloud hosting. The skills
8991
- MCP stdio domains (`tools`, `resources`, `prompts`)
9092
- Automation hooks (`/hooks/*`) + outbound webhook notifiers
9193
- Built-in proxy controls (`proxy`)
94+
- OpenAI bridge conversion for Codex `/v1/responses` requests, including upstream `/responses` preference, `/chat/completions` fallback, and function-tool normalization
9295
- Auth profile management (`auth`)
9396
- Zip/unzip utilities
9497

@@ -229,7 +232,7 @@ npm run reset 79
229232
| `codexmate setup` | Interactive setup |
230233
| `codexmate list` / `codexmate models` | List providers / models |
231234
| `codexmate switch <provider>` / `codexmate use <model>` | Switch provider / model |
232-
| `codexmate add <name> <URL> [API_KEY]` | Add provider |
235+
| `codexmate add <name> <URL> [API_KEY] [--bridge openai]` | Add provider; `--bridge openai` creates a local Codex Responses-compatible bridge for OpenAI-style upstreams |
233236
| `codexmate delete <name>` | Delete provider |
234237
| `codexmate claude <BaseURL> <API_KEY> [model]` | Write Claude Code config |
235238
| `codexmate auth <list\|import\|switch\|delete\|status>` | Auth profile management |
@@ -256,6 +259,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "step1" --follow-up "step2"
256259
### Codex Mode
257260
- Provider/model switching
258261
- Model list management
262+
- OpenAI bridge providers for Codex Responses API conversion to OpenAI-compatible upstreams
259263
- `~/.codex/AGENTS.md` editing
260264

261265
### Claude Code Mode
@@ -310,6 +314,7 @@ codexmate mcp serve --allow-write
310314
- `~/.codex/auth.json`
311315
- `~/.codex/models.json`
312316
- `~/.codex/provider-current-models.json`
317+
- `~/.codex/codexmate-openai-bridge.json`
313318
- `~/.claude/settings.json`
314319
- `~/.claude/CLAUDE.md`
315320
- `~/.openclaw/openclaw.json`

README.zh.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Codex Mate
66

7-
**本地优先的 CLI + Web UI:直接写入你的本地配置与会话文件,内置 Usage 统计,并提供可审计、可回滚的变更保护**
7+
**一个面板管好所有本地 AI 编码工具 — 跨 Codex / Claude Code / OpenClaw 切 provider、管会话、改配置、编排任务。内置 OpenAI 兼容桥接、Usage 统计与提示词模板。纯本地,零上云**
88

99
[![Build](https://img.shields.io/github/actions/workflow/status/SakuraByteCore/codexmate/release.yml?label=build&style=flat)](https://github.com/SakuraByteCore/codexmate/actions/workflows/release.yml)
1010
[![Version](https://img.shields.io/npm/v/codexmate?label=version&style=flat)](https://www.npmjs.com/package/codexmate)
@@ -28,6 +28,7 @@
2828
Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
2929

3030
- Codex 的 provider / model 切换与配置写入
31+
- 面向 Codex Responses API 的 OpenAI 兼容桥接转换
3132
- Claude Code 配置方案(写入 `~/.claude/settings.json`
3233
- Claude Code `CLAUDE.md` 编辑(写入 `~/.claude/CLAUDE.md`
3334
- OpenClaw JSON5 配置与 Workspace `AGENTS.md`
@@ -55,6 +56,7 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
5556
**配置管理**
5657
- provider / model 切换(`switch` / `use`
5758
- Codex `config.toml` 模板确认后写入
59+
- OpenAI 桥接 provider:将 Codex 写到本地 `/bridge/openai/<provider>/v1`,并为 OpenAI 兼容上游归一化 Responses API 请求
5860
- Claude Code 多配置方案管理与一键应用
5961
- Claude Code `CLAUDE.md` 编辑(写入 `~/.claude/CLAUDE.md`
6062
- 分享命令前缀切换(`npm start` / `codexmate`),用于复制 provider / Claude 导入命令
@@ -93,6 +95,7 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
9395
**工程能力**
9496
- MCP stdio 能力(tools/resources/prompts)
9597
- 自动化钩子(`/hooks/*`)+ 外发 webhook 通知
98+
- Codex `/v1/responses` 的 OpenAI 桥接转换:优先尝试上游 `/responses`,必要时回退 `/chat/completions`,并归一化 function tools
9699
- Zip 压缩/解压(优先系统工具,失败回退 JS 库)
97100

98101
## 自动化(信号 → 行动)
@@ -232,7 +235,7 @@ npm run reset 79
232235
| `codexmate setup` | 交互式初始化 |
233236
| `codexmate list` / `codexmate models` | 查看提供商 / 模型 |
234237
| `codexmate switch <provider>` / `codexmate use <model>` | 切换 provider / model |
235-
| `codexmate add <name> <URL> [API_KEY]` | 添加提供商 |
238+
| `codexmate add <name> <URL> [API_KEY] [--bridge openai]` | 添加提供商`--bridge openai` 会为 OpenAI 风格上游创建本地 Codex Responses 兼容桥接 |
236239
| `codexmate delete <name>` | 删除提供商 |
237240
| `codexmate claude <BaseURL> <API_KEY> [model]` | 写入 Claude Code 配置 |
238241
| `codexmate workflow <list\|get\|validate\|run\|runs>` | MCP 工作流管理 |
@@ -258,6 +261,7 @@ codexmate codex --model gpt-5.3-codex --follow-up "步骤1" --follow-up "步骤2
258261
### Codex 配置模式
259262
- provider / model 切换
260263
- 模型管理
264+
- OpenAI 桥接 provider:将 Codex Responses API 转换给 OpenAI 兼容上游
261265
- `~/.codex/AGENTS.md` 编辑
262266

263267
### Claude Code 配置模式
@@ -318,6 +322,7 @@ codexmate mcp serve --allow-write
318322
- `~/.codex/auth.json`
319323
- `~/.codex/models.json`
320324
- `~/.codex/provider-current-models.json`
325+
- `~/.codex/codexmate-openai-bridge.json`
321326
- `~/.claude/settings.json`
322327
- `~/.claude/CLAUDE.md`
323328
- `~/.openclaw/openclaw.json`

0 commit comments

Comments
 (0)