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)
| File | Size | Uploaded | |
|---|---|---|---|
| codexforge-1.0.0.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|