Codex Bridge

Codex Bridge

elyin

Connects Claude with OpenAI's Codex through the official CLI, enabling direct code consultation and batch processing without API costs.

81665 views6Local (stdio)

What it does

  • Query Codex with structured output formats
  • Pipe content through stdin for CI/CD workflows
  • Process multiple Codex queries in batch mode
  • Execute automated code analysis and reviews

Best for

Developers wanting free Codex access through CLICI/CD pipelines requiring automated code reviewBatch code analysis workflows
Zero API costs using official CLIBuilt for CI/CD automation90-second configurable timeouts

Tools (3)

consult_codex

Consult Codex in non-interactive mode with structured output. Processes prompt and returns formatted response. Supports text, JSON, and code extraction formats. Args: query: The prompt to send to Codex directory: Working directory (required) format: Output format - "text", "json", or "code" (default: "json") timeout: Optional timeout in seconds (overrides env var, recommended: 60-120) Returns: Formatted response based on format parameter

consult_codex_with_stdin

Consult Codex with stdin content piped to prompt - pipeline-friendly execution. Similar to 'echo "content" | codex exec "prompt"' - combines stdin with prompt. Perfect for CI/CD workflows where you pipe file contents to the AI. Args: stdin_content: Content to pipe as stdin (e.g., file contents, diff, logs) prompt: The prompt to process the stdin content directory: Working directory (required) format: Output format - "text", "json", or "code" (default: "json") timeout: Optional timeout in seconds (overrides env var, recommended: 60-120) Returns: Formatted response based on format parameter

consult_codex_batch

Consult multiple Codex queries in batch - perfect for CI/CD automation. Processes multiple prompts and returns consolidated JSON output. Each query can have individual timeout and format preferences. Args: queries: List of query dictionaries with keys: 'query' (required), 'timeout' (optional) directory: Working directory (required) format: Output format - currently only "json" supported for batch Returns: JSON array with all results

Alternatives