🧠 **Runs 100% locally** – no OpenAI API key required. Send your prompt to the Ollama API (local server, e. Prompt you to execute, copy, or abort 🛠️ You must have Ollama installed and running locally to use this feature. Commands are executed **only after your explicit confirmation**.
Frequently asked questions
How many stars and forks are recorded?
codingmoh/open-codex has 695 stars and 55 forks.
What is the repository rank?
codingmoh/open-codex is ranked 14,884.
What language and category are recorded?
codingmoh/open-codex has 695 stars, uses Python and belongs to Applications.
Which repository is closest in rank?
codingmoh/open-codex is compared with m-sec-org/BreachWeave, ranked 14,888 with 695 stars.
README
Open Codex
Open Codex CLI
Lightweight coding agent that runs in your terminal
brew tap codingmoh/open-codex && brew install open-codex
Open Codex is a fully open-source command-line AI assistant inspired by OpenAI Codex, supporting local language models like phi-4-mini and full integration with Ollama.
🧠 Runs 100% locally – no OpenAI API key required. Everything works offline.
Supports
One-shot mode: open-codex "list all folders" -> returns shell command
Ollama integration for (e.g., LLaMA3, Mistral)
Native execution on macOS, Linux, and Windows
✨ Features
Natural Language → Shell Command (via local or Ollama-hosted LLMs)
Local-only execution: no data sent to the cloud
Confirmation before running any command
Option to copy to clipboard / abort / execute
Colored terminal output for better readability
Ollama support: use advanced LLMs with --ollama --model llama3
🔍 Example with Ollama:
open-codex --ollama --model llama3 "find all JPEGs larger than 10MB"
Codex will:
Send your prompt to the Ollama API (local server, e.g. on localhost:11434)