macOS Manual Troubleshooting Guide
If you cannot run the diagnostic script, or prefer to troubleshoot Claude Code’s connectivity and authentication issues step by step manually, follow the steps below.
Preparation
Open the Terminal application.
Step 1: Check the Basic Environment
Claude Code requires the curl tool to test network connectivity.
-
Check the curl version
curl --versionExpected result: Displays curl version information (e.g.,
curl 8.x.x ...). If it fails: Install curl (macOS usually comes with it pre-installed). -
Check the shell type
echo $SHELLExpected result: Usually
/bin/zshor/bin/bash.
Step 2: Check Authentication
Claude Code authenticates using ANTHROPIC_AUTH_TOKEN.
-
Check whether the token is set
echo "${ANTHROPIC_AUTH_TOKEN:0:10}..."Expected result: Displays the first 10 characters of the token. If empty: The token is not set. Run
export ANTHROPIC_AUTH_TOKEN='your-token'and add it to~/.zshrc. -
Check for an incorrectly set API Key
echo $ANTHROPIC_API_KEYExpected result: Should be empty. Note:
claude-code.clubdoes not useANTHROPIC_API_KEY. If this variable is set, it may cause conflicts — unset it withunset ANTHROPIC_API_KEY. -
Check the Base URL (optional)
echo $ANTHROPIC_BASE_URLExpected result: Empty (default) or
https://claude-code.club/api.
Step 3: Network Connectivity Check
We need to confirm that claude-code.club is reachable.
-
DNS resolution test
host claude-code.clubExpected result: Shows
has address ...with a list of IP addresses. If it fails: Showsnot foundor times out. Check your network or DNS settings. -
TLS/SSL handshake test
echo | openssl s_client -connect claude-code.club:443 -servername claude-code.club 2>/dev/null | grep "Verify return code"Expected result:
Verify return code: 0 (ok). If it fails: Shows a non-zero code, which may indicate a certificate issue or network interception. -
API connectivity test Try making a direct API request (requires the token from Step 2 to be set).
curl -v "https://claude-code.club/api/v1/models" \ -H "x-api-key: $ANTHROPIC_AUTH_TOKEN" \ -H "anthropic-version: 2023-06-01"Expected result: HTTP status code 200. Common errors:
- 401 Unauthorized: Token is invalid or expired.
- 403 Forbidden: Token has insufficient permissions.
- Connection refused/timeout: Network is unreachable.
Step 4: Check Proxy and VPN
Proxies and VPNs are the most common causes of connectivity issues.
-
Check proxy environment variables
env | grep -i proxyExpected result: Empty if no proxy is in use. Note: If
http_proxyorhttps_proxyis set, make sure they point to the correct proxy server. Important: Ensureclaude-code.clubis in theno_proxylist, or that your proxy allows access to this domain. -
Check macOS system proxy
scutil --proxyCheck whether
HTTPEnableandHTTPSEnableare1. -
Check VPN If you are using a VPN (such as Cisco AnyConnect, GlobalProtect, etc.), try disconnecting the VPN and retrying, or contact your network administrator to confirm whether access to
claude-code.clubis permitted.
Step 5: Check Installation
Confirm that the claude command is in your PATH.
-
Find the claude binary
which claudeExpected result: Shows a path such as
/usr/local/bin/claudeor/opt/homebrew/bin/claude. If it showsclaude not found: Claude Code is not installed or not added to PATH. -
Check the PATH variable
echo $PATHConfirm that the npm or Homebrew bin directory is included.
If the steps above still do not resolve the issue, record the output of the commands above and contact technical support.