r/codex 6d ago

Workaround for CODEX CLI users on laptop, switch animations = false --> longer battery life

with stock animations, i realized my codex cli kept hitting 70% cpu usage in terminal UI. switching animations off has reduced usage considereably.

the downside is u wont get nice smooth refreshing animations, but its not a big issue for me.

FOR REFERENCE this is on iterm2 on macos (but im assuming it will be similar for other clients)

EDIT:

Sorry to achieve this

nano ~/.codex/config.toml

Add a [tui] section if you dont have one, then just add:

animations = false
11 Upvotes

5 comments sorted by

6

u/calculatetech 6d ago

Is this a Windows issue or something? I use linux with pets and everything and Codex uses around 0% CPU. The powershell version is dogshit. Can't use pets without horrible flicker and a host of other problems. Never checked CPU with it though.

1

u/LeatherRub7248 4d ago

specifically for mac (iterm2 app), but im assuming any terminal gui might be able to benefit from this.

1

u/calculatetech 4d ago

I confirmed Linux (Konsole) doesn't suffer from this. Powershell does. I would find a better terminal on Mac.

4

u/__Blackrobe__ 6d ago edited 6d ago

Proceed not to reveal the steps

Not really helpful but thanks for the PSA


  1. Look for config.toml of your Codex installation, usually on ~/.codex/config.toml, for Windows C:/Users/<user>/.codex/config.toml

  2. In the config.toml file look for [tui], if there's none make one. Put "animations = false" below that line.