macOS Setup

Special Offer - Use Vibe Coding API at approximately 0.35x of the original price, exclusively for programming tools!

This guide will help you configure Claude Code to use Fizzly API on macOS.

Requirements

  • macOS 10.15 (Catalina) or later
  • Node.js 18+ installed
  • Fizzly API key (Get your key)

Installation Steps

Step 1: Check Environment

Open Terminal and check installed global packages:

npm list -g --depth=0

If you don’t have Node.js installed, you can install it via Homebrew or nodejs.org:

# Install Node.js via Homebrew (recommended)
brew install node

Step 2: Install Claude Code CLI

Install Claude Code globally using npm:

npm i -g @anthropic-ai/claude-code@latest
⚠️

If you encounter permission errors, use sudo:

sudo npm i -g @anthropic-ai/claude-code@latest

Step 3: First Run (Very Important!)

This step is crucial! Running Claude Code for the first time will automatically create the configuration folder in your user directory.

claude

You’ll see the welcome screen. Press Ctrl+C to exit. This will create the configuration folder at ~/.claude.

Configure API

Step 1: Get API Key

Log in to Fizzly Console and create a new API key.

⚠️

Important: To enjoy the special discounted pricing for programming tools, make sure to select the vibe coding group when creating your API key. This group’s API is exclusively for use with Claude Code, Codex CLI, Gemini CLI, and similar programming tools.

API Key

Step 2: Open Configuration Directory

In Finder, press Cmd + Shift + G and enter the following path:

~/.claude

Open .claude directory

You’ll see the configuration files in the directory:

.claude directory structure

Or use terminal command:

# Open config directory in Finder
open ~/.claude

Step 3: Edit Configuration File

In the .claude directory, create or edit the settings.json file.

Using terminal to edit:

nano ~/.claude/settings.json

Add the following content:

settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.fizzlyapi.com",
    "ANTHROPIC_AUTH_TOKEN": "your-fizzly-api-key"
  }
}
⚠️

Replace your-fizzly-api-key with your actual API key from the Fizzly Console.

Save the file (in nano: Ctrl+O to save, Ctrl+X to exit)

Step 4: Verify Configuration

After saving the file, restart Claude Code:

claude

If configured successfully, you’ll see Claude Code running normally:

Claude Code running successfully

Alternative Configuration Methods

Add to ~/.zshrc file (default shell on macOS Catalina+):

# Open .zshrc
nano ~/.zshrc
 
# Add these lines at the end:
export ANTHROPIC_API_KEY="your-fizzly-api-key"
export ANTHROPIC_BASE_URL="https://api.fizzlyapi.com"

Apply changes:

source ~/.zshrc

If .zshrc config doesn’t take effect, you may need to add to ~/.zprofile:

echo 'source ~/.zshrc' >> ~/.zprofile

Supported Models

All Anthropic Claude models are supported. See Claude Code Models.

Basic Usage

# Start interactive mode
claude
 
# Start in current project directory
cd your-project
claude
 
# Run single command
claude "explain this code" -f ./myfile.py
 
# Use specific model
claude --model anthropic/claude-sonnet-4
 
# Show help
claude --help

Troubleshooting

1. “claude” command not found

Cause: Claude Code CLI is not installed or not in PATH.

Solution:

# Reinstall Claude Code
npm install -g @anthropic-ai/claude-code
 
# Or use sudo
sudo npm install -g @anthropic-ai/claude-code
 
# Check installation location
which claude

2. “ANTHROPIC_API_KEY not set” error

Cause: Environment variable or configuration file not properly set.

Solution:

First check the configuration file:

# View configuration file content
cat ~/.claude/settings.json

If the file doesn’t exist or is incorrect, follow the “Configure API” steps above.

3. Connection timeout

Cause: Network issues or firewall blocking.

Solution:

  1. Check your network connection
  2. Verify API URL is correct: https://api.fizzlyapi.com
  3. If using VPN or enterprise network, you may need to configure proxy

4. Authentication failed (401)

Cause: Invalid or expired API key.

Solution:

  1. Verify your API key in Fizzly Console
  2. Ensure the key is not deleted or disabled
  3. Re-copy and paste the key (avoid extra spaces)

5. Insufficient balance (403)

Cause: Account balance depleted.

Solution:

  1. Check balance in Fizzly Console
  2. Top up your account in BillingRecharge
  3. Retry after balance is updated

6. Security blocked

Cause: macOS Gatekeeper is blocking execution.

Solution:

  1. Open System PreferencesSecurity & Privacy
  2. Click Open Anyway to allow Claude Code to run

Need more help? Check the FAQ page.

Next Steps