codex-cli-runner

Execute OpenAI Codex CLI prompts in non-interactive mode and write output to files.

14|6|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/fkguo/nullius --skill codex-cli-runner-fkguo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-cli-runner
Source: https://github.com/fkguo/nullius/tree/main/skills/codex-cli-runner
Command: npx skills add https://github.com/fkguo/nullius --skill codex-cli-runner-fkguo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to run the Codex CLI in non-interactive mode, enabling you to execute arbitrary prompts and tasks without the need for an interactive session.

Core Features & Use Cases

  • Non-Interactive Execution: Run Codex CLI commands without an interactive session.
  • File-based Prompts: Supports prompts and system instructions from files.
  • Retry Mechanism: Implements retries with exponential backoff for transient errors.
  • Output to File: Writes the output of the Codex CLI to a specified file.
  • Use Case: Use this Skill to generate code, analyze text, or perform any other task that can be executed by the Codex CLI.

Quick Start

Run the local codex CLI with a specific prompt and output the result to 'output.txt'.

Frequently Asked Questions about codex-cli-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run the Codex CLI non-interactively for automated tasks?

You can run the Codex CLI non-interactively by using a runner to execute custom prompts without an interactive session. This approach handles file-based prompts and writes the execution results directly to an output file.

What's the best way to automate prompt execution with the Codex CLI?

Automating prompt execution with the Codex CLI is best handled by passing file-based prompts to a non-interactive runner. This method processes custom tasks and automatically saves the generated output to a specified file.

Does non-interactive Codex CLI execution support system instructions from files?

Yes, non-interactive Codex CLI execution supports loading both custom prompts and system instructions from files. This allows you to fully configure the task context before running the automated execution.

Why does non-interactive prompt execution fail with transient errors?

Transient errors during non-interactive prompt execution occur due to temporary network or service issues. You can resolve these by using a runner that implements retries with exponential backoff to handle the failures automatically.

Do I need the Codex CLI installed to use a non-interactive runner?

Yes, you must have the Codex CLI installed and properly configured on your system to use a non-interactive runner. The runner acts as a wrapper that executes the CLI commands for your custom prompts.

Can I output Codex CLI results to a specific file for later analysis?

Yes, you can output Codex CLI results to a specific file for later analysis. The non-interactive execution runner writes the generated task output directly to a file path you specify.