Advanced AI Coding Agent CLI – fully agentic, local & cloud LLMs, beautiful terminal UI
Advanced AI Coding Agent — fully agentic, works with local & cloud LLMs, beautiful terminal UI.
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 Set custom API base URL /model [name] Show / change model /mode agent|chat Switch between agent and chat mode /root 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
ai coding-agent cli llm ollama openrouter agent code-generator developer-tools
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




