Skip to documentation
DEVELOPER DOCS / HASHBIDXMODEL ACCESS. ONE INTEGRATION.

TOOL INTEGRATION

Claude Code

Anthropic's agentic coding tool for the terminal. Point it at HashBid with three environment variables.

Official docs

Before you start

API Key
<YOUR_API_KEY>

Create one on the API Keys page. Paste the raw key, without Bearer.

Base URL
https://hashbidx.ai

Gateway root, without /v1 — Claude Code appends /v1/messages itself.

Model
claude-sonnet-4-5

Example only — use a model ID from the Models page.

Setup

01Install Claude Code

Use the native installer. The npm package also works and needs Node.js 18 or later.

macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash
Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex
npm
npm install -g @anthropic-ai/claude-code

Windows: if PowerShell refuses to run scripts, run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser first. If claude is not recognized afterwards, add %USERPROFILE%\.local\bin to your user Path and reopen the terminal.

02Point Claude Code at HashBid

Set the variables, then run claude in the same terminal window. ANTHROPIC_AUTH_TOKEN is sent as a Bearer token, which skips the Anthropic login screen. ANTHROPIC_MODEL is required: Claude Code's built-in default model is usually not in your catalog, so set it to a model ID from the Models page.

macOS / Linux
export ANTHROPIC_BASE_URL="https://hashbidx.ai"
export ANTHROPIC_AUTH_TOKEN="<YOUR_API_KEY>"
export ANTHROPIC_MODEL="<MODEL_ID>"
claude
Windows (PowerShell)
$env:ANTHROPIC_BASE_URL="https://hashbidx.ai"
$env:ANTHROPIC_AUTH_TOKEN="<YOUR_API_KEY>"
$env:ANTHROPIC_MODEL="<MODEL_ID>"
claude

03Make it permanent (optional)

Put the same values in Claude Code's user settings so every terminal picks them up.

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://hashbidx.ai",
    "ANTHROPIC_AUTH_TOKEN": "<YOUR_API_KEY>",
    "ANTHROPIC_MODEL": "<MODEL_ID>"
  }
}

Verify it works

  • The red Not logged in · Please run /login banner does not appear.
  • You land at the > prompt. Ask something simple, e.g. Write a Python hello world.
  • The request shows up on the Logs page of this console.

FAQ

Still seeing `Not logged in · Please run /login`?

Check the variable name is exactly ANTHROPIC_AUTH_TOKEN.

Variables set with export / $env: only apply to that window — run claude in the same one.

Don't run /login: it signs in to an Anthropic account and overrides the gateway. Press Esc to leave it.

404 or “model not found”

ANTHROPIC_BASE_URL must not end with /v1.

Switch to a model enabled for your workspace with /model <MODEL_ID>; the list is on the Models page.

Insufficient balance (402)

Top up on the Credit page, then retry.

All developer tools
BUILD WITH HASHBIDX

Find your model. Make your first call.

Models & pricing