> ## Documentation Index
> Fetch the complete documentation index at: https://docs.viviai.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Connect Claude Code to ViVi-API.

Have an API key from the [ViVi-API dashboard](https://api.viviai.cc/dashboard) ready, and confirm that its group supports your chosen model. Back up any existing configuration before merging the fields below.

## 1. Install

Use the official installer for your terminal:

> [tab] Windows PowerShell
>
> ```powershell theme={null}
> irm https://claude.ai/install.ps1 | iex
> ```

> [tab] macOS / Linux / WSL
>
> ```bash theme={null}
> curl -fsSL https://claude.ai/install.sh | bash
> ```

For versions that support npm installation, you can also use:

```bash theme={null}
npm install -g @anthropic-ai/claude-code
```

Open a new terminal and verify the installation:

```bash theme={null}
claude --version
```

## 2. Set the ViVi-API environment variables

> [tab] Windows PowerShell
>
> ```powershell theme={null}
> $env:ANTHROPIC_BASE_URL = "https://api.viviai.cc"
> $env:ANTHROPIC_AUTH_TOKEN = "sk-your-api-key"
> $env:ANTHROPIC_MODEL = "claude-sonnet-4-6"
> claude
> ```

> [tab] macOS / Linux / WSL / Git Bash
>
> ```bash theme={null}
> export ANTHROPIC_BASE_URL="https://api.viviai.cc"
> export ANTHROPIC_AUTH_TOKEN="sk-your-api-key"
> export ANTHROPIC_MODEL="claude-sonnet-4-6"
> claude
> ```

These commands apply only to the current terminal session. To keep the settings, save them as user environment variables or in your shell startup file, then launch Claude Code from a new terminal.

See the [Integration overview](https://docs.viviai.cc/en/scenarios.md) and [FAQ](https://docs.viviai.cc/en/faq.md) for more help.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.