← Compatible Clients

Terminal Agents

Codex CLI

OpenAI's Codex CLI for AI-powered terminal coding.

Connect Codex CLI to ApiSpi

Base URL

https://apispi.com/api/gateway/v1

API Key

apispi_... Get yours below

Start a free week to generate an API key.

Where to put it

Set OPENAI_BASE_URL and OPENAI_API_KEY as environment variables, or the equivalent fields in ~/.codex/config.toml.

Every request is priced at market rate and tracked in your Token Bank automatically. See the LLM Gateway page for what's included, or the Model Library for which models you can request.

Bring Your Own Client

Get an API key and point Codex CLI at ApiSpi in minutes