Codex–Claude Council

io.github.hamza-aziz-ai由 GitHub 账号 hamza-aziz-ai 发布v0.21.1更新于 Oct 29, 2026

ChatGPT (Codex CLI) and Claude (Claude Code) discuss until they agree, on your own subscriptions.

发布方自己的服务:Claude Platform Docs

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

让 ChatGPT(Codex)与 Claude 反复讨论直到达成一致,使用你自己的订阅或 API 密钥。

可以做什么
  • 向两个模型提问并获得一份达成一致的答案,可选返回逐步辩论记录
  • 只向单个模型索取快速第二意见
  • 让当前会话作为一方参与,与另一个模型轮流发言
  • 续接已有的 Claude Code 或 Codex 会话,并等待、取消或取回正在运行的议会任务
  • 指定技能、按方设置模型与推理强度,并开关联网搜索或 Codex 的网络访问
适用场景
当你希望就项目问题、设计决策或代码评审得到两个不同模型家族交叉核对的答案,并且已经订阅 ChatGPT 和/或 Claude 时适用。也适合让当前的 Claude Code 或 Codex 会话与另一个模型就某个观点展开讨论。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本(Claude Desktop 扩展或 Docker 方式不需要)。每一方都需要已登录订阅计划的 CLI,或 API 密钥(OPENAI_API_KEY、ANTHROPIC_API_KEY),可经 CLI 或直接调用厂商 API。建议安装 Git 以读取历史并下载技能。使用期间宿主应用需保持打开。
安装前请注意
问题会保存在双方会话中并发送给两家厂商,请勿在其中写入机密。API 密钥模式按 token 计费,max_rounds 设为 0 可能大量消耗两边的额度。为 Codex 开启 network 后,能读取你文件的模型也能访问网络,提示注入风险上升;请配合 network_domains 使用,敏感项目保持关闭。第三方技能从仓库下载,安装前请检查其内容与许可。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Codex–Claude Council,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Codex-Claude Council: ChatGPT and Claude discuss with each other until they agree]

[CI] [npm] [License: MIT] [Node 20+] [API keys optional]

[Smithery: 98/100] [HOL Plugin Scanner: 95/100] [TDQS] [M8ven Score] [Codex Claude Council MCP score on AI Agents Listing] [Listed on awesome-remote-mcp-servers]

[Codex–Claude Council on Glama] [Codex–Claude Council on MCPRush]

[Codex–Claude Council on AI Agents Listing]

Also in the MCP Registry, on Smithery, npm, GHCR and Docker Hub.

Two AIs. One answer.

Ask ChatGPT (through Codex) and Claude the same question.
They discuss with each other, round after round, until they agree on one answer.

In Claude Code · Claude Desktop · Codex · the ChatGPT desktop app · claude.ai and your phone · your terminal, on Windows, macOS and Linux.
On the plans you already have, or with API keys.

Get started · Use it · How it works · Setups · Guides · Reference · Troubleshooting

🔍 Both work in your project, read-only
They read files, search and run read-only commands such as git log and git diff, but neither can change anything.
🌐 With the web
Both check current versions, APIs and docs instead of relying on memory.
🔁 With the sessions you choose
New sessions, your existing Claude Code and Codex sessions (with everything they already know), or the session you are asking from as one of the two members.
🧰 With your own setup
Your skills, plugins, MCP servers and CLAUDE.md / AGENTS.md apply to both. Skills such as llm-council or caveman on request.
🔑 Your plans, or API keys
Your own Codex CLI (signed in with ChatGPT) and Claude Code (signed in with your Claude plan), by default. Or give a side its API key, even with no CLI installed.
📱 From anywhere
On your computer through the plugin, in Claude Desktop through its extension, or online for claude.ai, ChatGPT and your phone, from your computer or a server (Docker).

[A real council in the terminal: asked whether to use UUIDv7 or integer primary keys, ChatGPT and Claude both disagree for two exchanges, Claude agrees in the third, ChatGPT in the fourth, and they answer: choose BIGINT identity, with UUIDv7 only for offline or decentralized ID generation.]
A real council (low effort, the wait cut out): they disagree for two exchanges, then converge on one answer. Recorded with assets/demo.tape.

Get started

1. Add it where you ask:

Where you askAdd it withDetails
Claude Code, Codex (CLI and IDE extension)npx -y codex-claude-council install, then restart themInstall
Claude Desktopits extension: open codex-claude-council-<version>.mcpb, with API keys in its settings if you wantClaude Desktop extension
ChatGPT desktop appSettings → Plugins → Add → + Add a marketplace: https://github.com/hamza-aziz-ai/codex-claude-council.gitOr install per app
claude.ai, ChatGPT on the web, your phonenpx -y codex-claude-council serve --tunnel, or the Docker image on a server, then add the URL as a connectorUse it online
Cursor, VS Code, Windsurf, any MCP clienta stdio server: npx -y codex-claude-council mcpJSON config
Your terminalnpx -y codex-claude-council ask "…"From the terminal

2. Choose how each side runs (separately for ChatGPT and Claude):

NeedsPays with
Its CLI, on your plan (default)Codex CLI signed in with ChatGPT / Claude Code signed in with your Claude planyour ChatGPT or Claude plan
Its CLI, on an API keythe CLI, signed in with an API keyper token: API keys instead of a plan
Its API, no CLIonly an OpenAI or Anthropic API keyper token: Without the CLIs

Mix freely: for example Claude Code on your Claude plan, with ChatGPT through an OpenAI API key. npx -y codex-claude-council doctor checks what you have.

3. Ask, in a project: "Ask the council: what does this project do, and what would you improve first?"

[!TIP] Already in a session of one model? Say "discuss with my Codex session 019a…" (in Claude Code) and your session takes part itself, with everything it already knows. See council_join.

Use it

Just ask in plain language. The host (the app you are asking in) picks the tool and fills in its inputs:

You sayWhat runs
"Ask the council: should I use Postgres or MongoDB for this?"council_ask: both answer, then reply to each other until they agree on one final answer
"Run a council debate on this migration plan."council_debate: the final answer plus both answers, every exchange and the final check
"Get Codex's second opinion on this function."council_ask_codex (or council_ask_claude for Claude alone)
"Discuss with my Codex session 019a… whether this refactor is safe." (asked in Claude Code)council_join: this session takes part itself; Codex continues session 019a…
"Ask the council, continuing my Claude session 3f2a… and my Codex session "auth refactor": is my plan sound?"council_ask with claude_session_id and codex_session_id
"Council this with ChatGPT on gpt-5.6-sol at xhigh and Claude on opus at max: …"council_ask with per-side model and effort
"Ask the council and keep going until they agree: …"council_ask with max_rounds: 0
"Ask the council, and let ChatGPT write the final answer: …"council_ask with synthesizer: "codex"
"Ask the council: is the latest Next.js release safe to upgrade to for our app?"council_ask: both read the project and search the web
"Ask the council without internet access: …"council_ask with web_search: false
"Ask the council, using the llm-council and caveman skills: …"council_ask with skill: "llm-council, caveman"

In a project, the host passes its folder as the workspace, and the models read what they need themselves: point them at files, functions, the failing test or the error rather than pasting whole files. They cannot see the host's conversation (unless the host takes part itself), so the host states the task and any context that is not in the project.

Apps that show MCP prompts (claude.ai and Claude Desktop, in their + menu) also offer three starters: ask_council, second_opinion and debate.

[!NOTE] Long runs. A council takes several minutes: two calls for the answers, two per exchange and two for the final answer and its check, all counting against both plans (or keys). Some apps end a tool call after about 60 seconds (Claude Desktop does), so every tool returns within about 50 seconds, with the answer or with "still working", the current step and a job_id; the host then calls council_result until the answer is ready, while the council keeps running. council_cancel stops a job.

How it works

mermaid
flowchart LR    Q[Your question] --> CA[Codex answers]    Q --> LA[Claude answers]    CA -- to Claude --> L1[Claude replies]    LA -- to Codex --> C1[Codex replies]    L1 -- to Codex --> C2[Codex replies]    C1 -- to Claude --> L2[Claude replies]    C2 & L2 --> V{Both agree?}    V -- no: exchange again --> V    V -- yes --> F[One writes the final answer, the other checks it]
  1. Answer: both models answer on their own, without seeing each other.
  2. Exchange: each model gets the other's latest message (first its answer, then its replies) and replies point by point: what it accepts and how its position changes, where it still disagrees and why, then its current answer and a verdict, AGREE or DISAGREE. The two replies cross over, and the exchange repeats: a crossed zig-zag that narrows round after round.
  3. Converge: as soon as both say AGREE in the same exchange, one model writes the final answer and the other checks that it matches what they agreed (at most 5 exchanges by default; max_rounds: 0 for no limit).
  4. No agreement: if the limit is reached first, the final answer sets out what they agree on and each point still in dispute, with both positions.

Neither model leads the discussion: in every exchange both reply to each other at the same time, and only after they agree does one of them write the final text. Each model keeps its session between questions, so it remembers the discussion and what it has already read, and each prompt carries only what that model has not seen yet.

Why two models?

One model answers with confidence, right or wrong. Two models that disagree, and must explain why to each other, catch what either misses alone, the way a second reviewer does.

A real run (low effort): "PostgreSQL or SQLite for a single-server internal tool with about 20 users?"

ChatGPTClaude
Opening answerSQLitePostgreSQL
Exchange 1holds: "20 users alone does not establish write contention"accepts most points and switches to SQLite, but keeps one objection
Exchanges 2–3sharpens when PostgreSQL would be rightwithdraws "multiple app instances" as a reason
Exchange 4agreesagrees
Final checkrejects the first final text (over the 120-word limit, one unsupported claim); accepts the revision

The final answer was sharper than either opening answer: SQLite, with the exact conditions under which to move to PostgreSQL. See the whole discussion as a page: open it (source) (make your own with --html, see From the terminal).

Benchmark

24 programs in which several traps interact (the hard set: the event loop across nested promises and timers, class fields, yield from, NULL in joins, …), each asked "what exactly does this print?" and graded against what it really prints. Codex gpt-6.1-sol and Claude Sonnet 5.5, both at low effort, fresh sessions, no web search (October 13, 2026):

Right answersMedian time per question
Codex alone24 / 2418 s
Claude alone23 / 2411 s
Council24 / 2459 s
  • The council caught the one mistake: on h-py-dunder Claude alone printed V3 V102 V3 …; the council printed the right V3 V102 V102 …, with both models agreeing.
  • It never made things worse: there is no question the council got wrong that either model got right alone.
  • What it means: here Codex alone was already perfect, so the council's gain is insurance. You get the better answer without knowing in advance which model will slip, at about 3 to 5 times the time. One miss in 24 is a small sample, not proof.

Every answer is in the result file. Run it yourself with your own models and effort.

Setups

Requirements

You needInstallSign in
Node.js 20 or newer: runs the small MCP server (not needed for the Claude Desktop extension or Docker)nodejs.org–
For Claude's side on your plan: Claude Code CLI, with a Claude Pro, Max, Team or Enterprise planmacOS / Linux / WSL: curl -fsSL https://claude.ai/install.sh | bash
Windows: irm https://claude.ai/install.ps1 | iex
claude auth login
For ChatGPT's side on your plan: Codex CLI, with a ChatGPT planany OS: npm install -g @openai/codex
macOS: brew install --cask codex
codex login → Sign in with ChatGPT
Git (recommended)usually already installed–
  • Each side needs its CLI, or its API key (Without the CLIs). Before each council, each side is checked, and nothing is sent until both are ready; the message says what is missing and how to fix it.
  • Git lets both models look at your project's history, changes and blame, and skill add uses it to download a repository's skills.

[!IMPORTANT] Keep both CLIs up to date. The council uses recent options: Claude Code's plan mode and stream-json output, and Codex's exec resume and web search. If a run fails with "unknown option" or "unexpected argument", update the CLI it names: claude update, or npm install -g @openai/codex@latest.

Install

For Claude Code and Codex (the CLIs and their IDE extensions). Use one of these:

macOS / Linux / WSL

bash
curl -fsSL https://raw.githubusercontent.com/hamza-aziz-ai/codex-claude-council/main/install.sh | bash

Windows (PowerShell)

powershell
irm https://raw.githubusercontent.com/hamza-aziz-ai/codex-claude-council/main/install.ps1 | iex

Any OS with Node.js

bash
npx -y codex-claude-council install

The installer checks Node.js and both CLIs (and whether each is signed in), then adds this repository's marketplace to Claude Code and Codex and installs the plugin in both (for Claude Code, for your user, so it works in every project). If the plugin is already installed, it updates it instead.

  • Options: --only claude|codex (one app only), --claude-desktop (also register the server with Claude Desktop's Chat tab), --dry-run (show the commands without running them). With the scripts: … | bash -s -- --claude-desktop, or & ([scriptblock]::Create((irm https://raw.githubusercontent.com/hamza-aziz-ai/codex-claude-council/main/install.ps1))) --claude-desktop.
  • Afterwards: fully quit and reopen Claude Code and Codex, check the setup with npx -y codex-claude-council doctor, and try it in a project.
Update
bash
npx -y codex-claude-council update               # both appsnpx -y codex-claude-council update --only claude # or --only codex

It refreshes the marketplace and updates the plugin in Claude Code and Codex; then fully quit and reopen both. CHANGELOG.md lists what changed. In Claude Desktop, plugins update through Sync automatically (or Sync under Settings → Plugins); in the ChatGPT desktop app, under Settings → Plugins.

[!WARNING] Windows: if Codex fails with "failed to back up plugin cache entry: Access is denied. (os error 5)", a running app still has the plugin's folder open (versions up to 0.5.1 did this). Quit every Codex and Claude session, IDE extension and desktop app, then update again.

Or install per app
AppHow
Claude Codeclaude plugin marketplace add hamza-aziz-ai/codex-claude-council
claude plugin install codex-claude-council@codex-claude-council --scope user
Codex (CLI and IDE extension)codex plugin marketplace add hamza-aziz-ai/codex-claude-council
codex plugin add codex-claude-council@codex-claude-council
Claude Desktop (Cowork and Code)Settings → Customize → Plugins → + Add → Add marketplace → Add from a repository, enter hamza-aziz-ai/codex-claude-council, turn Sync automatically on, click Sync, then install codex-claude-council
Claude Desktop (Chat, with the extension)see Claude Desktop extension; or npx -y codex-claude-council install --claude-desktop --only claude, then fully quit and reopen Claude Desktop
ChatGPT desktop appSettings → Plugins → Add → + Add a marketplace, enter https://github.com/hamza-aziz-ai/codex-claude-council.git in Source, click Add marketplace, then install codex-claude-council
Any other MCP client (Cursor, VS Code, Windsurf, …)a local (stdio) MCP server with command npx and arguments ["-y", "codex-claude-council", "mcp"] (below). Also in the MCP Registry as io.github.hamza-aziz-ai/codex-claude-council

For a client configured with JSON (Cursor's mcp.json, Windsurf, Claude Desktop's claude_desktop_config.json, …), paste:

json
{  "mcpServers": {    "council": {      "command": "npx",      "args": ["-y", "codex-claude-council", "mcp"]    }  }}

The council runs on your computer, so keep the app open while you use it.

Claude Desktop extension

  1. Open codex-claude-council-<version>.mcpb from the latest release (or Settings → Extensions → Install Extension…). It includes everything the server needs.
  2. Optional, for a side without its CLI: open Settings → Extensions → Codex–Claude Council → Configure and enter the partner model's key: an OpenAI API key for ChatGPT, an Anthropic API key for the Claude side, and a model for each if you like (empty: gpt-6-astra, claude-opus-5-5). A side with a key runs through its API; a side without one uses its CLI. Claude Desktop keeps the keys masked and passes them only to this server, which never passes them on to the CLIs.
  3. Ask: "Ask ChatGPT: …" (one model), "Discuss with ChatGPT whether …" (council_join: Claude Desktop itself is the Claude member, so the OpenAI key alone is enough), or "Ask the council: …".

Use it online: claude.ai, ChatGPT, your phone

Apps on the web and on phones reach MCP servers over HTTPS, from their providers' servers, so they can't start a local one. serve --tunnel puts the council's MCP server online from your computer. It needs cloudflared (Windows: winget install Cloudflare.cloudflared, macOS: brew install cloudflared) and no Cloudflare account:

bash
npx -y codex-claude-council serve --tunnel

It prints the URL, https://<random words>.trycloudflare.com/mcp/<token>. Add it as a custom connector, with no sign-in:

AppWhere
claude.ai (and the Claude apps on your phone and desktop)Settings → Connectors → Add custom connector: a name, the URL, then No sign-in
ChatGPTTurn on developer mode (Settings → Apps → Advanced settings), then create a connector with the URL
Any other MCP clienta remote MCP server with the URL (Streamable HTTP)
  • Keep the URL secret. The token in it is the only key: anyone with the URL can run the council on your computer, under your plans, and the members can read your files. It is generated on the first start and saved next to your config file (serve-token); delete that file for a new one, or set --token / COUNCIL_TOKEN.
  • Your computer is the server. It must be on, with serve running. Questions about a project need its folder on that computer: name it in the question ("in the project at ~/code/app").
  • The address changes each time serve --tunnel starts (a quick tunnel); update the connector then, or use a fixed address.
  • Options: --port (default 8000), --host (default 127.0.0.1). Without --tunnel, serve prints the local address, http://127.0.0.1:8000/mcp/<token>, for your own tunnel or reverse proxy.
With Docker Compose, in the background

The whole setup in one container that starts again by itself after a reboot: Node.js, both CLIs, cloudflared and serve --tunnel. On a server you control (a VPS or a home server, amd64 or arm64) or on your own computer with Docker Desktop. It is still your council: sign both CLIs in with your own accounts, for your own use. In an empty folder:

bash
curl -fsSLO https://raw.githubusercontent.com/hamza-aziz-ai/codex-claude-council/main/compose.yaml# Windows (PowerShell): irm https://raw.githubusercontent.com/hamza-aziz-ai/codex-claude-council/main/compose.yaml -OutFile compose.yamldocker compose up -ddocker compose exec council codex-claude-council login   # once: sign both CLIs indocker compose logs council                              # the URL to add as a connector
  • login signs in each CLI that isn't signed in yet: for Codex, a code to enter on any device (choose Sign in with ChatGPT); for Claude Code, a link to open and a code to paste back. The sign-ins are kept, so this is needed once.
  • Settings go in .env next to compose.yaml: COUNCIL_PROJECTS (the folder mounted read-only at /projects; default ./projects), COUNCIL_TOKEN, a fixed address (below), and API keys (below). Keep .env to yourself.
  • The council-home volume keeps the sign-ins, config, skills and the token across restarts and new images.
  • Update: docker compose pull, then docker compose up -d. The image is ghcr.io/hamza-aziz-ai/codex-claude-council, also on Docker Hub as hamzaazizai/codex-claude-council, tagged latest and with each version.
  • seccomp=unconfined (set in compose.yaml): Codex's read-only sandbox (bubblewrap) needs user namespaces, which Docker's default seccomp profile blocks. If Codex still reports that bubblewrap can't create a namespace, add apparmor=unconfined under security_opt too.
  • Without Compose: docker run -d --name council --restart unless-stopped --security-opt seccomp=unconfined --env-file .env -v council-home:/home/node -v ~/code:/projects:ro ghcr.io/hamza-aziz-ai/codex-claude-council serve --tunnel, then docker exec -it council codex-claude-council login and docker logs council.
A fixed address with your own domain

With a Cloudflare named tunnel on a domain whose DNS is on Cloudflare, the container runs that tunnel itself and the address stays the same. Once, with cloudflared on your computer (this opens Cloudflare in your browser):

bash
cloudflared tunnel logincloudflared tunnel create councilcloudflared tunnel route dns council council.example.com

Then add the tunnel's token and its address to .env (PowerShell; this writes the token to the file without showing it) and start it:

powershell
Add-Content .env "TUNNEL_TOKEN=$(cloudflared tunnel token council)"Add-Content .env "COUNCIL_PUBLIC_URL=https://council.example.com"docker compose up -d

docker compose logs council then shows https://council.example.com/mcp/<token>, the same after every restart. To keep a URL you already use, add its token too: COUNCIL_TOKEN=<the part after /mcp/>.

Plans, API keys or no CLI

API keys instead of a plan

To pay per token on one side through its CLI, for example Claude on your Claude plan and Codex on an OpenAI API key, set that side's auth to api_key in the config (Docker: COUNCIL_CODEX_AUTH=api_key or COUNCIL_CLAUDE_AUTH=api_key in .env):

json
{ "codex": { "auth": "api_key" } }
SideHow to give it the key
Codexcodex login --with-api-key, then paste it; or set OPENAI_API_KEY and run npx -y codex-claude-council login, which stores it with Codex
Claude Codeset ANTHROPIC_API_KEY, which Claude Code reads as it is; or claude auth login --console

A side on subscription gets no API key at all, so it can't bill an API account by accident; neither CLI ever gets the other side's key. A side on api_key still accepts its plan's sign-in.

Without the CLIs: through the APIs

An add-on to the CLIs, which stay the default: a side set to "via": "api" runs through its provider's API, so its CLI doesn't need to be installed. Claude goes through Anthropic's Messages API and ChatGPT through OpenAI's Responses API, each with its API key, billed per token.

SideSetKeyModel, when none is set
Codex (ChatGPT){ "codex": { "via": "api" } } or COUNCIL_CODEX_VIA=apiOPENAI_API_KEYgpt-6-astra
Claude{ "claude": { "via": "api" } } or COUNCIL_CLAUDE_VIA=apiANTHROPIC_API_KEYclaude-opus-5-5 (opus, sonnet, haiku and fable name the current ones)

In the Claude Desktop extension, entering a key in its settings does both. model and effort work as for the CLIs. The Claude Code and Codex plugins don't include the providers' SDKs: run npx -y codex-claude-council api-setup once to add them (npm, Docker and the Claude Desktop extension have them already).

Through its CLIThrough its API
Your projectreads files, searches, runs read-only commands (git log, diff, …)three read-only tools of the council's own, limited to the project folder: list files, read a file, search; no commands
The webthe CLI's web searchthe provider's web search (and Claude's web fetch)
Memorythe CLI sessionthe conversation, kept by the council's server while it runs (OpenAI's side with store: false)
Your own sessions (…_session_id, council_join's other side)continued in placenot possible: they exist only in the CLIs
Your setup (CLI skills, plugins, MCP servers, CLAUDE.md / AGENTS.md)appliesdoesn't: a skill you name is sent as text

It can't change anything either way: an API member has no tool that writes or runs anything.

Examples and best practices

Pick the right tool

mermaid
flowchart TD    S{What do you want?} -->|a quick second opinion| O[council_ask_codex / council_ask_claude]    S -->|a cross-checked answer| W{Who should take part?}    W -->|two fresh sessions| CA[council_ask]    W -->|my existing Claude Code and Codex sessions| CS[council_ask with claude_session_id and codex_session_id]    W -->|the session I am in, with the other model| CJ[council_join]    S -->|every step, to see where they disagree| D[council_debate]

The host picks the tool from your words. Name the tool if you want to be sure:

To getSayNot
council_join (the session you are in takes part)"Discuss with my Codex session 019a… whether …", "take part yourself as Claude, with my Codex session …", or "use council_join …""council_ask with my Codex session", which starts a separate Claude session instead
council_ask with your own sessions"Ask the council, continuing my Claude session … and my Codex session …"naming the session you are asking from
council_debate"Run a council debate on …", "show me every step"–

Use it from the desktop apps

Claude Cowork with a ChatGPT Work conversation. Conversations in ChatGPT's Work mode are saved as Codex sessions, so the plugin can continue one by its title. In a Cowork conversation, ask: Discuss with my ChatGPT Work session "Find UAE job platforms": which three job portals should I focus on first, and why?

  • Cowork is the Claude member, with everything its project gives it: its folders, instructions, connectors and skills.
  • Codex continues that Work conversation, read-only, in its own folder, and the council's turns appear there when you reopen it. Close it in the ChatGPT app first.
  • A Cowork conversation can't be continued from outside: Cowork doesn't save its conversations as Claude Code sessions. Start from Cowork to have it take part.
  • Share the project folder. If both apps' projects use the same folder on your computer, both models read the same files. Instructions stored only inside an app are not shared: the other model sees the folder's CLAUDE.md / AGENTS.md instead.

Give the members what they can't reach

The members are read-only. By default Codex's commands have no network access: it can't call an API, query a database, open a Google Sheet or a claude.ai link, and its web search only reaches public pages. Claude's read-only commands can reach the network. Turn on network to let Codex call APIs too. Either way, data behind a login (SSH, databases, private sheets) is best collected by the host first, into the workspace, with the question pointing to it:

mermaid
flowchart LR    subgraph Remote[Out of the members' reach]        L[(Server logs)]        DB[(Database)]        G[Google Sheet]        A[claude.ai artifact]    end    H[Host session] -->|ssh, export, download| F["workspace/.council-data/<br/>(in .git/info/exclude)"]    L & DB & G & A -.-> H    F --> C[Claude member]    F --> X[Codex member]
  • Copy only what the question needs, such as the log lines for the calls in question, not whole log folders.
  • Keep the copies out of git: put them in a folder listed in .git/info/exclude, which stays on your machine.
  • Keep secrets out of the question. The question is saved in both sessions and sent to both providers. Have the host read a connection string from an environment variable instead.

Write a question that works

The members can't see your conversation with the host: they see only the question (at most 12,000 characters) and the workspace. For a long task, split your prompt in two:

## Part A — instructions for you (the host), not sent to the other model1. Collect the data into .council-data/ (see above).2. Start council_join with me "claude", other_session_id "<id>",   workspace "<absolute path>", max_rounds 0.3. When they agree, show me the result and wait for my OK before changing code.
## Part B — the council question (send verbatim)Goal: <what you want, and what "done" means>.Data: <each file or folder, and its format>.Tasks: 1. Measure … 2. Trace the code path (file:line) … 3. Propose the smallest fix as a diff …Constraints: every claim cites a log line, a file:line or a measured number.
  • Say what to measure, not what to find. If the question states the answer ("p50 is 2.7 s"), the other model tends to confirm it instead of checking. Give earlier findings as a file to open after its own measurement.
  • Ask for evidence and for measured results. "Report the saving as measured; do not round it up to a target" keeps a goal like "save 2 s" from turning into a claim.
  • State the premise as a question, not a fact. "Measure first; do not assume a fast path exists" lets the models correct a wrong assumption.
  • The members only propose. They are read-only, so the host applies the agreed change afterwards, then tests and commits it.
  • In Claude Code, /goal is limited to 4,000 characters. Save a long prompt as a file and give /goal a short condition: "/goal Follow every step in /path/task.md in order. Done when: …".

Skills, models and effort

  • Several skills at once. Name them all (skill: "llm-council, caveman", or --skill llm-council --skill caveman). Both models get each one's instructions and use each where it fits. With council_join, have the host invoke the same skills itself.
  • Use heavy skills once. llm-council starts five advisors each time it runs. Ask for it once, on the final plan, not on every turn.
  • Model and effort: anything you don't set comes from the plugin's config (effort high by default), then from each CLI's own config. So Codex uses the model in your ~/.codex/config.toml, but the plugin's high effort replaces the effort set there. Ask for xhigh or max for one question, or set it in the config.

Who takes part

There are three ways to run the two members. The discussion is the same in all of them.

Claude memberCodex memberUse it when
New sessions (default)a new Claude Code sessiona new Codex sessionyou want two fresh, independent opinions
Your sessionsyour Claude Code session, continuedyour Codex session, continuedboth of your sessions already know the work
Take part yourselfthe session you are asking from (if it is Claude Code)your Codex session, continued, or a new oneyou want the session you are in to discuss with the other model

New sessions last as long as your host session: follow-up questions reuse them, so the models remember earlier questions and what they read. A new host session starts new ones too.

Your sessions

Pass sessions you already have, by id or by name, and the council continues those sessions in place, with everything they have read and discussed. The council's turns are added to them, so you see the discussion when you go back.

ToolInputsTerminal
council_ask, council_debateclaude_session_id, codex_session_id (either or both)--claude-session <id|name>, --codex-session <id|name>
council_ask_claude, council_ask_codexsession_id--session <id|name>
Claude CodeCodex
Id/status in the session (a UUID), or claude --resume/status in the session; also the end of its file name in ~/.codex/sessions/YYYY/MM/DD/rollout-…-<id>.jsonl
Name/rename <name> in the session/rename <name> in the session
Listclaude --resumecodex resume (this folder), codex resume --all (every folder)
  • A name is looked up where each CLI keeps it: Claude Code in the session's own transcript, Codex in ~/.codex/session_index.jsonl. If several sessions have that name, the most recently used one is taken. Names are easy to reuse by mistake, so pass the id when it matters which session you get.
  • Each session runs in the folder it was started in, which is also the default workspace. For the council's turns, both run in plan mode / read-only, whatever mode you used them in.
  • Close those sessions first, or at least don't type in them while the council runs: two programs writing to one session can mix up its history. Codex refuses a session open elsewhere ("already has an active writer") or one it hasn't saved yet (no message sent in it). Reopen them afterwards (claude --resume <id>, codex resume <id>) to see the council's turns.
  • Don't pass the id of the session you are asking from; to have that session take part, use council_join.

Sessions on another machine

A session on another computer takes part too: write it as user@host:session, for example --claude-session [email protected]:fix-order-dialog-bugs. That member runs on that machine, through ssh: this plugin's own codex / claude command, with that machine's CLI and its sign-in, in the session's own folder, read-only as here.

  • Needs: key-based ssh from this computer (ssh -o BatchMode=yes user@host true must work), and Node.js 20+ and the CLI, signed in, on that machine (Linux or macOS; nvm is found too). Nothing is installed there: npx fetches this plugin's version for the call.
  • Its model and effort come from that machine's config, unless you set them for the call. Skills: the council asks that machine which are installed for its CLI; those it loads by name, the others' instructions are sent.
  • It continues the saved session, not the window it is open in. Cancelling stops the council here; a turn already running there finishes there. ssh is found on your PATH; set "ssh": { "command": "<path>" } in the config to use another.

Take part yourself: council_join

Say your repository has a Claude Code session abcd and a Codex session efgh, and you are working in abcd. Ask there: "discuss with my Codex session efgh whether we should split the auth module".

  • abcd itself is the Claude member. No second Claude session is started. council_join hands abcd each of Claude's turns; abcd writes them in its own conversation, with everything it already knows, and sends each back with council_turn.
  • Codex continues efgh in place, read-only (without a session id, a new session). They exchange replies until both agree, and abcd writes the final answer, which Codex checks.
  • It works the other way round too: from a Codex session, that session is the Codex member and Claude continues the Claude Code session you name. In Claude Desktop or claude.ai, the app itself is the Claude member.
  • The host is asked, not forced, to leave files alone: it keeps its own permissions. Only the other side must be ready (its CLI signed in, or its API key). Each of the host's turns may take up to skill_timeout_seconds (default 1800). It needs a host that takes turns, so it is not a terminal command.

Reference

What the members can use

Claude member (claude -p)Codex member (codex exec)The host, with council_join
Modeplan moderead-only sandboxits own, unchanged
Your setupsettings, skills, plugins, MCP servers, CLAUDE.md, hooksconfig.toml: skills, plugins, MCP servers, AGENTS.md, ruleseverything it already has
Canread, search, run read-only commands (git log, diff, blame, curl, …), use skills and sub-agents, search the webread, search, run commands that change nothing, use skills and sub-agents, search the web; with network, reach the network from its commandsanything it normally can; asked not to change files
Cannotedit, write or run other commands; ask you questions; use this pluginwrite anywhere; reach the network from its commands (unless network is on); get approval for anything; use this plugin–

A member through its API has only its three read-only project tools and web search (Without the CLIs). Skill steps that would change something (saving a report, building an index) are skipped. Your MCP servers' tools run in their own processes: plan mode refuses Claude's tools that change things, while Codex follows each server's own approval settings.

Options

Agreement: max_rounds and synthesizer
max_roundsWhat happens
omittedthe configured default: at most 5 exchanges, stopping as soon as both agree
N (1 or more)at most N exchanges, stopping as soon as both agree
0no limit: they exchange until both agree (can take long and use a lot of both plans)

They have agreed when both end the same exchange with AGREE. Then the synthesizer writes the final answer and the other model checks that it matches what they agreed; if it does not, the writer revises it once. Claude writes it by default (synthesizer: "codex" to swap); with council_join, the host does. If the limit is reached without agreement, the final answer sets out what they agree on and each point still in dispute, marked as not agreed. If a call fails partway (for example a usage limit), you get what was reached and the reason.

Web search: web_search

Both models can search the web and read pages (on by default). They prefer primary sources such as official docs and release notes, say where a fact came from, and check each other's claims against them. Turn it off with web_search: false ("ask the council without internet access"), --no-web, or "web_search": false in your config. See Security and privacy before using it with a sensitive project.

Network for Codex's commands: network

By default Codex's commands have no network access (its web search still works). Turn on network to let them reach the network, for example to call an API, while the disk stays read-only: "ask the council, with network access for Codex: is our API returning the new field yet?", --network, or "network": true in your config.

  • Limit where it can connect with "network_domains": ["api.github.com", "*.example.com"]; with an empty list (the default), any domain is allowed.
  • How: Codex runs with a permission profile (beta in Codex) instead of its read-only sandbox: the whole disk read-only, the network on.
  • Windows: HTTPS from curl.exe, Invoke-WebRequest and git fails inside Codex's sandbox, while Python and Node work; Codex is told so. The sandbox also can't read ~/.ssh.
  • Off by default, for a reason: a model that can read your files and reach the network could also send them out, for example if a log or web page it reads tries to instruct it (a prompt injection). Use a domain list, and keep network off for sensitive projects.
Skills: skill

Skills are SKILL.md folders with a method or style the models can follow. Install a repository's skills once:

bash
npx -y codex-claude-council skill add https://github.com/aiwithremy/claude-skills-llm-councilnpx -y codex-claude-council skill add https://github.com/JuliusBrussee/caveman.gitnpx -y codex-claude-council skill listnpx -y codex-claude-council skill remove caveman-stats
  • skill add installs every skill in a repository, each with its files; also one folder of a repository (…/tree/<branch>/<folder>), a local folder or a SKILL.md file. Skills are saved in ~/.codex-claude-council/skills/<name>/; skills installed for Claude Code or Codex themselves (and their enabled plugins') can be named too. Restart the apps afterwards so the tools list new skills.
  • A skill a member already has is named, not sent: the member loads it itself. Only the skills it lacks have their instructions sent (for llm-council and graphify, about 61,000 characters down to about 1,100).
  • A skill is used only when you ask for it: "ask the council, using the llm-council skill: …", or --skill llm-council. Both models get its instructions and decide at which steps it is needed: a method like llm-council for a real decision, a style like caveman (terse) or ponytail (simplest solution) on every reply. The discussion's rules come first.
  • graphify needs its graph built first (pip install graphifyy, then graphify .); the members then read graphify-out/. A step with sub-agents can take several minutes, up to skill_timeout_seconds (default 1800). Check a third-party skill's license and contents before installing it.

Tool reference

ToolDoesOptional inputs (besides question)
council_askthe full council; returns the agreed answercodex_model, codex_effort, claude_model, claude_effort, synthesizer, max_rounds, workspace, web_search, network, skill, codex_session_id, claude_session_id
council_debatethe same; returns JSON with every step and the settingsas council_ask
council_ask_codex, council_ask_claudeone model onlymodel, effort, workspace, web_search, network (Codex), skill, session_id
council_jointhe host takes part as one memberme (required: claude or codex), other_session_id, other_model, other_effort, synthesizer, max_rounds, workspace, web_search, network, skill
council_turnsends the host's turn (council_id, text)–
council_resultwaits for a running job's answer (or, with council_join, the host's next turn)job_id
council_cancelstops a running jobjob_id
  • Every tool also returns structuredContent: status (done, working, your_turn or stopped), the text, and the job_id or council_id to use next. The names before 0.11.7 (debate, ask_codex, ask_claude) still work.
  • Prompts: ask_council, second_opinion (model: codex or claude) and debate. Resources: council://guide (which tool for what) and council://config (the settings in use and the installed skills).
  • workspace: the absolute path of the project folder. Codex effort: none, minimal, low, medium, high, xhigh. Claude effort: low, medium, high, xhigh, max. Claude models: an alias (opus, sonnet, fable) or a full name; Codex models: any name your Codex CLI (or the OpenAI API) accepts. Anything left out comes from your config.

From the terminal

bash
npx -y codex-claude-council ask "Which is faster for 10M rows, A or B?"npx -y codex-claude-council debate "..." --codex-effort xhigh --claude-model opusnpx -y codex-claude-council ask "..." --max-rounds 0          # until both agreenpx -y codex-claude-council ask "..." --synthesizer codex     # ChatGPT writes the final answernpx -y codex-claude-council codex "..." --effort low          # Codex onlynpx -y codex-claude-council claude "..." --model sonnet       # Claude onlynpx -y codex-claude-council ask "..." --workspace ~/code/app  # this project (--no-workspace: none)npx -y codex-claude-council ask "..." --no-web                # no web searchnpx -y codex-claude-council ask "..." --network               # Codex's commands may reach the networknpx -y codex-claude-council ask "..." --skill llm-council,caveman  # with installed skillsnpx -y codex-claude-council ask "..." --html council.html     # also save the discussion as a page to sharenpx -y codex-claude-council ask "..." --claude-session <uuid> --codex-session <id>  # your sessions

Both models work in the git repository you run the command from (if any), unless you pass --workspace, --no-workspace or a session id. Questions can also be piped on stdin. Other commands: install, update, uninstall, doctor, login, api-setup, skill, config, mcp, serve; --help lists them all. For a shorter command, npm install -g codex-claude-council.

Configure

bash
npx -y codex-claude-council config --init

This creates ~/.codex-claude-council/config.json. It is re-read on every call, so edits apply immediately:

json
{  "timeout_seconds": 600,  "skill_timeout_seconds": 1800,  "tool_wait_seconds": 50,  "synthesizer": "claude",  "max_rounds": 5,  "web_search": true,  "network": false,  "network_domains": [],  "codex":  { "command": null, "model": null, "effort": "high", "auth": "subscription", "via": "cli" },  "claude": { "command": null, "model": null, "effort": "high", "auth": "subscription", "via": "cli" }}
SettingMeaning
timeout_secondslimit for each model call
skill_timeout_secondslimit for each call when a skill is in use, and for each of the host's turns with council_join (default 1800)
tool_wait_secondshow long one tool call waits before returning "still working" and a job_id (default 50); 0 waits until the answer is ready
synthesizerwhich model drafts the final answer: claude (default) or codex (ChatGPT). Not used by council_join, where the host drafts
max_roundsexchanges until both agree: 5 (default), 0 for no limit, null for one
web_searchwhether the models may search the web and read pages: true (default) or false
network / network_domainswhether Codex's commands may reach the network, read-only on disk (default false), and the only domains then allowed ([]: any)
codex.model, claude.modeldefault model; null uses the CLI's own default (or, through the API, gpt-6-astra / claude-opus-5-5)
codex.effort, claude.effortdefault effort
codex.command, claude.commandfull path to a CLI if it isn't found automatically
codex.auth, claude.authsubscription (default) or api_key: API keys instead of a plan. allow_api_key_auth: true (before 0.19.0) means both
codex.via, claude.viacli (default) or api: Without the CLIs

Environment variables do the same where a config file is awkward (Docker, desktop apps): COUNCIL_CODEX_VIA / COUNCIL_CLAUDE_VIA, COUNCIL_CODEX_AUTH / COUNCIL_CLAUDE_AUTH, COUNCIL_CODEX_MODEL / COUNCIL_CLAUDE_MODEL. Set COUNCIL_CONFIG to use a different config file, and COUNCIL_BANNER=image or text to choose the installer's icon.

Security and privacy

  • It runs where you run it. Your question goes to OpenAI and Anthropic through their official CLIs (or, for a side through its API, their APIs), under your own accounts. The plugin has no servers and no telemetry. PRIVACY.md has the details.
  • The members cannot change your files.
    • Codex runs codex exec in its read-only sandbox, enforced by the operating system, with approval_policy set to never. Both are set on the command line, which overrides your config.toml.
    • Claude Code runs in plan mode: it reads, searches and runs commands it knows to be read-only, and every edit, write or other command is refused. Plan mode is Claude Code's own permission guard, not an operating-system sandbox; the only file it may write is its plan file under ~/.claude/plans/.
    • A member through its API has only read-only tools, which can't leave the project folder, even through a symbolic link.
    • With council_join, the host is your own session and keeps its own permissions; it is only asked not to change files.
  • Your own setup applies. The members run with your skills, plugins, MCP servers, hooks, CLAUDE.md / AGENTS.md and permission rules. This plugin is switched off inside them, so a member can't start another council. Plan mode refuses Claude's MCP tools that change things, while Codex follows each server's own approval settings.
  • What they read is sent to the model providers, as when you paste it. Through the CLIs, both can read files outside the project too, as in your normal sessions. Without a workspace, they start in an empty folder.
  • Web access. With a workspace and web access, text in the project that tries to instruct the model (a prompt injection) could in principle get it to send project content to a website, for example in a URL it fetches. For sensitive projects, turn web access off.
  • Sessions are saved by the CLIs like any other; a session you pass by id is continued in place.
  • Over HTTP (serve), the secret token in the URL is the only key. It listens on this computer only unless you set --host; reach it from elsewhere only through HTTPS, and keep the URL as secret as a password.
  • API keys: by default the API-key environment variables are removed before the CLIs start, so they run on your plans. With auth or via set, a side gets only its own key, never the other side's, and keys entered in the Claude Desktop extension's settings are never passed to a CLI.
  • The plugin itself runs with your user permissions: about 3,200 lines of JavaScript in src/, with no dependencies except the Anthropic and OpenAI SDKs, which load only for a side through its API.

Troubleshooting

Run the doctor. It checks Node.js, each side (its CLI and sign-in, or its API key) and your effective config:

bash
npx -y codex-claude-council doctor
  • "The council needs … signed in": nothing was sent. The message names each side with a problem and the fix: codex login (choose Sign in with ChatGPT), claude auth login, or an API key.
  • "… CLI not found": install the CLI, set codex.command / claude.command to its full path, or run that side through its API (Without the CLIs).
  • "… runs through the … API, but it has no key": set OPENAI_API_KEY / ANTHROPIC_API_KEY, or enter the key in the Claude Desktop extension's settings.
  • "the API mode needs the providers' SDKs": run npx -y codex-claude-council api-setup once.
  • "usage limit": your ChatGPT or Claude plan hit its limit. Wait for the reset or lower the effort.
  • "timed out": raise timeout_seconds (or skill_timeout_seconds with a skill), or lower the effort.
  • "no … session named …": check it with claude --resume / codex resume --all, rename the session with /rename, or pass its id from /status.
  • "Waiting for the … session": another council or question is using that session, which takes one at a time. If it names a council_join job waiting for your reply, send it with council_turn, or stop that job with council_cancel.
  • "… is not waiting for your reply now" (council_join): the other model is still working; the host should call council_result with the id.
  • skill "…" is not installed: install it with skill add, then restart the app.
  • Tools don't appear: fully quit and reopen the app after installing. In the desktop apps, check the plugin or extension is installed and enabled.
  • node not found by a desktop app on macOS: GUI apps don't read your shell profile, so Node installed with nvm may be invisible to them. Install Node from nodejs.org or Homebrew, or use the Claude Desktop extension.
  • "unknown option" / "unexpected argument": a CLI is too old. Update it: claude update, or npm install -g @openai/codex@latest.
  • Docker: bubblewrap "can't create a namespace": see seccomp=unconfined.
  • Windows: "Access is denied (os error 5)" when installing or updating: see Update.

Uninstall

bash
npx -y codex-claude-council uninstall

This removes the plugin from Claude Code and Codex and the Claude Desktop chat entry, and keeps your config file and installed skills. In the desktop apps, uninstall it under Settings → Plugins or Settings → Extensions; with Docker, docker compose down (add -v to delete the sign-ins too).

Development

bash
git clone https://github.com/hamza-aziz-ai/codex-claude-council.gitcd codex-claude-councilnpm cinpm test

The tests use fake codex / claude executables and a fake of both APIs, so they make no model calls. CI runs them on Windows, macOS and Linux. To try a local checkout, use its path as the marketplace: claude plugin marketplace add ./codex-claude-council or codex plugin marketplace add ./codex-claude-council.

Disclaimer

Not affiliated with, or endorsed by, OpenAI or Anthropic. Codex, ChatGPT, Claude and Claude Code are trademarks of their owners. The OpenAI and Claude logos in the plugin's icon and on shared discussion pages (from @lobehub/icons) only identify the two models the plugin runs; the installer draws the icon with chafa. Your use of each CLI and API is subject to its provider's terms and your plan's limits.

License

MIT © Hamza Aziz

来源:README.md,提交 edce477

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

7
  1. v0.21.1最新Oct 29, 2026
  2. v0.15.1Oct 26, 2026
  3. v0.13.5Oct 26, 2026
  4. v0.13.4Oct 13, 2026
  5. v0.13.3Oct 13, 2026
  6. v0.11.7Oct 12, 2026
  7. v0.11.6Oct 12, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Claude 集成