Quickstart · Node 20+

Connect your CLI in 10 seconds.

Sign in from your terminal, add any of 137 models to your tool's /model menu, and start coding. Existing Claude, ChatGPT, and Copilot logins are detected automatically and never overwritten without asking.

Reached a subscription limit? Use a prepaid fallback in Claude Code. To use several models in one terminal, see the multi-model CLI guide.

  1. Sign in and connect your tools

    Opens your browser to authorize HallPass, detects Claude Code, Codex, OpenCode, and Copilot, and asks whether to keep your existing logins separate or make HallPass the default.

    Terminal
    $ npx hallpassai auth

    On SSH or a headless machine? Get a code in Connect ↗ and run npx hallpassai auth <CODE>.

  2. Add any model

    Run npx hallpassai add to cycle through the top 5 popular models or type to filter, or pass any model ID directly from the 137 model catalog.

    Terminal
    # Interactive picker (top 5 popular first, type to filter)
    $ npx hallpassai add
    
    # Or add a specific model directly
    $ npx hallpassai add deepseek-v4.1-flash
  3. Pick it in /model and code

    Open your coding tool (claude, codex, or opencode), type /model, and start coding. Pause anytime with npx hallpassai pause or remove completely with npx hallpassai uninstall.

Coding Tools

Pick your tool for setup and live switching commands.

Supported models 132 models
Switch live /model · /effort
Claude Code
# Sign in and connect Claude Code
npx hallpassai auth --harness claude-code

# Add any model to /model
npx hallpassai add deepseek-v4.1-flash --harness claude-code

# Launch Claude Code
claude

CLI Commands

Pass --harness <name> (claude-code, codex, opencode, copilot, cursor) to target a single tool.

Command Action
npx hallpassai auth [CODE] Sign in via browser (alias login). Pass a code on SSH or headless machines.
npx hallpassai add [MODEL] Add a model to /model. Omit the model ID to cycle and filter interactively.
npx hallpassai models [--search Q] Browse live models and token rates in your terminal.
npx hallpassai use [MODEL] [-r <lvl>] Switch default model or reasoning depth (auto resets).
npx hallpassai pause | resume Pause routing to restore native logins, then resume anytime.
npx hallpassai usage Inspect live credit balance, cached tokens, and recent spend.
npx hallpassai status | doctor Verify configured tools, active models, and gateway connection.
npx hallpassai uninstall Revoke key and restore previous config.

SDKs & API

Create a key in API keys ↗ and use Bearer $HALLPASS_API_KEY across OpenAI and Anthropic SDKs, or browse all 137 models.

OpenAI compatible /v1/chat/completions · /v1/responses · /v1/models
https://api.hallpassai.com/v1
Anthropic compatible /v1/messages
https://api.hallpassai.com
JavaScript · openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.hallpassai.com/v1",
  apiKey: process.env.HALLPASS_API_KEY,
});

const res = await client.chat.completions.create({
  model: "deepseek-v4.1-flash",
  reasoning_effort: "high",
  messages: [
    { role: "user", content: "Hello!" },
  ],
});