Skip to content

Claude Code Domain Routing Guide

Claude

If you can sign in to Claude but prompts time out in the terminal, open your proxy log and search for api.anthropic.com. Browser sign-in and model requests use different hosts and may match different routing rules.

This guide covers direct connections to Anthropic through SSNLY. If you use Amazon Bedrock, Google Cloud, or an enterprise gateway, model requests go to your provider’s endpoint. Official Claude Code network requirements

Which domains handle sign-in, prompts, and updates?

FunctionDomainsWhen to check
Model requestsapi.anthropic.comSign-in works, but prompts fail
Claude account sign-inclaude.ai, claude.comThe browser sign-in or redirect fails
Console sign-in, token exchange, and refreshplatform.claude.comBrowser authorization succeeds, but the terminal session or token refresh fails
Enterprise single sign-onsso.claude.comYour organization uses SSO
Browser verificationhcaptcha.com and its subdomainsSign-in reports that the browser could not be verified
Native installation and updatesdownloads.claude.aiInstallation or automatic updates fail
Claude-hosted MCP connectorsmcp-proxy.anthropic.comYou use a hosted connector
Content and extensionsbridge.claudeusercontent.com, *.frame.claudeusercontent.comYou use Claude in Chrome or read applicable content

In a client that supports suffix matching, DOMAIN-SUFFIX,anthropic.com covers api.anthropic.com, cdn.anthropic.com, and mcp-proxy.anthropic.com. A suffix rule for claude.com likewise covers platform.claude.com and sso.claude.com. If your client accepts exact hostnames only, enter each host you use. Official hostname list

Additional website and third-party domains

The original routing list also includes the entries below. For terminal-only API use, start with authentication and model requests. Add a host when a feature you use fails and the hostname appears in your log.

Use caseDomains or keywords from the original list
Short links, MCP, and user contentclau.de, claudemcpclient.com, claudemcpcontent.com, claudeusercontent.com
CDNs and static website assetscdn.anthropic.com, anthropic.com.cdn.cloudflare.net, servd-anthropic-website.b-cdn.net
Other site entry pointsmcp.anthropic.com, console.anthropic.com, workbench.anthropic.com
Authentication and blog contentanthropic.auth0.com, anthropic-com.ghost.io
Identity verification pages, maps, and notificationswithpersona.com, maps.googleapis.com, frompersona.com
Error monitoring, feature flags, and telemetrysentry.io, statsigapi.net, browser-intake-us5-datadoghq.com
Support widgets and website analyticsintercom.io, intercomcdn.com, cdn.usefathom.com
Broad keywords in the original listdatadog, sentry, sift

Pay attention to the hyphen in browser-intake-us5-datadoghq.com. A suffix rule for datadoghq.com will miss this host. Use its full name for an exact match. Anthropic also lists http-intake.logs.us5.datadoghq.com. Both endpoints serve optional telemetry. An exact hostname limits the rule to the intended service, while a keyword can capture other applications’ traffic. Claude Code network requirements

IP ranges and ASN fallback

When the client sees only a destination IP, you can add IP rules after the domain rules. For requests from your computer to Anthropic, use the ranges Anthropic labels Inbound IP addresses. “Inbound” describes the direction from Anthropic’s perspective.

TypeValuePurpose
IPv4160.79.104.0/23Published inbound range
IPv4153.61.224.0/22Additional published inbound range
IPv62607:6bc0::/48Published inbound range
ASNAS399358Anthropic’s registered autonomous system, broader than its API ingress ranges

The 160.79.104.0/21 block in the original list appears in Anthropic’s outbound table, which covers requests Anthropic makes to external services. The original IPv6 /32 is also broader than the published /48 for incoming API traffic. The examples below use the published inbound ranges. Anthropic IP addresses · ARIN registration

Four copyable rule formats

These examples cover common Anthropic domains, browser verification, and the optional official telemetry endpoints. Formats with IP matching also include the inbound API ranges. Assign the rule set to your actual SSNLY outbound group and place it before general routing rules.

1. Plain domain list

Use this format for a client that accepts one hostname per line. Common hosts are listed explicitly for exact matching. Browser verification can also use subdomains of hcaptcha.com. Enable suffix matching for that domain if your client supports it.

anthropic.com
api.anthropic.com
claude.ai
claude.com
platform.claude.com
sso.claude.com
hcaptcha.com
downloads.claude.ai
mcp-proxy.anthropic.com
bridge.claudeusercontent.com
claudeusercontent.com
claudemcpcontent.com
browser-intake-us5-datadoghq.com
http-intake.logs.us5.datadoghq.com

2. Text rule set with type prefixes

DOMAIN matches one hostname. DOMAIN-SUFFIX matches a domain and its subdomains. Import these entries as a rule set, then assign an outbound policy. no-resolve lets the client skip a DNS lookup solely for evaluating a destination IP rule. Mihomo routing rules

DOMAIN-SUFFIX,anthropic.com
DOMAIN-SUFFIX,claude.ai
DOMAIN-SUFFIX,claude.com
DOMAIN-SUFFIX,hcaptcha.com
DOMAIN-SUFFIX,claudeusercontent.com
DOMAIN-SUFFIX,claudemcpcontent.com
DOMAIN,browser-intake-us5-datadoghq.com
DOMAIN,http-intake.logs.us5.datadoghq.com
IP-CIDR,160.79.104.0/23,no-resolve
IP-CIDR,153.61.224.0/22,no-resolve
IP-CIDR6,2607:6bc0::/48,no-resolve

3. Mihomo YAML provider

Save this as a rule provider file and load it with behavior: classical. For a provider named claude and an outbound group named SSNLY, reference it as RULE-SET,claude,SSNLY in your main rules list. Use the names from your own configuration. Mihomo rule providers

payload:
  - DOMAIN-SUFFIX,anthropic.com
  - DOMAIN-SUFFIX,claude.ai
  - DOMAIN-SUFFIX,claude.com
  - DOMAIN-SUFFIX,hcaptcha.com
  - DOMAIN-SUFFIX,claudeusercontent.com
  - DOMAIN-SUFFIX,claudemcpcontent.com
  - DOMAIN,browser-intake-us5-datadoghq.com
  - DOMAIN,http-intake.logs.us5.datadoghq.com
  - IP-CIDR,160.79.104.0/23,no-resolve
  - IP-CIDR,153.61.224.0/22,no-resolve
  - IP-CIDR6,2607:6bc0::/48,no-resolve

4. sing-box JSON rule set

This is a standalone source rule set. Load it, then assign the matching traffic to your SSNLY outbound in your route configuration. sing-box rule-set format

{
  "version": 2,
  "rules": [
    {
      "domain_suffix": [
        "anthropic.com",
        "claude.ai",
        "claude.com",
        "hcaptcha.com",
        "claudeusercontent.com",
        "claudemcpcontent.com"
      ],
      "domain": [
        "browser-intake-us5-datadoghq.com",
        "http-intake.logs.us5.datadoghq.com"
      ]
    },
    {
      "ip_cidr": [
        "160.79.104.0/23",
        "153.61.224.0/22",
        "2607:6bc0::/48"
      ]
    }
  ]
}

Category rules, keywords, and NTP

The original list includes geosite:anthropic, keyword:datadog, keyword:sentry, keyword:sift, and geosite:category-ntp. Support depends on the client and its rule database. Third-party keywords can match components used by unrelated websites. The NTP category can affect time synchronization across the device.

NTP synchronizes clocks to UTC. The operating system determines the displayed time zone. Changing the route to a time server does not change the device’s time zone. A browser WebRTC test also cannot verify the route used by system NTP or a terminal request. NTP specification

Verify the result

  1. Open the proxy log and send a short prompt from Claude Code.
  2. Search for api.anthropic.com. Check the matched rule and outbound connection. For a direct Anthropic session, this shows how the model request was routed.
  3. If only sign-in fails, repeat sign-in and check claude.ai, claude.com, and platform.claude.com.
  4. If only an update, connector, or website component fails, repeat that action and look for the exact hostname.
  5. For browser-side checks, use Claude IP Check, Route Test, DNS Test, WebRTC Test, or Global Ping Test.

Related guides: A Guide to Using Claude Code Reliably · Troubleshooting IPv6

Still have questions?Ask us about this article
Contact support

Related articles

Everything in Claude