Skip to main content

Installing Claude Code on a Win/Mac

Prerequisites

  1. Local Administrative Access
    1. Request it here.
  2. A Unix-Type Terminal. (Shell)
    1. Windows
      1. Powershell with WSL
    2. Macintosh
      1. Terminal with HomeBrew Package manager
  3. A JavaScript Installation
    1. Node.js with a Node Package Manager  (NPM)
  4. Access to the Claude Code Large Language Model
    1. LiteLLM GenAI Account with a user-generated Virtual Key

Setup Environmental Variables

The Claude Code program will not be able to install with university credentials if these environment variables are not in place before installation.

  1. Open Terminal
    1. Windows PowerShell
      $env: ANTHROPIC_BASE_URL = "https://litellm.cloud.osu.edu"
      $env: ANTHROPIC_AUTH_TOKEN = "sk-your-virtual-key"
      $env:ANTHROPIC_DEFAULT_OPUS_MODEL "claude-opus-4-6"
      $env:ANTHROPIC_DEFAULT_SONNET_MODEL = "claude-sonnet-4-6"
      $env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-haiku-4-5-20251001"
      $env:CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS = "1"
    2. Macintosh Terminal
      export ANTHROPIC_BASE_URL "https://litellm.cloud.osu.edu"
      export ANTHROPIC_AUTH_TOKEN "sk-your-virtual-key"
      export ANTHROPIC_DEFAULT_OPUS_MODEL "claude-opus-4-6"
      export ANTHROPIC_DEFAULT_SONNET_MODEL = "claude-sonnet-4-6"
      export ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-haiku-4-5-20251001"
      export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS = "1"

Install Claude Code

Windows

  1. Method 1: PowerShell installer (Recommended):
     irm https://claude.ai/ install.ps1 | iex
    1. Alternate Windows Methods
      1. NPM via command line (Deprecated):
        npm install -g @anthropic-ai/claude-code
      2. Custom Installer via WINGET (Untested)
        winget install Anthropic.ClaudeCode

Macintosh

  1. Method 1: Homebrew via Terminal (Recommended)
    brew install --cask claude-code
    1. Alternate Macintosh Methods
      1. CURL via Terminal (Untested)
        curl-fsSL https://claude.ai/install.sh | bash

Final Checks

Check that your ~/.claude/settings.json file includes the variables defined above.

Ensure the Claud Code Executable is in your system path

Windows 

  1. Open Terminal/PowerShell:
    SystemPropertiesAdvanced
    • Select:
      [Environment Variables] → Path → [Edit] → [New]
    • Enter Executable Location. (Your location may differ):
      %USERPROFILE%/.local/bin/
    • Select:
      [OK] → [OK] → [OK]
  2. Restart your terminal before first use.

Macintosh

  1. Open Terminal
    • export PATH="$PATH:/path/to/my/directory"
  2. Restart your terminal before first use.