What Claude Code actually is
Claude Code is not a chat window with a code button. It is an agent loop: you describe an outcome, it inspects the repository, proposes a plan, edits files, runs your tests, reads the failures and iterates — asking permission before anything destructive. It ships as an npm package (@anthropic-ai/claude-code, currently 2.1.278), a native installer, a VS Code / JetBrains extension, a desktop app and a web version that runs in Anthropic-hosted sandboxes.
Under the hood every turn is a Messages API call carrying the full conversation so far. That single fact explains most of what people search for about it: why it is powerful, why it is token-hungry, why rate limits bite, and why a cheaper or flat-rate API backend changes the experience so much.
Point it at the gateway in two lines
Claude Code reads the standard Anthropic environment variables. Set the base URL to this gateway and use a key from your dashboard; nothing else changes.
export ANTHROPIC_BASE_URL=https://aiprimetech.io
export ANTHROPIC_API_KEY=your_gateway_key
claude
Run /status inside Claude Code to confirm the base URL it is talking to, and /model to pick a model. Every model the gateway serves is available — see the models guide for the current list.
The guides
- Install — npm, native installer, Windows/WSL, and fixing a broken install.
- CLI reference — flags, slash commands, headless mode, output formats.
- Pricing & limits — what it costs on the API, on Pro/Max, and on this gateway.
- Agent SDK — driving Claude Code programmatically from Python or TypeScript.
- Skills & plugins — what skills are, the marketplace, and writing your own.
- GitHub — the GitHub App, the Action, and @claude in pull requests.
- Web, desktop & IDE — where Claude Code runs besides the terminal.
- Models — the default model, switching, and per-tier overrides.
- Errors — 500, 400, 429, 529, auth failures and what each one means.
- Open source? — what is and isn't, and the open alternatives.
- Tutorial — a first real session: CLAUDE.md, plan mode, permissions, compaction.
- For students — the cheapest legitimate way to run it while learning.
- QA automation — generating tests, the run-fix loop, headless runs in CI, Playwright.
Frequently asked questions
Is Claude Code free?
The tool itself is free to install. Usage is billed either through a Claude Pro/Max subscription or per token through the API. On this gateway you can run it on pay-as-you-go credits or a flat-rate unlimited plan.
Does Claude Code work with a different API endpoint?
Yes. It honours ANTHROPIC_BASE_URL, so any Anthropic-compatible endpoint works. That is exactly how it connects to this gateway — no patching, no wrapper.
Which model does Claude Code use?
By default the current Sonnet-tier model; you can switch with /model or the --model flag, and override each tier with environment variables. The models guide lists what this gateway serves right now.
Run Claude Code on the gateway
Same models, two environment variables, credits at 7.69× face value — or a flat-rate unlimited plan.
Get an API key See unlimited plansAI Prime Tech is an independent API gateway and is not affiliated with, endorsed by, or sponsored by Anthropic. “Claude” and “Claude Code” are trademarks of Anthropic. Claude Code features described here follow Anthropic’s public documentation at the time of writing and change frequently; prices and model lists on this page are read from this gateway’s live settings.