← Open Source
codingmoh

open-codex

Fully open-source command-line AI assistant inspired by OpenAI Codex, supporting local language models.

ApplicationsCodingPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
695
Stars
55
Forks
+-1
This week
1
Contributors
Created 2025-03-29 · Updated 2026-10-13 · #14884 today
Top developers
codingmoh

codingmoh/open-codex is ranked 14,884 with 695 stars.

Same-category comparison

codingmoh/open-codex is ranked 14,884 among these 8 peers; m-sec-org/BreachWeave is ranked 14,888.

Same-category comparison
NameRankMetrics
alfianlosari/ChatGPTSwiftUI14,873
Language:
Swift
Stars:
696
Forks:
103
Description:
A ChatGPT native iOS, macOS, watchOS, tvOS SwiftUI Application.
tracefinity/tracefinity14,876
Language:
Python
Stars:
696
Forks:
101
Description:
Generate custom gridfinity bins with AI, from photos of your tools.
xynehq/xyne14,877
Language:
TypeScript
Stars:
696
Forks:
70
Description:
AI-first Search & Answer Engine for work. Open-source alternative to Glean.
Amery2010/peinture14,878
Language:
TypeScript
Stars:
695
Forks:
272
Description:
A general-purpose AI image generation framework that supports Hugging Face, Gitee, Model Scope, and more.
m-sec-org/BreachWeave14,888
Language:
TypeScript
Stars:
695
Forks:
103
leona/helix-gpt14,903
Language:
TypeScript
Stars:
694
Forks:
44
Description:
Code assistant language server for Helix with support for Copilot/OpenAI/Codeium/Ollama.
vilassn/whisper_android14,905
Language:
C++
Stars:
694
Forks:
112
Description:
Offline Speech Recognition with OpenAI Whisper and TensorFlow Lite for Android.
Wildric-Auric/MidJourney-Wrapper14,912
Language:
Python
Stars:
693
Forks:
137
Description:
MidJourney wrapper in Discord.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategoryCoding
KeywordsLocalAI
Stars695
Forks55
Contributors1
Created date2025-03-29
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days-1
Rank14,884
Previous rank14,722
Rank change-162
7-day stars rank17,703
Previous 7-day stars rank17,659
7-day stars rank change-44
Total stars rank14,961
Previous total stars rank14,935
Total stars rank change-26
README summary

🧠 **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:

  1. Send your prompt to the Ollama API (local server, e.g. on localhost:11434)
  2. Return a shell command suggestion (e.g., find . -name "*.jpg" -size +10M)
  3. Prompt you to execute, copy, or abort

🛠️ You must have Ollama installed and running locally to use this feature.


🧱 Future Plans

  • Interactive, context-aware mode
  • Fancy TUI with textual or rich
  • Full interactive chat mode
  • Function-calling support
  • Whisper-based voice input
  • Command history & 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, use the open-codex CLI globally.


🚀 Usage Examples

▶️ One-shot mode

open-codex "untar file abc.tar"

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

▶️ Using Ollama

open-codex --ollama --model llama3 "delete all .DS_Store files recursively"

🛡️ Security Notice

All models run locally. Commands are executed only after your explicit confirmation.


🧑‍💻 Contributing

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


📝 License

MIT


❤️ Built with love and caffeine by codingmoh.

Nearby in the ranking
Similar items