Repository navigation
Add codex executor: run tasks on a ChatGPT subscription, no API key (v0.17.0) - #18
Merged
Merged
Conversation
…v0.17.0) New lib/executors/codex.js runs `codex exec` (prompt on stdin), the OpenAI-plan sibling of claude-code: default OFF, config-bound command/args/cwd, behind the same budget/approval/veto/STOP gates. Both CLI runtimes are $0 in the ledger keyed on PROVIDER (not the renameable binary name) and now strip ANTHROPIC_API_KEY/ OPENAI_API_KEY from the child env, so subscription billing is true by construction instead of assumed; passApiKeys:true opts back in. Verified live end-to-end against the real codex CLI with no API key set. 240 tests + lint green.
Adds codex to the Pillar 1 shipped runtimes + built-in executor list, and notes that both CLI runtimes are subscription-billed, which closes the agent-runtimes gap.
scr1p7k177y
added a commit
that referenced
this pull request
Oct 4, 2026
Add codex executor: run tasks on a ChatGPT subscription, no API key (v0.17.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
codexexecutor so an autonomous run can use an OpenAI/ChatGPT plan instead of per-token API credits — the sibling of the existingclaude-codeexecutor.What's new
lib/executors/codex.js— runscodex execnon-interactively with the prompt on stdin (same shape asclaude -p). Default OFF (executors.codex.enabled), config-boundcommand/args/cwd, behind the same budget / approval / veto /comms/STOPgates as every other runtime. Sandbox policy is passed throughargs(e.g.--sandbox workspace-write); no bypass flag is ever injected.ANTHROPIC_API_KEY/OPENAI_API_KEY). The daemon usually has those set for thellmexecutor, and an inherited key could silently flip the CLI to per-token API billing — spend the $0 price would then hide from the USD cap. Scrubbing makes subscription-billed true by construction.passApiKeys: trueopts back in.Verified
codex exec→status: done, ledgerprovider=codex, usd=0. Re-verified after the env scrub (subscription auth via~/.codex/auth.jsonis unaffected).node bin/ceauto-daemon.js --oncedrains a task to done with no MCP client and no key.Docs / version
CHANGELOG (dated 0.17.0), README (executor list, no-API-key section, badge, test count), CLAUDE.md, ROADMAP, and
config/settings.yaml+providers.yamlcomments. All six version strings bumped to 0.17.0.Please review — not requesting auto-merge.
https://claude.ai/code/session_01CKgPgAMauJxTHj7AM9ZxjW