# Claude Code Fable 5 Configuration Guide

> Install Claude Code and connect to the LLMoxy gateway via API Key and request address to program with the Claude Fable 5 model.

## Installation Steps

### 1. Install Node.js

Visit the [Node.js official website](https://nodejs.org/) and download the LTS version (long-term support, more stable).

### 2. Install Claude Code

Open a terminal (macOS/Linux) or PowerShell (Windows) and install via npm:

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

## Get API Key

Go to the [LLMoxy Console](https://llmoxy.com/) → Token Management → Create New API Key. In step 1 "Basic Info", select **Claude Fable 5 Dedicated** in the **Token Group** (instead of the default group) so the token can properly call the Fable 5 model. Fill in the remaining steps (model scope, budget and expiration, security) as needed. After completion, copy the generated key — **the full key is displayed only once**, please save it securely.

## Configuration Steps

Claude Code connects to LLMoxy via two environment variables:

- `ANTHROPIC_BASE_URL` — Fill in `https://llmoxy.com` (**without** `/v1`)
- `ANTHROPIC_AUTH_TOKEN` — The LLMoxy API Key created in the previous step

### macOS / Linux

```bash
{
echo ''
echo '# LLMoxy'
echo 'export ANTHROPIC_BASE_URL="https://llmoxy.com"'
echo 'export ANTHROPIC_AUTH_TOKEN="Your LLMoxy API Key"'
} >> ~/.zshrc   # Bash users change to ~/.bashrc

source ~/.zshrc  # or source ~/.bashrc
```

Not sure which Shell you are using? Run `echo $SHELL`, `/bin/zsh` corresponds to `~/.zshrc`, `/bin/bash` corresponds to `~/.bashrc`.

### Windows (PowerShell)

```powershell
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL","https://llmoxy.com","User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN","Your LLMoxy API Key","User")
```

After setting, **close and reopen** a new PowerShell window for it to take effect.

Remember to replace `Your LLMoxy API Key` with the real Key you copied from the console.

## Launch and Use Fable 5

Enter your project directory and launch Claude Code:

```bash
claude
```

Enter `/model`, select or enter the model name:

```
claude-fable-5-2
```

Press Enter to confirm and start programming with Claude Fable 5.

## Verification

```bash
echo "$ANTHROPIC_BASE_URL"   # macOS/Linux, should display https://llmoxy.com
echo $env:ANTHROPIC_BASE_URL # Windows PowerShell
```

If Claude Code can chat normally, it means you have successfully connected to LLMoxy.

## Common Issues

**Environment variables not taking effect**: Confirm you have `source`d the config file or reopened the terminal window.

**`claude` command not found**: Confirm `node -v` outputs the version normally, then restart the terminal.

**`npm install -g` permission error**: Do not use `sudo npm install -g` to force installation. We recommend using nvm to manage Node.js, or run `npm config set prefix ~/.npm-global` and add `~/.npm-global/bin` to PATH.

This is the markdown version of https://en.llmoxy.com/docs/code-tutorials/claude-code-fable5.
