Skip to content

Project introduction

Claude Code brings Claude into your terminal for codebase search, editing, and workflow automation.

Dli.li integration notes

Claude Code is often used together with projects such as Claude Code Router (CCR) and CC Switch. Regardless of the wrapper, confirm model and interface compatibility first.

If you plan to use CCR, read CCR first. In this docs site, CCR specifically refers to the musistudio Claude Code Router project, not a generic routing label.

TypeURL
Official default APIhttps://api.dli.li/v1
Official backup APIhttps://api.dlizz.com/v1

API recommendation

The official default API is `https://api.dli.li/v1`. The official backup API is `https://api.dlizz.com/v1`.

Claude interface limitation

Most models on this site do not support the `/messages` interface. Only some Claude models do. Prefer the compatible calling path by default.

Demo

introduce-01.webp

introduce-02.webp

Features

CategoryFeature
Code understandingDeep codebase analysis and high-level project overviews
Code editingMulti-file edits and architecture-aware code suggestions
IntegrationWorks directly in terminal and integrates with IDEs
Generation and optimizationHelps generate code, tests, and fixes
Safety and flexibilityExplicit authorization flow and configurable behavior
Toolchain integrationWorks well with GitHub, GitLab, test suites, and build systems
Cross-platform supportWindows, macOS, and Linux

Model setup

Windows guide

1. Install Node.js

Claude Code requires Node.js.

Node.js installation

- Visit https://nodejs.org/ - Download the `LTS` release - Run the `.msi` installer and keep the default options

Windows notes

- PowerShell is recommended over CMD - If permission issues appear, try running as administrator - Some antivirus tools may require allow-listing

windows-img-01.webpwindows-img-02.webpwindows-img-03.webpwindows-img-04.webpwindows-img-05.webp

Verify installation:

bash
node --version
npm --version

2. Install Git Bash

Windows note

Git Bash is required for installing Claude Code on Windows. After installation, you can still use PowerShell or CMD for regular usage.

Install Git for Windows from: https://git-scm.com/downloads/win

windows-img-06.webpwindows-img-07.webpwindows-img-08.webp

Verify installation:

bash
git --version

3. Install Claude Code

bash
npm install -g @anthropic-ai/claude-code

windows-img-09.webp

If prompted to add ~/.local/bin to PATH:

powershell
[Environment]::SetEnvironmentVariable('Path', ([Environment]::GetEnvironmentVariable('Path','User') + ";$HOME\.local\bin"), 'User')

Verify installation:

bash
claude --version

4. Configure environment variables

Use the upstream helper script:

powershell
iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.ps1')

windows-configure

5. Start using Claude Code

bash
claude

Or in a project:

bash
cd C:\path\to\your\project
claude

windows-img-11.webpwindows-img-12.webpwindows-img-13.webpwindows-img-14.webpwindows-img-15.webp

To choose a model:

bash
/model

windows-img-16.webpwindows-img-17.webp

After changing the environment variables, all models will use the custom endpoint instead of Anthropic account quota.

macOS guide

1. Install Claude Code CLI

Open Terminal:

macos-img-01.webp

Run:

bash
curl -fsSL https://claude.ai/install.sh | bash

If prompted, add the binary directory to PATH:

bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc

macos-img-02.webp

2. Configure environment variables

bash
curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.sh | bash

macos-configure

Verify installation:

bash
claude --version

3. Start using Claude Code

bash
claude

Or in a project:

bash
cd /path/to/your/project
claude

macos-img-04.webpmacos-img-05.webpmacos-img-06.webpmacos-img-07.webpmacos-img-08.webp

Optional model selection:

bash
/model

macos-img-09.webpmacos-img-10.webpmacos-img-11.webp

After changing ANTHROPIC_BASE_URL, all models use the custom endpoint instead of Anthropic account quota.

4. macOS common issues

Security settings block execution

If macOS blocks Claude Code:
  • Open System Preferences -> Security & Privacy
  • Click Open Anyway or Allow
  • Or run sudo spctl --master-disable

Linux guide

1. Install Claude Code

linux-img-01.webp

Run:

bash
curl -fsSL https://claude.ai/install.sh | bash

If needed:

bash
sudo curl -fsSL https://claude.ai/install.sh | bash

linux-img-03.webp

Verify installation:

bash
claude --version

2. Configure environment variables

bash
curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/claude-cli-setup.sh | bash

macos-configure

3. Start using Claude Code

bash
claude

Or in a project:

bash
cd /path/to/your/project
claude

linux-img-03.webplinux-img-04.webplinux-img-05.webp

Choose a model if needed:

bash
/model

linux-img-06.webplinux-img-07.webplinux-img-08.webplinux-img-09.webp

After changing ANTHROPIC_BASE_URL, all models use the custom endpoint instead of Anthropic account quota.

4. Linux common issues

Missing dependencies

Some Linux distributions need extra packages:
bash
sudo apt install build-essential

Or on RHEL/CentOS:

bash
sudo dnf groupinstall "Development Tools"

Environment variables do not take effect

Check that you edited the correct shell profile, restart the terminal or run `source ~/.bashrc`, and verify with:
bash
echo $ANTHROPIC_BASE_URL