TOOL INTEGRATION
Claude Code
Anthropic's agentic coding tool for the terminal. Point it at HashBid with three environment variables.
Before you start
Setup
01Install Claude Code
Use the native installer. The npm package also works and needs Node.js 18 or later.
curl -fsSL https://claude.ai/install.sh | bashirm https://claude.ai/install.ps1 | iexnpm install -g @anthropic-ai/claude-codeWindows: 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.
export ANTHROPIC_BASE_URL="https://hashbidx.ai"
export ANTHROPIC_AUTH_TOKEN="<YOUR_API_KEY>"
export ANTHROPIC_MODEL="<MODEL_ID>"
claude$env:ANTHROPIC_BASE_URL="https://hashbidx.ai"
$env:ANTHROPIC_AUTH_TOKEN="<YOUR_API_KEY>"
$env:ANTHROPIC_MODEL="<MODEL_ID>"
claude03Make it permanent (optional)
Put the same values in Claude Code's user settings so every terminal picks them up.
{
"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 /loginbanner 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.