Skip to main content

Documentation Index

Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt

Use this file to discover all available pages before exploring further.

Claude Code is Anthropic’s terminal-based coding agent. It lets you search codebases, edit files across multiple projects, and run agentic workflows directly from your terminal. When you set the ANTHROPIC_BASE_URL environment variable to point to Newapi, all Claude Code requests are routed through your Newapi instance.

Features

CategoryCapability
Code understandingDeep codebase analysis; automatic high-level overviews
Code editingMulti-file collaborative editing; project-pattern-aware suggestions
IntegrationRuns in the terminal; integrates with VS Code and JetBrains IDEs
Code generationGenerates code, creates tests, fixes bugs from concept to commit
SecurityChanges require explicit user authorization
Cross-platformSupports Windows, macOS, and Linux

Setup

1. Install Node.js

Claude Code requires Node.js to run on Windows.
  1. Visit https://nodejs.org/ and download the LTS version.
  2. Run the .msi installer and follow the wizard with default settings.
Verify the installation by opening PowerShell and running:
node --version
npm --version
Use PowerShell instead of CMD. If you encounter permission issues, run PowerShell as administrator. Some antivirus software may flag the installer — add an exception if needed.

2. Install Git Bash

Git Bash is required to install Claude Code on Windows. After installation, you can continue using PowerShell or CMD for day-to-day use.
  1. Visit https://git-scm.com/downloads/win and download the installer.
  2. Run the .exe file with default settings.
Verify by opening Git Bash and running:
git --version

3. Install Claude Code

Open PowerShell and run:
npm install -g @anthropic-ai/claude-code
If prompted to add ~/.local/bin to your PATH, run:
[Environment]::SetEnvironmentVariable('Path', ([Environment]::GetEnvironmentVariable('Path','User') + ";$HOME\.local\bin"), 'User')
Verify the installation:
claude --version

4. Configure Newapi environment variables

Run the one-click setup script to point Claude Code at your Newapi instance:
iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.ps1')
The script prompts you for your Newapi base URL and API key, then writes the required environment variables (ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY) to your user profile.

5. Start using Claude Code

Open PowerShell and launch Claude Code:
claude
To use Claude Code in a specific project:
cd C:\path\to\your\project
claude
To select or change the active model, run inside Claude Code:
/model
After setting ANTHROPIC_BASE_URL, all Claude Code model requests (including officially preset models) route through your Newapi instance instead of Anthropic’s servers directly.