Use Codex
Codex integration guide - call AI models through the Meteor API platform
Overview
This guide explains how to install and configure OpenAI Codex so it can call AI models via the Meteor API platform. Codex is a powerful AI coding assistant for multiple languages and environments.
Install Codex
npm install -g @openai/codex@latestConfigure Codex
Step 1: Open the config file
Config locations by OS:
Windows
C:\Users\<your user>\.codex\config.tomlmacOS / Linux
~/.codex/config.tomlTip: If the file is missing, install the VS Code Codex extension and open settings through the extension UI.
Step 2: Edit the config
Open config.toml and add:
model = "gpt-5-codex"
model_provider = "meteor-api"
disable_response_storage = true
approval_policy = "never" # options: "untrusted" | "on-failure" | "on-request" | "never"
sandbox_mode = "danger-full-access"
[model_providers.meteor-api]
name = "Meteor API"
base_url = "https://api.routin.ai/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"Notes:
model: model name to usemodel_provider: custom provider namedisable_response_storage: disable storing responsesapproval_policy: automation level;neverruns without promptssandbox_mode:danger-full-accessallows full access
Important: model and model_provider must be at the top of the file.
Step 3: Configure the API key
In the same directory, create or edit auth.json:
{
"OPENAI_API_KEY": "sk-your-api-key-here"
}Replace the key with the API key from the Meteor platform.
Verify installation
After configuring, open a terminal:
codexIf everything is correct, Codex starts in interactive mode and is ready to use.
FAQ
Config file missing
If you cannot find the config file, create it manually:
Windows
# Create config directory
mkdir %USERPROFILE%\.codex
# Create config file
notepad %USERPROFILE%\.codex\config.tomlmacOS / Linux
# Create config directory
mkdir -p ~/.codex
# Create config file
nano ~/.codex/config.tomlHow do I get an API key?
See the “Get API Key” section in the Claude Code guide.
Get Help
- Web: https://routin.ai
- API docs: https://api.routin.ai/scalar