Skip to main content

CODEX CLI

Advanced AI Coding Agent — fully agentic, works with local & cloud LLMs, beautiful terminal UI.

Install

pip install codexforge

Or from source:

cd codex-cli
pip install -e .

Quick Start

codexforge

First-time setup

Cloud (OpenRouter / OpenAI)

/key sk-or-v1-...
/model qwen/qwen3-coder

Local (Ollama)

/endpoint http://localhost:11434/v1
/model qwen2.5-coder:14b

LM Studio

/endpoint http://localhost:1234/v1
/model your-model-name

Config JSON

All settings are stored in a single JSON file:

~/.codex/config.json

You can override the directory with the environment variable:

export CODEX_HOME=/path/to/custom/dir

Example config.json:

{
  "base_url": "https://openrouter.ai/api/v1",
  "api_key": "sk-or-...",
  "model": "qwen/qwen3-coder",
  "temperature": 0.3,
  "max_tokens": 8192,
  "max_agent_steps": 15,
  "max_history": 24
}

Commands

Command Description
/key [key] Set API key
/endpoint <url> Set custom API base URL
/model [name] Show / change model
/mode agent|chat Switch between agent and chat mode
/root <path> Set project workspace
/config Show current config + JSON path
/ls, /read, /search, /run, /git Tools
/save, /load Session management
/help Full help
/quit Exit

Modes

  • agent (default) — Autonomous agent with tools (read/write/edit files, shell, search, git)
  • chat — Simple conversational coding assistant

License

MIT

Metadata

Release files for codexforge 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codexforge 1.0.0
File Size Uploaded
codexforge-1.0.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codexforge 1.0.0
File Interpreter ABI Platform
codexforge-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / codexforge-1.0.0.tar.gz

Download URL codexforge-1.0.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2588e9c8431f80d3acf63c28ce16ca1880b08f7fb3ac2e3ef83181a20a0377c6
BLAKE2b-256 checksum
How to use checksums
9b646795d56263b626ec0a6bb140ed169113ef2e1835deecbbc18afe7ed59aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / codexforge-1.0.0-py3-none-any.whl

Download URL codexforge-1.0.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afbeecdbc8f67f0d31e16071166df1d9e110f2475daca4a7040d5306fbbacc7e
BLAKE2b-256 checksum
How to use checksums
2452412d30e80fc92a8d9fce41e1bb5fb6a1455c168c211cfc11a26e90576cf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page