Claude Code

Claude Code

Run the Claude Code coding agent through Nexotao access and pay in Rupiah. Just point Claude Code at the Nexotao base URL and use your API key — no foreign credit card.

Config generator

Pick a model and paste your API key; copy the result into ~/.claude/settings.json, or use the export version for your shell.

Paste your own API key. Processed in the browser, never sent anywhere.

Claude Code uses the Anthropic endpoint, so pick a Claude model. The background task (haiku) is mapped to claude-sonnet-4-6.

settings.json (~/.claude/settings.json)
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.nexotao.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-nexo-...",
    "ANTHROPIC_MODEL": "claude-opus-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-6",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  },
  "skipDangerousModePermissionPrompt": true
}
export (shell)
export ANTHROPIC_BASE_URL="https://api.nexotao.com"
export ANTHROPIC_AUTH_TOKEN="sk-nexo-..."
export ANTHROPIC_MODEL="claude-opus-5"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-5"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-sonnet-4-6"
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS="1"

Configuration notes

  • ANTHROPIC_BASE_URL = https://api.nexotao.com
  • ANTHROPIC_MODEL = the Claude model you pick in the generator.
  • ANTHROPIC_DEFAULT_OPUS_MODEL = the opus-tier model from the live catalog.
  • ANTHROPIC_DEFAULT_SONNET_MODEL = claude-sonnet-4-6. The sonnet tier is available and is used as-is.
  • ANTHROPIC_DEFAULT_HAIKU_MODEL = claude-sonnet-4-6 as well. There is no haiku tier in our catalog, so the background slot points at the cheapest available Claude model. If your client still sends claude-haiku-4-5, the gateway routes it to claude-opus-4-8 and bills it at the Opus rate — set this variable to avoid that.
  • CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 for compatibility.

Steps per operating system

macOS / Linux (Ubuntu)

  1. Install Claude Code (see Anthropic’s official documentation).

  2. Save the config to ~/.claude/settings.json from the generator above, or paste the export block into ~/.zshrc / ~/.bashrc:

    source ~/.zshrc   # or ~/.bashrc
  3. Run claude from your project directory.

Windows

  1. Install Claude Code.

  2. Create a settings.json file at %USERPROFILE%\.claude\settings.json with the contents from the generator, or set environment variables via PowerShell:

    setx ANTHROPIC_BASE_URL "https://api.nexotao.com"
    setx ANTHROPIC_AUTH_TOKEN "sk-nexo-..."
  3. Open a new terminal and run claude.

Claude Code usage is deducted from your Rupiah balance, just like a regular text call. See Billing & Pricing.