(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43754620

Codingmoh 创建了 Open Codex,这是一个开源的命令行工具,旨在成为 OpenAI Codex CLI 的本地开源替代方案。由于抽象泄漏和更新中断,在为原始 Codex CLI 分支和维护更改方面遇到困难后,他们使用 Python 从头开始重写了它。Open Codex 旨在与本地大型语言模型 (LLM) 配合使用。目前,它通过 lmstudio-community/Phi-4-mini-instruct-GGUF 支持 phi-4-mini 模型 (GGUF)。该项目旨在具有可扩展性,未来计划支持更多模型、交互式聊天模式和函数调用。Open Codex 可以通过 Homebrew (`brew tap codingmoh/open-codex` 和 `brew install open-codex`) 或 PyPI (`pip install open-codex`) 安装。源代码可在 GitHub 上获取。当前版本仅支持单次模式。


原文
Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs (github.com/codingmoh)
4 points by codingmoh 1 hour ago | hide | past | favorite | discuss
Hey HN,

I’ve built Open Codex, a fully local, open-source alternative to OpenAI’s Codex CLI.

My initial plan was to fork their project and extend it. I even started doing that. But it turned out their code has several leaky abstractions, which made it hard to override core behavior cleanly. Shortly after, OpenAI introduced breaking changes. Maintaining my customizations on top became increasingly difficult.

So I rewrote the whole thing from scratch using Python. My version is designed to support local LLMs.

Right now, it only works with phi-4-mini (GGUF) via lmstudio-community/Phi-4-mini-instruct-GGUF, but I plan to support more models. Everything is structured to be extendable.

At the moment I only support single-shot mode, but I intend to add interactive (chat mode), function calling, and more.

You can install it using Homebrew:

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

It's also published on PyPI:

   pip install open-codex

Source: https://github.com/codingmoh/open-codex










Join us for AI Startup School this June 16-17 in San Francisco!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



Search:
联系我们 contact @ memedata.com