Codex Infinity

Codex Infinity is an open-source terminal coding agent repository maintained by developer lee101, forked from OpenAI's Codex ecosystem. The project provides terminal-based automated coding tools and orchestration layers designed to execute development tasks directly within local repository environments. Day-to-day operation centers around a CLI client (`codex-cli`) backed by Rust core libraries (`codex-rs`) and modular SDK components. The tool interfaces with AI models via configured API keys (such as OpenAI API endpoints) to parse instructions, analyze workspace code, execute shell actions, and apply file modifications directly inside the codebase. Codex Infinity distinguishes itself by incorporating custom patches, agent skills (`.agents/skills`), and custom workspace tooling on top of the upstream OpenAI Codex baseline. Its dual-layer architecture leverages Rust for performance-critical execution alongside high-level CLI interfaces, built and managed using Bazel tooling. The project is open-source and distributed via GitHub. It relies on user-provided API credentials for model access, requiring developers to supply their own backend API keys.

Tags: ai agent, cli, code assistant, coding agent, developer tools, OpenSource

Visit Codex Infinity

Key features

  • Dual Rust and Node Architecture — Combines a high-performance Rust core (codex-rs) with an extensible command-line harness (codex-cli). - Agent Skills Support — Includes extensible skill templates in .agents/skills to define specific agent behaviors and workflows. - Bazel Build Integration — Provides Bazel configurations (.bazelrc, .bazelversion) for deterministic, multi-language repository builds. - Development Container Setup — Ships with .devcontainer configuration for isolated and reproducible agent development environments. - Custom Patch Engine — Incorporates upstream OpenAI Codex extensions and custom patch sets in patches/ to modify baseline agent capabilities.

Use cases

Use Case: Automated Local Code Refactoring Developers can run the agent inside terminal workspaces to perform multi-file code modifications and refactoring tasks. The agent parses code context directly from local files and applies patch diffs without manual copy-pasting.

Use Case: Custom Agent Skill Development Engineers building specialized developer agents can leverage the .agents/skills directory and SDK layers. This enables developers to define project-specific coding workflows, command-line operations, and specialized agent tasks.

Use Case: Multi-Language Terminal Agent Tooling Teams working with mixed-language codebases can execute terminal-driven AI tasks through Bazel-managed builds. The integration of codex-rs ensures fast execution speeds during local agent runs.

Who it is for

Codex Infinity is intended for software engineers, systems developers, and AI tooling maintainers looking for a customizable, terminal-based AI agent harness forked from OpenAI Codex. It is less suitable for non-technical users or developers seeking a turnkey, GUI-based code assistant with official commercial enterprise support.

Install guide

Installation Clone the repository and build the workspace using Bazel or Cargo: bash git clone https://github.com/lee101/codex-infinity.git cd codex-infinity # Build the Rust core engine cargo build --release --manifest-path codex-rs/Cargo.toml # Or build via Bazel bazel build //...

First Run Configure your environment variables by copying the template file and setting your API credentials: bash cp .env.example .env # Open .env and add your OpenAI or compatible API keys

Example Session Run the CLI to initiate a coding task in your current workspace: bash ./target/release/codex-cli "Analyze the main function and add error handling for missing configuration files"

Part of CLI Coding Agents

Categories: AI Coding Agents, Code Assistants, Developer Tools

Related CLI agents

  • Plandex — Plandex is an open-source terminal-based AI coding agent designed to handle complex, multi-file engineering tasks in large codebases. Created by…
  • OpenCode — OpenCode is an open-source AI coding agent developed by Anomaly that operates across terminal environments, desktop applications, and IDE extensions.…
  • OpenHands — OpenHands (formerly OpenDevin) is an open-source autonomous AI software development agent and orchestration platform. It provides an extensible runtime environment…
  • Subtask — Subtask is an open-source CLI agent harness and orchestration tool developed by zippoxer in Go. It is built to coordinate…
  • EchoCoding — EchoCoding is an open-source agent harness and audio-augmented developer tooling layer created by launsion-boop. Designed to run alongside AI coding…
  • pi-reflect — pi-reflect is an open-source agent harness and self-improvement extension for pi coding agents, developed by jo-inc. It inspects agent session…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories