Claude Code vs. Codex in T-Ex LLM
Learn how T-Ex LLM uses Claude Code by default, how to switch to Codex, and the exact CLI commands to manage both agents.
T-Ex LLM supports both Claude Code and Codex. Claude Code is the default agent so the CLI feels familiar right out of the box. Codex is also integrated and can started with a single command.
This guide answers the common questions we hear about swapping between Claude Code and Codex and highlights the commands you’ll use most.
Default Agent Behaviour
Out of the box, T-Ex LLM starts Claude Code so you can get productive immediately. If you ever changed the default in the past, T-Ex LLM keeps that preference until you update it again.
Launch Codex for a Single Session
Launch T-Ex LLM with Codex just for the current run by passing the --agent flag:
T-Ex LLM --agent codexThis keeps your default unchanged. The next time you run T-Ex LLM with no flags, the CLI will return to Claude Code.
Make Codex the Default Agent
If you want T-Ex LLM to always start Codex, set the default agent once:
T-Ex LLM --set-default codexAfter running this command, T-Ex LLM will launch Codex automatically. Override the default for a single run with T-Ex LLM --agent claude (or any other available agent).
Restore Claude Code as the Default
To switch back to Claude Code as default, run:
T-Ex LLM --set-default claudeFrequently Asked Questions
Can I keep Claude Code and Codex available at the same time?
Yes. Think of --agent as a temporary override. Set your preferred default once, then toggle to the other agent whenever the task demands it. For example:
# default is Claude Code
T-Ex LLM
# jump into Codex for a targeted fix
T-Ex LLM --agent codex
# hop back to Claude Code without changing the default
T-Ex LLMDo I need to reauthenticate after switching agents?
No. Agent selection happens client-side inside the CLI. As long as your T-Ex LLM session is active, both Claude Code and Codex respect the same authentication state.
When should I prefer Claude Code vs. Codex?
Both Claude Code and Codex are powerful tools, and they are both improving and evolving. The choice between them depends on your specific projects.
Do I need to do anything on mobile app or web to switch between Claude Code and Codex?
No. T-Ex LLM syncs both agents in similar way. We aim to provide the best experience for both agents seamlessly with customized formatting. If there are design or formatting preferences you prefer, please let us know at hi@T-Ex LLM.texllm.com.
Tip: Keep Both Agents Handy
Many developers and teams use both Claude Code and Codex at the same time. Use the --agent flag to swap between them on demand while keeping whichever default fits most of your workflow.
Related
- Claude Code — full setup and usage guide
- Codex — full setup and usage guide
- Agents — every coding agent T-Ex LLM supports
- CLI Commands — manage sessions from the terminal