QUICKSTART
Two variables. Zero SDK.
Point your tool at NexoAI, paste your key, ship. Claude Code, Codex, or any OpenAI-compatible SDK — the same key everywhere.
01 · GET A KEY
Create an account, top up once, claim $5.
PAYG wallet, hard caps, no subscription.
Sign up without a card, then create a named virtual key from your dashboard. Top up the same USD wallet whenever you need more credit.
Top up & claim $5 credit02 · SET TWO ENV VARS
Two variables, two formats.
The same endpoint speaks Anthropic and OpenAI.
# Claude Code
export ANTHROPIC_BASE_URL="https://api.nexoai.dev"
export ANTHROPIC_AUTH_TOKEN="sk-nxo-••••••••••••••••"
# Codex / OpenAI-compatible
export OPENAI_BASE_URL="https://api.nexoai.dev"
export OPENAI_API_KEY="sk-nxo-••••••••••••••••"
03 · CLAUDE CODE
It works in your terminal.
No extra config — just launch it.
# both exports above, then:
claude
04 · CODEX / OPENAI SDK
curl or Python, same key.
Anything that speaks OpenAI speaks NexoAI.
# chat completions, direct
curl https://api.nexoai.dev/v1/chat/completions \
-H "Authorization: Bearer ***" \
-H "Content-Type: application/json" \
-d '{"model": "claude-haiku-4-5",
"messages": [{"role": "user", "content": "Ship."}]}'
# pip install openai — the SDK reads both env vars
from openai import OpenAI
client = OpenAI()
resp = client.chat.completions.create(
model="claude-haiku-4-5",
messages=[{"role": "user", "content": "Ship."}],
)
print(resp.choices[0].message.content)
