Meteor AI
Developer Tools

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@latest

Configure Codex

Step 1: Open the config file

Config locations by OS:

Windows

C:\Users\<your user>\.codex\config.toml

macOS / Linux

~/.codex/config.toml

Tip: 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 use
  • model_provider: custom provider name
  • disable_response_storage: disable storing responses
  • approval_policy: automation level; never runs without prompts
  • sandbox_mode: danger-full-access allows 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:

codex

If 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.toml

macOS / Linux

# Create config directory
mkdir -p ~/.codex

# Create config file
nano ~/.codex/config.toml

How do I get an API key?

See the “Get API Key” section in the Claude Code guide.


Get Help