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

1 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! 🚀

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

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 🚀

PulumiUP 2025 image

PulumiUP 2025: Cloud Innovation Starts Here

Get inspired by experts at PulumiUP. Discover the latest in platform engineering, IaC, and DevOps. Keynote, demos, panel, and Q&A with Pulumi engineers.

Register Now

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay