---
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 Claude and GPT model.
2. Point Codex CLI at the OpenAI-compatible surface: base URL `https://openai.api.apitoken.sale/v1`, key sent as `Authorization: Bearer`.
3. Pick a GPT model (e.g. `gpt-5.6-sol`) and start — billing is per token at your discount, `GET /v1/models` lists the enabled set.

## Configuration

```
# ~/.codex/apitoken.config.toml
model = "gpt-5.6-sol"
model_provider = "apitoken"

[model_providers.apitoken]
name = "apiToken.sale"
base_url = "https://openai.api.apitoken.sale/v1"
wire_api = "responses"
env_key = "APITOKEN_API_KEY"

# keep the key in your shell, then pick the profile:
export APITOKEN_API_KEY=sk-pool-…
codex --profile apitoken
```

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