Usage with Codex
Locus uses the Codex CLI as one of the terminal agent providers. This provides specialized capabilities for code generation and advanced programming tasks.
Prerequisites
To use Codex with Locus, install the Codex CLI and make sure you are logged in.
- Install the Codex CLI.
- Run
codexonce to complete login.
Running the Agent
To start the agent using Codex, run:
bashlocus run --provider codex
If you haven't set your Locus credentials in the environment, pass them explicitly:
bashlocus run --provider codex --api-key <YOUR_KEY>
Custom Model Selection
By default, Locus uses gpt-5.1-codex-mini. You can specify a different Codex model if needed:
bashlocus run --provider codex --model gpt-5.1-codex
