Tempools logoTempools Docs

Codex

Use Tempools from the OpenAI Codex CLI

Codex CLI is OpenAI's official terminal coding agent. Tempools's OpenAI-compatible endpoint is a drop-in replacement for the default, and the recommended setup is ~/.codex/config.toml plus ~/.codex/auth.json.

Prerequisites

  • Node.js 20+ (download)
  • On Windows, install Git; it's optional on macOS / Linux
  • A Tempools API key from the console

Configuration

Install Codex CLI

sudo npm install -g @openai/codex

Run from CMD or PowerShell:

npm install -g @openai/codex

Verify the install

codex --version

Output like codex-cli 0.41.0 means it's ready.

Wire in Tempools

Create a .codex folder under your home directory (if needed), then add both files below.

~/.codex/config.toml

model = "<paste exact model title from /models>"

model_provider = "custom"

model_reasoning_effort = "high"

disable_response_storage = true

[model_providers.custom]
name = "custom"
base_url = "https://api.tokenbyte.ai/v1"
wire_api = "responses"

The model value must match the full card title on the Models page or in the Console → Models catalog.

~/.codex/auth.json

{
  "OPENAI_API_KEY": "<your API key from the console>"
}

Replace the placeholder with the full key from Console → API Keys (including the sk- prefix).

On Windows the .codex directory may not exist — create it manually. Explorer hides dot-directories by default; either enable View → Show → Hidden items or run mkdir .codex.

Launch and sanity-check

From any project directory:

codex

Once the welcome screen appears, try:

Hi — please explain this code.

A real reply means Tempools is live.

VS Code extension (optional)

Only connect the VS Code extension after the CLI works end-to-end — it narrows the debug surface.

  • Search the marketplace for Codex; only install the entry with the OpenAI verified badge.
  • The extension reads ~/.codex/config.toml and ~/.codex/auth.json — nothing to re-enter in VS Code.

If codex still fails in the terminal, installing the extension won't magically fix it — check auth.json and config paths first.

Stuck? See the FAQ.

On this page