SuperAPIAI Directory

codex-claude-council

github.com · Other AI tools

codex-claude-council is an open-source tool that lets two AIs, ChatGPT (via Codex) and Claude, discuss the same question with each other, exchanging views round by round until they reach an agreed answer. It runs through the user's already-logged-in local CLI, requires no API key, and can optionally use an API key instead. Both models can read project files (read-only, without modifying them) and can search the web. It can be used as a plugin for Claude Code, Codex, Claude Desktop, and the ChatGPT desktop app, and also supports claude.ai, mobile, and the terminal, covering Windows, macOS, and Linux.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

The core idea of codex-claude-council is "two AIs, one answer": give the same question to both ChatGPT (via Codex) and Claude at the same time, and let the two discuss with each other, exchanging views round by round until they agree on the same answer. Compared with a single model answering confidently, having two models point out disagreements to each other and explain their reasoning helps surface issues one side may have missed, similar to the role of a second reviewer.

Key capabilities

  • Two-model discussion: The two models first answer independently (without seeing each other), then enter an "exchange" phase in which each receives the other's latest message and responds point by point: what it accepts, how its position changes, where disagreement remains and why, along with its current answer and an AGREE/DISAGREE verdict. Both reply simultaneously, and the exchange repeats until both say AGREE in the same round.
  • Convergence and final answer: Once agreement is reached, one model writes the final answer and the other checks whether it matches the consensus. By default there are at most 5 exchange rounds; max_rounds can be set to 0 for no limit. If the limit is reached without agreement, the final answer lists the points of consensus between the two sides and each remaining point of dispute with both sides' positions.
  • Read-only project access and web search: Both models can read the user's project (without modifying it) and can search the web.
  • Session continuity: Each model keeps its own session across questions, remembering the discussion content and materials it has read; each prompt carries only content that model has not yet seen.
  • Joining an existing session: Within one model's session, you can say "discuss with my Codex session 019a…" to have that session itself take part in the discussion (council_join).
  • Handling long tasks: A single council takes several minutes, and some apps end tool calls after about 60 seconds, so each tool returns an answer or a "still working" status with a job_id within about 50 seconds, and the host then calls council_result to get the result; council_cancel can stop a task.
  • Multiple ways to connect: It can be used as a plugin for Claude Code, Codex, Claude Desktop, and the ChatGPT desktop app; it supports claude.ai and mobile (exposing the MCP server over HTTPS via serve --tunnel); it supports terminal use; and it provides Claude Desktop extension (.mcpb); MCP clients that support JSON configuration (such as Cursor, Windsurf); provides Docker images (GHCR, Docker Hub), and is already listed in MCP Registry, Smithery, and npm.
  • Flexible authentication: each side can separately choose to use a logged-in CLI (subscription plan) or an API key, and they can be freely mixed; the API method is billed by token, and API members have no write or execute tools.

Usage

  1. Installation: three installation scripts are provided for macOS/Linux/WSL, Windows PowerShell, and Node.js on any system. The installer checks Node.js and the login status of the two CLIs, and adds the plugin marketplace to Claude Code and Codex and installs the plugin. Optional parameters include --only claude|codex, --claude-desktop, --dry-run.
  2. Check the environment: run npx -y codex-claude-council doctor to see what is already available.
  3. Ask a question: in the project, simply say "Ask the council: …", and the host application will automatically select the tool and fill in the input. You can also use the MCP prompt templates ask_council, second_opinion, debate.
  4. Online use: serve --tunnel requires cloudflared and outputs an address of the form https://<random-word>.trycloudflare.com/mcp/<token>, which can be added as a custom connector without logging in. The URL contains a unique token and must be kept secret; the address changes on each startup, and a fixed address can also be configured.
  5. Docker: provides a container containing Node.js, the two CLIs, cloudflared, and serve --tunnel, which can start automatically on boot; configure the project directory, token, fixed address, and API key via .env; the first time, you need to run login to log in to the two CLIs.

Use cases

  • Technical questions and project analysis that need a second opinion or cross-validation.
  • Proposing improvement suggestions for projects in coding environments such as Claude Code and Codex.
  • Users who wantto use an existing subscription plan instead of additional API costs.
  • Scenarios that need to use the same council across desktop apps, the web, mobile, or the terminal.

Limitations

  • One council takes about 3 to 5 times as long as a single model.
  • Each side requires the corresponding CLI or API key, which is checked before use; if not ready, no content will be sent.
  • The two CLIs need to be kept up to date, otherwise errors may occur due to unknown options.
  • When used online via a tunnel, the user's computer is the server and must remain powered on and running serve; project-related questions require the corresponding folder to exist on that computer.
  • The tunnel address changes on each startup (quick tunnel) unless a fixed address is used.
  • Codex's read-only sandbox in Docker requires seccomp=unconfined, and some environments also require apparmor=unconfined.
  • The model names and benchmark data in the official materials are recorded as in the original text only; actual results and billing are subject to actual use.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools