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-sonnet-4-6",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-8",
    "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-sonnet-4-6"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-4-8"
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
  • The background task (haiku) is mapped to claude-sonnet-4-6 because the haiku tier is not available.
  • 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.