Codex

Connect OpenAI Codex to aivene for AI-powered coding assistance.

Codex is OpenAI's coding agent. Plan, edit, and ship from your editor or terminal with sandboxed execution.

Note: Codex is currently available on macOS and Windows only.

Setup

The fastest way to set up Codex with aivene is through the Integrations page. Use the one-click setup script to configure everything automatically.

Manual setup

If you prefer manual configuration:

1. Install Codex

# macOS
brew install --cask codex

# Windows
winget install OpenAI.Codex

2. Configure aivene as the default provider

Create or edit your Codex config file at ~/.codex/config.toml (macOS) or %USERPROFILE%\.codex\config.toml (Windows):

model = "gpt-5.3-codex"
model_provider = "aivene"

[model_providers.aivene]
name = "aivene"
base_url = "https://api.aivene.com/v1"
env_key = "AIVENE_CODEX_API_KEY"
wire_api = "responses"

3. Set your API key

# macOS
echo 'export AIVENE_CODEX_API_KEY="isk-your-api-key"' >> ~/.zshrc
source ~/.zshrc
# The Codex app is not started from your shell, so also set it for GUI apps:
launchctl setenv AIVENE_CODEX_API_KEY "isk-your-api-key"

# Windows (PowerShell)
[Environment]::SetEnvironmentVariable("AIVENE_CODEX_API_KEY", "isk-your-api-key", "User")

On macOS, launchctl setenv lasts until you log out or restart; after that, run it again (or rerun the setup script from the Integrations page). Quit and reopen the Codex app after setting the key so it picks it up.

4. Launch Codex

Open the Codex app. It will pick up the config and use aivene automatically.

Model selection

You can use any compatible model available on aivene. Check the Models page for the full list.