r/codex • • 3h ago

Workaround Burning through codex tokens, without switching models - Any advice?

Has anyone found a reliable way to significantly reduce Codex token consumption or extend usage limits without installing Ollama, using OpenRouter, paying for additional credits, or sacrificing the original model’s coding and reasoning capabilities?

0 Upvotes

16 comments sorted by

1

u/Easy-Push-392 2h ago

https://github.com/MrAnonymz/Codex-Optimization-framework these are two prompts, one for chatgpt (can put 2nd to gpt too for review) and another for your codex. GPT will help you set your codex to your own needs, models you want to use etc. It will do it with you one step at a time so you wont do mistakes. it will take a while to set it up, but for me it helped so I just polished it and put it on git for everyone hoping it will help atleast one user. it is not hard set for my PC or anything, it will ask you things, check your codex before doing anything and so on.

1

u/Forsaken-Loan-65 1h ago

Thank you! Have you seen it decrease your usage on codex though ?

1

u/Easy-Push-392 2h ago

24hour session doing coding, fixing bugs, making UI, testing, using another device etc.

1

u/Easy-Push-392 2h ago

you can set agents/experts etc as you want, you dont have to use it as I did if you want for example Terra to do more work, etc.

1

u/Forsaken-Loan-65 1h ago

Ahhh I see, I’ve been using gpt for prompts to send to Claude to analyze then get a final edit to send to codex but I have a lot to debug on python to get it working properly again, what do you mean about terra?

1

u/dysphoricjoy 2h ago

Kind of piggybacking off this thread to ask: I've been paying for Plus since it released, but lately i've been wanting to look into the alternative models that run off my own computer for a cheaper cost/stretches the value more. I dont know where to start to look into this, does anyone recommend any rabbit holes to start going down of?

1

u/Forsaken-Loan-65 1h ago

I mentioned those in my post actually but it limits it’s capabilities

1

u/Careless_Visit7021 1h ago

Qwen 4 is out now, and it is good. Grab strata to run it on, and something like opencode. You'll need a min of 16gb and qwen4 Q4 as a minimum.

Caution, only use it for smaller changes. It's not quick and it is not frontier.

1

u/HamsterMajestic2023 1h ago

Ask an agent to setup orchestration for you. Tell it what the issues youre having and/or what you want. Like setup it up in a way to reduce token spends whilst trying to keep the same quality of work. Something like that.

1

u/Forsaken-Loan-65 1h ago

Thank you ! Have you seen this reduce usage with this prompt without impacting its overall performance?

1

u/HamsterMajestic2023 1h ago

You're welcome.

The prompt will setup orchestration setup for you. Then it should just work automatically after that in any thread/project.

Have it perform some tests whilst its setting it up and you should be to get an idea of how much you can save.

I dont really have any issues with needing to save tokens. I have 200 plan. I run probs for 4 or 5 projects at the same time and I have like 3 banked resets that ive not used yet.

Just ask and tell it what you want and then have it set it up for you.

1

u/Careless_Visit7021 2h ago

It's a hard one. If you're on a high level sub, use one of the agents as orchestrator and tell it to set the model and reasoning for the work you are doing.

Second, set the model and reasoning yourself if you can.

OpenAi is just rubbish right now, claude on a sub beats it hands down. If you're paying rather than a sub, then openai is ok.

The other alternative is a mixed setup of claude, anitgrav, codex and local llm.

1

u/Adventurous_Pin_2470 1h ago

Token burn happens for me all the time. The problem is that Terra is just not a good fit for my projects. I had Codex review model cards for all 4 and the result is Sol does most of the work at varying effort levels. I can't figure out a sweet spot for Terra or what resources to give it (like context7) so I can trust it to take on anything important. It also doesn't feel like much of a token saver either.

On Claude I'm able to confidently juggle splitting work between Sonnet and Opus. I have an sub agent set to Opus that's allowed to spawn Sonnet/Haiku for exploration work as well. Usage limits on Claude just goes further as far as I can tell.

-1

u/Patient-Software-168 2h ago

Switch to Claude. 

I want from burning my usage within minutes to i cannot spend my entire weekly quota no matter how hard I try

1

u/Forsaken-Loan-65 1h ago

Are you strictly using Claude code? Or regular Claude, I’m just concerned it will implement changes into my python that can overshadow my actually project on its own. So I tried…..just using gpt to analyze codex then send all I got too regular Claude not Claude code to look for flaws/bug for approval before I send to codex for implementation, any advice about this ?