All posts
tutorialclaude-code

How to Use Claude Code with claudeapi.cheap (Save 50%)

Step-by-step guide to configuring Claude Code to use our discounted API proxy.

What is Claude Code?

Claude Code is Anthropic's AI coding assistant that runs directly in your terminal. It can write code, debug, manage files, and run commands.

The Problem

Claude Code uses the Anthropic API under the hood, which means every interaction costs money at official rates. Heavy users can rack up $50-100/month easily.

The Solution

By routing Claude Code through claudeapi.cheap, you pay 50% less for every interaction.

Setup (2 minutes)

Step 1: Get an API Key

Sign up at claudeapi.cheap and create an API key from the dashboard.

Step 2: Set Environment Variables

export ANTHROPIC_API_KEY="sk-cc-your-api-key"
export ANTHROPIC_BASE_URL="https://claudeapi.cheap/api/proxy"

Add these to your ~/.bashrc or ~/.zshrc for persistence.

Step 3: Run Claude Code

claude

That's it! Claude Code will now route all requests through our proxy at 50% off.

Tips

  • Use claude-sonnet-4-6 for everyday coding (best price/performance)
  • Use claude-opus-4-6 for complex refactoring or architecture decisions
  • Check your usage in the dashboard to track spending