Skip to content

Add headless / non-interactive mode for Codex CLI to enable orchestration #4219

Description

@mathieuworoniecki

What feature would you like to see?

Description:
I’m trying to build an orchestrator that can manage multiple Codex CLI instances in parallel. The goal is similar to ccswarm, which coordinates Claude Code as headless agents.

The problem is that Codex CLI isn’t designed for interactive automation. When I try to run it in a non-TTY or headless environment, it either panics or blocks. There’s no stable JSON event stream or API that an external tool can consume to orchestrate agents.

By contrast, Claude Code works fine in headless mode, which makes orchestration much easier.

What I need:
A supported headless mode (structured JSON I/O, no TTY assumptions), or

Documentation on a safe way to automate Codex CLI processes without fragile hacks.

Why it matters:
Without this, building orchestration layers around Codex CLI is unreliable. A proper headless mode would open the door to multi-agent coordination and experimentation.

Are you interested in implementing this feature?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions