OpenAI Codex harness — guide

The OpenAI Codex package lets you run your MeshWeaver chat threads on the Codex CLI, under your own ChatGPT subscription or OpenAI API key. Your threads, your mesh content and the mesh tools stay as they are; what changes is the engine that executes each round.

It is for people who already use Codex and want MeshWeaver's threads to run on that account and on Codex's own agent loop rather than on the models the mesh provides.

Key concepts

Typical workflow

  1. Get the package from the Store.
  2. Open a thread and pick OpenAI Codex as the harness.
  3. Run /login. Connect your ChatGPT account with a device code — a browser window opens on the verification page, and the code and an authorization link also stay in the chat in case the popup is blocked — or paste an OpenAI API key.
  4. Chat as usual. The answer streams token by token and Codex's reasoning summaries stream alongside it. Command runs, MCP tool calls, file changes and web searches show up in the thread as tool calls.

Uninstalling removes only a legacy home copy ({you}/Harness/…) where your installation made one; it does not revoke your access to the package, so the picker keeps offering the harness and threads that selected it keep using it. To stop using it, switch each thread to another harness — or to the standard MeshWeaver agent path — in the picker; nothing breaks and no history is lost.

Models

A thread keeps its model selection when you switch harness. The harness forwards only OpenAI's own model ids to Codex; any other selection (the model router, another vendor's model) is not sent, so your account's default model applies. If your account does not offer the model you picked, the response names the model and the remedy — pick a model your account offers, or clear the selection — in your language, with the provider's own message beneath it.

Questions and approvals

Codex runs without a person watching each step, so the harness answers its requests by policy: command and file-change approvals follow the configured policy (by default Codex does not ask), and when Codex asks you a question, the question is shown in the thread so you can answer it in your next message.

What you get

Signing in does not schedule anything: Codex runs when you send a message in a thread. How the harness drives the CLI, message by message, is documented in How the harness drives the CLI.