Live data from Hacker News

Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

github.com

31–40 of 42 posts

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#31
post #11

Earlier quoted context omitted.

That's a really old model now. Even the old Qwen 2.5 coder 32b model is better than DSv2

I want to add support for qwen 2.5 next

Hopefully Qwen 3 and maybe if we're lucky Qwen 3 Coder might be out this week too.

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#32
post #31

Earlier quoted context omitted.

I want to add support for qwen 2.5 next

Hopefully Qwen 3 and maybe if we're lucky Qwen 3 Coder might be out this week too.

Also GLM 4 is pretty amazing - https://www.reddit.com/r/LocalLLaMA/comments/1k4w9p2/i_uploa...

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#34
Sounds great! Although I would prefer Claude Code to be open sourced as it’s a tool that works best for Vibe coding. Albeit expensive using Anthropic‘s models via API. There is an inofficial clone though („Anon Kode“), but it’s not legitimate.

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#37
post #34

Sounds great! Although I would prefer Claude Code to be open sourced as it’s a tool that works best for Vibe coding. Albeit expensive using Anthropic‘s models via API. There is an inofficial clone though („Anon Kode“), but it’s not legitimate.

I believe anon-kode is a decompiled Claude Code, so it should work identically when paired with Claude.

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#38
post #37
post #34

Sounds great! Although I would prefer Claude Code to be open sourced as it’s a tool that works best for Vibe coding. Albeit expensive using Anthropic‘s models via API. There is an inofficial clone though („Anon Kode“), but it’s not legitimate.

I believe anon-kode is a decompiled Claude Code, so it should work identically when paired with Claude.

Unfortunately it does not. Where I can feed Claude Code with a file larger than 256k, Anon Code (like Roo) will complain that the file is too large, using Gemini 2.5 Pro.

Re: Show HN: Open Codex – OpenAI Codex CLI with open-source LLMs

#40
post #36

Why forking and use open codex when the original OpenAI opened it for multiple models? Just trying to understand.

Hey, that is a very good question, I have answered that before. I hope you don't mind, if I simply copy paste my previous answer:

Technically you can use the original Codex CLI with a local LLM - if your inference provider implements the OpenAI Chat Completions API, with function calling, etc. included.

But based on what I had in mind - the idea that small models can be really useful if optimized for very specific use cases - I figured the current architecture of Codex CLI wasn't the best fit for that. So instead of forking it, I started from scratch.

Here's the rough thinking behind it:

   1. You still have to manually set up and run your own inference server (e.g., with ollama, lmstudio, vllm, etc.).
   2. You need to ensure that the model you choose works well with Codex's pre-defined prompt setup and configuration.
   3. Prompting patterns for small open-source models (like phi-4-mini) often need to be very different - they don't generalize as well.
   4. The function calling format (or structured output) might not even be supported by your local inference provider.
Codex CLI's implementation and prompts seem tailored for a specific class of hosted, large-scale models (e.g. GPT, Gemini, Grok). But if you want to get good results with small, local models, everything - prompting, reasoning chains, output structure - often needs to be different. So I built this with a few assumptions in mind:

   - Write the tool specifically to run _locally_ out of the box, no inference API server required.
   - Use model directly (currently for phi-4-mini via llama-cpp-python).
   - Optimize the prompt and execution logic _per model_ to get the best performance.
Instead of forcing small models into a system meant for large, general-purpose APIs, I wanted to explore a local-first, model-specific alternative that's easy to install and extend — and free to run.
Post reply on HN