How to use Claude Code with Ezkielyna API (custom base URL, any model)

Claude Code reads environment variables for a custom API server. Ezkielyna API accepts the Anthropic Messages format at https://api.ezkielyna.store (no /v1), so Claude Code can run with open models such as DeepSeek, GLM or MiniMax. Claude models are available too with a Premium or Auto key.

As of 2026-11-12, DeepSeek V4.1 Flash costs $0.04 per 1M input tokens and $0.16 per 1M output tokens (read live from the gateway pricing). Ezkielyna is an independent gateway, not affiliated with the model makers.

Updated from live data · Sources: model list · status page

What you need

  • Claude Code installed (the claude command)
  • An Ezkielyna API key (Standard group for open models, Auto or Premium if you also want Claude models)

Steps

  1. 1Top up API Credit

    Open ezkielyna.store/api-credit, pick a pack and pay with QRIS, USDT (BEP-20 or Solana), Binance Pay or store balance. A redeem code appears on the order page once payment is confirmed. The balance does not expire and there is no monthly fee.

  2. 2Redeem the code and create an API key

    Sign in at https://api.ezkielyna.store (if you have no account there, use the Ezkielyna Store sign-in button on that page), open Wallet and paste the redeem code. Then open API Keys and create a key. The Standard group covers DeepSeek, GLM, MiniMax, Qwen and Kimi K2.7; choose Auto if you also want Premium models such as Kimi K3, Claude or GPT with the same key.

  3. 3Set the environment variables

    Add these lines to ~/.zshrc or ~/.bashrc and open a new terminal. Write the base URL without /v1, because Claude Code adds /v1/messages itself. ANTHROPIC_MODEL picks the main model. The three DEFAULT_* variables fill the sonnet, opus and haiku aliases, including the small model Claude Code uses for background tasks; if you leave them out, Claude Code asks for Claude model names that a Standard key cannot call.

    ~/.zshrc or ~/.bashrc
    export ANTHROPIC_BASE_URL="https://api.ezkielyna.store"
    export ANTHROPIC_AUTH_TOKEN="sk-..."        # your Ezkielyna API key
    export ANTHROPIC_MODEL="deepseek-v4.1-flash"
    export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4.1-flash"
    export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4.1-flash"
    export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash"
    export API_TIMEOUT_MS=600000                 # 10 minutes for long tasks
    export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
  4. 4Windows or no shell file

    Claude Code also reads an env block from settings.json (~/.claude/settings.json on macOS and Linux, %USERPROFILE%\.claude\settings.json on Windows) with the same variables.

    ~/.claude/settings.json
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://api.ezkielyna.store",
        "ANTHROPIC_AUTH_TOKEN": "sk-...",
        "ANTHROPIC_MODEL": "deepseek-v4.1-flash",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4.1-flash",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash"
      }
    }
  5. 5Test with one small request

    Run a non-interactive command. If the answer appears, the request is also in your dashboard Logs with its cost.

    terminal
    claude -p "Reply with one word: ready"
  6. 6Work in a project

    Open your project folder and run claude as usual. Switch model with /model inside Claude Code or the --model flag, using a name from the model list.

    terminal
    cd your-project
    claude
    
    # or with another model
    claude --model glm-5.3

If something goes wrong

  • 401 or 403: the key is wrong or truncated, or the balance is empty.
  • 404: remove /v1 from ANTHROPIC_BASE_URL. For Claude Code it is https://api.ezkielyna.store only.
  • model not found or no available channel: the model name is wrong or your key group does not include it. With a Standard key make sure ANTHROPIC_MODEL and all three DEFAULT_* variables name Standard models.
  • Claude Code still asks you to log in to an Anthropic account: the variables were not picked up. Open a new terminal and check with echo $ANTHROPIC_BASE_URL.
  • This is pay-per-token API usage from your Ezkielyna balance, not a Claude subscription. Ezkielyna is independent and not affiliated with Anthropic.

Other guides: Cline · Kilo Code · Roo Code · OpenCode · Continue · Python & JavaScript SDK

Prices: DeepSeek · GLM · Kimi · OpenRouter alternative

Try Ezkielyna API

Top up API Credit, redeem the code in the dashboard, create a key and point any OpenAI-compatible tool at https://api.ezkielyna.store/v1. Pay as you go; the balance does not expire.

Bahasa Indonesia: Panduan Claude Code dalam Bahasa Indonesia