Skip to main content

AI CLI with OSS LLM integration

Project description

Open Codex

Open Codex CLI

Lightweight coding agent that runs in your terminal

brew install brew tap codingmoh/open-codex brew install open-codex

Codex demo GIF using: codex "explain this codebase to me"


Open Codex is a fully open-source command-line AI assistant inspired by OpenAI Codex, supporting local language models like phi-4-mini.

No API key is required. Everything runs locally.

Supports:

  • One-shot mode: open-codex "list all folders" -> returns shell command
  • 🧠 Local-only execution using supported OS models (currently phi-4-mini)

✨ Features

  • Natural Language to Shell Command (via local models)
  • Works on macOS, Linux, and Windows (Python-based)
  • Confirmation before execution
  • Add to clipboard / abort / execute prompt
  • One-shot interaction mode (interactive and function-calling coming soon)
  • Colored terminal output for better readability

🧱 Future Plans

  • Interactive, context aware mode
  • Fancy TUI with textual or rich
  • Add support for additional OSS Models
  • Full interactive chat mode
  • Function-calling support
  • Voice input via Whisper
  • Command history and undo
  • Plugin system for workflows

📦 Installation

🔹 Option 1: Install via Homebrew (Recommended for MacOS)

brew tap codingmoh/open-codex
brew install open-codex

🔹 Option 2: Install via pipx (cross-platform)

pipx install open-codex

🔹 Option 3: Clone & Install locally

git clone https://github.com/codingmoh/open-codex.git
cd open_codex
pip install .

Once installed, you can use the open-codex CLI globally.


🚀 Usage

One-shot mode

open-codex "untar file abc.tar"

✅ Codex suggests a shell command
✅ Asks for confirmation / add to clipboard / abort
✅ Executes if approved


🛡️ Security Notice

All models run locally. Commands are only executed after explicit approval.


🧑‍💻 Contributing

PRs welcome! Ideas, issues, improvements — all appreciated.


📝 License

MIT


❤️ Built with love and caffeine by codingmoh.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_codex-0.1.13.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_codex-0.1.13-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file open_codex-0.1.13.tar.gz.

File metadata

  • Download URL: open_codex-0.1.13.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for open_codex-0.1.13.tar.gz
Algorithm Hash digest
SHA256 9583925f290fd5061eda86e9b3b2ddb3dccfe549ce12428057f6dec59d56ccd6
MD5 e9d7946efb3f5b0f1384a2cba9588671
BLAKE2b-256 898cae00d51ec692eb6f7c400552c42fd1e0e38547e47e2b097c83626707cc99

See more details on using hashes here.

File details

Details for the file open_codex-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: open_codex-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for open_codex-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f43e3a88835fc83ab0cce1f19c4a64f8e39df12fe367385919cdc0e47c933fd6
MD5 7013c6e36b0cc091550b47c720cba15a
BLAKE2b-256 03a74389ac2d8f28f5d3053a600bedbd3c806a8a38ab6c6e170b33dab1bd75a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page