---
title: "Connect Codex CLI to apiToken.sale"
description: "Run Codex CLI on GPT-5.6 models through apiToken.sale with a named model_providers profile, the OpenAI-compatible base URL, and your sk-pool key."
url: "https://apitoken.sale/int-codex"
language: "en"
---
# Connect Codex CLI to apiToken.sale

Run Codex CLI on GPT-5.6 models through apiToken.sale with a named model_providers profile, the OpenAI-compatible base URL, and your sk-pool key.

## Steps

1. Create a key at https://apitoken.sale/register — it looks like `sk-pool-…` and works across every GPT and Gemini model.
2. Point Codex CLI at the OpenAI-compatible surface: base URL `https://router.apitoken.sale/v1`, key sent as `Authorization: Bearer`.
3. Pick a model by namespaced ID (e.g. `openai/gpt-6.1-terra` or `google/gemini-3.8-flash`) and start — billing is per token at your discount, `GET /v1/models` lists the enabled set.

## Configuration

```
# one-command setup: creates the profile and imports every OpenAI model
curl -fsSL https://apitoken.sale/setup/connect.sh | bash

# Windows PowerShell: irm https://apitoken.sale/setup/connect.ps1 | iex
# Then run plain codex; the setup makes apiToken.sale its default.
```

---
API reference: https://apitoken.sale/md/docs · All integrations: https://apitoken.sale/md/int
