DEV Community

Cover image for How OpenAI Codex let me down — and why I built Codey, an open-source coding assistant
Varad J
Varad J

Posted on

2 1 1

How OpenAI Codex let me down — and why I built Codey, an open-source coding assistant

When OpenAI announced Codex and CLI tools, I got excited — finally, an easy way to automate coding workflows using LLMs!
I bought credits, installed the CLI, and even set it up on my Mac.

But... it didn't go smoothly.

First, I realized Codex CLI only supports Mac and Linux. Okay, not ideal but manageable.
Then, I found out that cheaper models like gpt-4o-mini don't even support shell commands.
(If you try, you get ENOENT errors because tool calls are missing.)

I thought: maybe switching to o4-mini would fix it.
Nope — new accounts don't have access immediately. I was stuck.

Instead of waiting endlessly, I decided to build my own CLI assistant from scratch — and that's how Codey was born!

🚀 What is Codey?
Codey is a Python-based, open-source coding assistant that uses OpenAI's API — but defines all tools explicitly for safety and control.

It supports:

File Management: Create, edit, and read files with tools like create_file, edit_file, read_codebase

Git Operations: Add, commit, check status, view diffs, and more

Utilities: Search files (grep) and calculate expressions safely

Shell Commands: Run shell commands inside your environment securely

🧠 Why build it myself?
I wanted predictability — knowing exactly what a tool can and cannot do.

I wanted local safety — no random shell execution unless I allow it.

I wanted modularity — easily extend or customize based on project needs.

And honestly... I just wanted something that works reliably without mysterious permission errors.

📢 Codey is Open Source
You can check it out here:
👉 https://github.com/Varad-13/codey

If you want to try it out, suggest features, or even contribute (we need to add a million more tools) — you're welcome! 🚀

Postmark Image

The email service that speaks your language

Whether you code in Ruby, PHP, Python, C#, or Rails, Postmark's robust API libraries make integration a breeze. Plus, bootstrapping your startup? Get 20% off your first three months!

Start free

Top comments (3)

Collapse
 
nevodavid profile image
Nevo David

Been there with tools not working how I hoped, so yeah, sometimes you gotta build your own. Respect for actually doing it.

Collapse
 
aavash_parajuli_72 profile image
Aavash Parajuli

Yet to try out codex.

Collapse
 
varad13 profile image
Varad J

With a linux environment it is infact quick and easy to setup; also theres ways to run it on windows under WSL if you want. ENOENT errors on shell are persistent tho. Will run a few tests and publish side by side results with both tools soon 🚀

Postmark Image

"Please fix this..."

Focus on creating stellar experiences without email headaches. Postmark's reliable API and detailed analytics make your transactional emails as polished as your product.

Start free

Join the Runner H "AI Agent Prompting" Challenge: $10,000 in Prizes for 20 Winners!

Runner H is the AI agent you can delegate all your boring and repetitive tasks to - an autonomous agent that can use any tools you give it and complete full tasks from a single prompt.

Check out the challenge

DEV is bringing live events to the community. Dismiss if you're not interested. ❤️