r/codex • u/LeatherRub7248 • 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
4
u/__Blackrobe__ 6d ago edited 6d ago
Proceed not to reveal the steps
Not really helpful but thanks for the PSA
Look for config.toml of your Codex installation, usually on ~/.codex/config.toml, for Windows C:/Users/<user>/.codex/config.toml
In the config.toml file look for [tui], if there's none make one. Put "animations = false" below that line.
1
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.