Live data from Hacker News

OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

github.com

111–120 of 298 posts

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#111

So even if you have a plus account, there will be a charge for the API use? I mean I kind of get it, but it does seem like they are almost penalizing people who could code in the browser with the canvas feature but prefer to use a terminal. Do I have that right?

That's not comparable. Canvas isn't agent coding directly on your machine

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#112

Earlier quoted context omitted.

I think it depends a lot on how you value your time. I'm personally willing to spend hundreds or thousands per month happily if it saves me enough hours. I'd estimate that if I were to do consulting, I'd likely be charging in the $150-250 per hour range, so by my math, it's pretty easy to justify any tools that save me even a few hours per month.

Are you still working 40 hours a week? If so, what's the difference?

I don’t - if I can use a tool that saves me 10 hours a week, that’s 10 hours more beach time for me.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#113

Earlier quoted context omitted.

I asked the same question for Anthropic's version of this. Why is all of this in JS?

JS is web's (and "hip" developer's) python, and in many ways it is better. Also the tooling is getting a lot better (libraries, typescript, bundling, packaging, performance). One thing I wonder that could be cool: when Bun has sufficient NodeJS compatibility the should ship bun --compile versions so you dont need node/npm on the system. Then it's arguably a, "why not JS?"

> and in many ways it is better

Right but is it worth having to write JS?

/s (kinda)

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#114
post #68

Sorry for being a grumpy old man, but I don't have npm on my machine and I never will. It's a bit frustrating to see more and more CLI tools depending on it.

I asked the same question for Anthropic's version of this. Why is all of this in JS?

typescript is a pretty nice language to work with. why not?

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#115

Earlier quoted context omitted.

If you have AWS credits... export CLAUDE_CODE_USE_BEDROCK=1 export ANTHROPIC_MODEL=us.anthropic.claude-3-7-sonnet-20250219-v1:0 export ANTHROPIC_API_TYPE=bedrock

Is this for Claude Code?

Yep

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#116

Earlier quoted context omitted.

I asked the same question for Anthropic's version of this. Why is all of this in JS?

Tree-sitter related bits probably

tree-sitter is a C library though. Only grammars for each particular lang are defined in javascript.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#117

Cool to see more interesting terminal based options! Looking forward to trying this out. I've been working on something related—Plandex[1], an open source AI coding agent that is particularly focused on large projects and complex tasks. I launched the v2 a few weeks ago and it is now running well. In terms of how to place it in the landscape, it’s more agentic than aider, more configurable and tightly controlled than…

Decided to just go ahead and post the Show HN today: https://news.ycombinator.com/item?id=43710576

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#118

Earlier quoted context omitted.

Coding agents use extreme numbers of tokens, you’d be getting rate limited effectively immediately. A typical small-medium PR with Claude Code for me is ~$10-15 of API credits.

I've ended up with $5K+ in a month using sonnet 3.7, had to dial it back. I'm much happier with gemini 2.5 pro right now for high performance at a much more reasonable cost (primarily using with RA.Aid, but I've tried it with Windsurf, cline, and roo.)

Just try the most superior model deep-seek

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#119
post #68

Sorry for being a grumpy old man, but I don't have npm on my machine and I never will. It's a bit frustrating to see more and more CLI tools depending on it.

Yep, this is another one of the reasons why all of these tools are incredibly poor. Like, the other day I was looking at the MCP spec from anthropic and it might be the worst spec that I've ever read in my life. Enshittification at the level of an industry is happening.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#120
post #98

Here is the prompt template, in case you're interested: const prefix = `You are operating as and within the Codex CLI, a terminal-based agentic coding assistant built by OpenAI. It wraps OpenAI models to enable natural language interaction with a local codebase. You are expected to be precise, safe, and helpful. You can: - Receive user prompts, project context, and files. - Stream responses and emit function calls (e…

> - Check if you accidentally add copyright or license headers. If so, remove them. is interesting

Lol. Stolen code incoming.
Post reply on HN