Back to blog
SetupFebruary 15, 2026

Claude Code Setup: Windows, macOS & Linux

Complete step-by-step guide to set up Claude Code on any operating system with EcomAgent API.

Prerequisites

  • Claude Code CLI installed
  • An EcomAgent account (free trial available)
  • A generated API key from your dashboard
  • Windows Setup

    1. Open PowerShell or Command Prompt

    2. Navigate to your Claude Code config:

    notepad %USERPROFILE%\.claude\settings.json

    3. Add your EcomAgent configuration:

    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://api.ecomagent.in/",
        "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY"
      }
    }

    macOS Setup

    1. Open Terminal

    2. Edit the config file:

    nano ~/.claude/settings.json

    3. Paste the same JSON configuration as above.

    Linux Setup

    Same as macOS — use your preferred text editor to edit ~/.claude/settings.json.

    Verify It Works

    Run a quick test:

    claude "Say hello"

    If Claude responds, your setup is complete!