Use Gradiated with Codex
Add Gradiated as a separate Codex profile. Your current provider and default model stay unchanged.
Set up automatically
Run the Gradiated wizard:
The wizard adds a Gradiated provider and a gradiated profile. It stores the key outside the Codex configuration and preserves your default profile.
Start Codex with the Gradiated profile:
Set up manually
Set your Gradiated API key in the shell that starts Codex:
Add the provider
Add this block to ~/.codex/config.toml:
Keep this provider in the user configuration. A project-level file can affect everyone who opens the repository.
Add the profile
Create ~/.codex/gradiated.config.toml:
Replace YOUR_MODEL_ID with an ID from models and pricing.
Start Codex with this profile:
Add -m YOUR_MODEL_ID to select another Gradiated model for one run.
Troubleshooting
- Check that
GRADIATED_API_KEYis set in the shell that starts Codex. - Check that the provider base URL is
https://api.gradiated.com/v1. - Check that the model ID matches the Gradiated catalog.
- Use
codex exec --profile gradiated --strict-configto find configuration errors. - Check that the workspace has billing capacity.
Uninstall
Run the uninstall command:
Select Codex. The wizard removes the provider, profile, and stored credential. It keeps timestamped backups and does not change your default profile.