# Claude domain list: copy-paste claude code proxy rules (with IP ranges and ASN)

> If you only write two rules for anthropic.com and claude.ai, some Claude Code connections will still go out directly. This article groups every domain, IP range and ASN that Claude / Claude Code needs routed by purpose, and explains why one missing rule makes a single session show up from two source addresses.

- Source: https://ipnet.coffee/en/news/claude-code-proxy-domain-list
- Published: 2026-11-19
- Updated: 2026-11-25
- Publisher: ipnet.coffee

Many people configure a proxy for Claude Code with just two rules: anthropic.com and claude.ai. It works most of the time, but occasionally login fails, occasionally you're asked to verify, occasionally the connection drops mid-session. The usual cause: **a domain is missing from your claude code proxy rules, so that connection goes out directly while the others go through the proxy**. From the server's point of view, one session appears from two addresses.

This article groups the domains Claude / Claude Code touches by purpose, explains why each group matters, and ends with rules you can copy directly plus a way to verify them.

## Are claude code proxy rules matched per connection or per app?

The routing engine in tools like Clash, Mihomo, sing-box and Shadowrocket only sees the target domain or IP of each individual connection. It compares them against the rules from top to bottom and stops at the first match. It has no idea whether a given connection came from Claude Code.

So "make Claude Code go through the proxy" really means: **every domain Claude Code visits has to be covered by some rule**. Miss one, and that connection falls through to the default outbound (usually DIRECT).

## What does one missing rule cost you?

This is the part worth getting right. A missing rule isn't just "some feature broke" — it actively creates contradictory signals:

- **One session, two source addresses.** The main request leaves through the proxy exit, while telemetry or CDN requests leave through your home broadband. The platform sees the same session from two addresses.
- **Login is the most sensitive moment.** The authorization request leaves from one address, the first request after login leaves from another, and all the consistency work afterwards is wasted.
- **Contradictions are harder to diagnose than "dirty".** A datacenter IP where every signal points to the same place is far easier to deal with than a residential IP with a few leaked direct connections.

So the point of this list isn't "make the features work" — it's **making sure one session has only one source**.

## Group 1: core domains (required)

Miss any one of these and the corresponding feature breaks outright:

- **anthropic.com**: parent domain for the API (api.anthropic.com), console (console.anthropic.com) and more
- **claude.ai**: the Claude web app, and the authorization page when you sign in to Claude Code with a Claude subscription
- **claude.com**: Claude's new primary domain
- **clau.de**: official short link
- **claudeusercontent.com**: user uploads, attachments, Artifacts
- **claudemcpclient.com / claudemcpcontent.com**: MCP-related traffic

All of these use **suffix matching** (DOMAIN-SUFFIX). A single anthropic.com rule covers api, console, cdn and every other current and future subdomain, so there's no need to list them one by one.

## Group 2: CDN and static assets

- **cdn.anthropic.com**: already covered by the anthropic.com suffix
- **anthropic.com.cdn.cloudflare.net**: asset host on Cloudflare
- **servd-anthropic-website.b-cdn.net**: BunnyCDN static assets

The last two need **exact matching** (DOMAIN). The real parent domain of anthropic.com.cdn.cloudflare.net is cloudflare.net, not a subdomain of anthropic.com, so a suffix rule won't catch it; and b-cdn.net is BunnyCDN's shared domain, so you certainly don't want to route all of b-cdn.net.

## Group 3: login and authentication (the most critical group)

- **anthropic.auth0.com**: OAuth service used by some login flows (common in community rule sets)
- **anthropic-com.ghost.io**: blog content on the official site

Login is the moment a session gets tied to an IP. If the authorization request leaves from one address and the first request after login leaves from another, all the "consistency" afterwards is wasted. The OAuth authorization flow is specified in [RFC 6749](https://www.rfc-editor.org/rfc/rfc6749).

## Group 4: identity verification (rare)

The community has observed that some accounts hit the following services when identity verification is triggered:

- **withpersona.com / frompersona.com**: ID document and selfie verification
- **maps.googleapis.com**: location resolution during verification

Most people will never encounter this step. But if you do, it matters more than any other connection, because verification compares the address it sees at that moment against the account record. maps.googleapis.com affects all Google Maps traffic, so weigh for yourself whether to include it.

## Group 5: telemetry and error reporting

- **sentry.io**: error reporting
- **statsigapi.net**: feature flags and experiment buckets
- **browser-intake-us5-datadoghq.com**: Datadog monitoring for the web app (exact match)
- Keywords **datadog**, **sentry**, **sift**: catch-all

Telemetry requests carry your client address too. If they go out directly while the API goes through the proxy, third parties record two sources for the same session.

Here's a spot almost everyone gets wrong: browser-intake-us5-datadoghq.com is **not** a subdomain of datadoghq.com — there's a hyphen before datadoghq, not a dot. A DOMAIN-SUFFIX,datadoghq.com rule won't match it. So either write an exact rule or use the datadog keyword as a catch-all (Datadog's regional suffixes vary by account, so a keyword rule is more robust).

**Another, easier approach**: Claude Code itself can turn off non-essential traffic. Set this environment variable before launching, and it disables auto-updates, error reporting and telemetry all at once:

```bash
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
```

That removes the terminal-side telemetry problem at the root. The web app still needs the rules above.

## Group 6: third-party widgets

- **intercom.io / intercomcdn.com**: support chat widget
- **cdn.usefathom.com**: web analytics

These don't affect the conversation itself. If you only use Claude Code and never open the web app, you can REJECT them outright; if you do open the web app, console or billing page, let them leave through the same exit as everything else.

## Group 7: IP ranges and ASN as a safety net

- **160.79.104.0/21**: Anthropic's IPv4 range (160.79.104.0 to 160.79.111.255)
- **2607:6bc0::/32**: Anthropic's IPv6 range
- **AS399358**: the autonomous system number (ASN) of Anthropic, PBC (see [ARIN's ASN overview](https://www.arin.net/resources/guide/asn/) for what an ASN is)

This is the last net. Domain rules fail in these cases: the client uses encrypted DNS, TLS handshakes use ECH so the domain can't be read, or Anthropic launches a new domain that isn't on your list yet. The connection still has a destination IP, and IP rules catch it.

You can enter AS399358 or 160.79.104.1 in [ipnet.coffee's Whois lookup](https://ipnet.coffee/en/whois) to check the ownership yourself.

Two details: IP rules need **no-resolve**, otherwise the engine may do a DNS lookup first just to match, adding latency; and ASN rules require the client to ship an ASN database — if it doesn't support them, that's fine, the two CIDRs already cover the main traffic.

## Should time zone and NTP be configured too?

Some rule sets include an NTP time server category. In practice Claude Code reads the system time and system time zone; NTP only calibrates the clock and doesn't tell anyone where you are. What actually matters: **your system time zone and language should match your exit region**. A US exit paired with Beijing time is a very obvious contradictory signal. Time zone identifiers use the naming from the [IANA time zone database](https://www.iana.org/time-zones), and you can see the result directly under "does the time zone match the IP" on the [Claude check page](https://ipnet.coffee/en/claude).

## In what order should the rules go?

The routing engine stops at the first match, so order determines the outcome. Recommended, top to bottom:

- Exact domains (DOMAIN)
- Suffix rules (DOMAIN-SUFFIX)
- Keyword rules (DOMAIN-KEYWORD)
- IP ranges and ASN (IP-CIDR / IP-ASN, with no-resolve)
- Only then broad rules like GEOIP and MATCH

Rules placed after MATCH will never take effect.

## How do I write the Clash / Mihomo rules?

Replace Claude with the name of your own proxy group; a select group with a manually chosen node is recommended:

```yaml
rules:
  - DOMAIN,servd-anthropic-website.b-cdn.net,Claude
  - DOMAIN,anthropic.com.cdn.cloudflare.net,Claude
  - DOMAIN,anthropic.auth0.com,Claude
  - DOMAIN,anthropic-com.ghost.io,Claude
  - DOMAIN,browser-intake-us5-datadoghq.com,Claude
  - DOMAIN,cdn.usefathom.com,Claude
  - DOMAIN-SUFFIX,anthropic.com,Claude
  - DOMAIN-SUFFIX,claude.ai,Claude
  - DOMAIN-SUFFIX,claude.com,Claude
  - DOMAIN-SUFFIX,clau.de,Claude
  - DOMAIN-SUFFIX,claudeusercontent.com,Claude
  - DOMAIN-SUFFIX,claudemcpclient.com,Claude
  - DOMAIN-SUFFIX,claudemcpcontent.com,Claude
  - DOMAIN-SUFFIX,withpersona.com,Claude
  - DOMAIN-SUFFIX,frompersona.com,Claude
  - DOMAIN-SUFFIX,sentry.io,Claude
  - DOMAIN-SUFFIX,statsigapi.net,Claude
  - DOMAIN-SUFFIX,intercom.io,Claude
  - DOMAIN-SUFFIX,intercomcdn.com,Claude
  - DOMAIN-KEYWORD,datadog,Claude
  - DOMAIN-KEYWORD,sentry,Claude
  - DOMAIN-KEYWORD,sift,Claude
  - IP-CIDR,160.79.104.0/21,Claude,no-resolve
  - IP-CIDR6,2607:6bc0::/32,Claude,no-resolve
  - IP-ASN,399358,Claude,no-resolve
```

Note that exact domain rules go before DOMAIN-SUFFIX. Domains like anthropic.auth0.com wouldn't be caught by the anthropic.com suffix rule anyway, but keeping exact rules up front makes it harder to go wrong when you add new domains later.

## How do I write the sing-box rules?

In sing-box this is the route.rules array — same logic, different field names:

```json
{
  "route": {
    "rules": [
      { "domain_suffix": ["anthropic.com", "claude.ai", "claude.com", "clau.de", "claudeusercontent.com", "claudemcpclient.com", "claudemcpcontent.com"], "outbound": "Claude" },
      { "domain": ["servd-anthropic-website.b-cdn.net", "anthropic.com.cdn.cloudflare.net", "anthropic.auth0.com", "anthropic-com.ghost.io", "browser-intake-us5-datadoghq.com", "cdn.usefathom.com"], "outbound": "Claude" },
      { "domain_keyword": ["datadog", "sentry", "sift"], "outbound": "Claude" },
      { "ip_cidr": ["160.79.104.0/21", "2607:6bc0::/32"], "outbound": "Claude" }
    ]
  }
}
```

sing-box's ip_cidr rules don't do DNS resolution by default, so no extra no-resolve is needed.

## How do I verify the rules actually work?

Don't stop at "Claude Code runs". Running only means the main requests got through; the rules you missed are still going out directly.

1. Open the [connectivity test](https://ipnet.coffee/en/link) and check the exit IP that Claude-related domains actually use — is it the same as your proxy node's exit?
2. Open the [IP deep score](https://ipnet.coffee/en/ip) and confirm that exit's type, ASN and DNSBL status.
3. Open the [DNS leak test](https://ipnet.coffee/en/dns) and check whether the recursive resolver location matches the exit region.
4. Open the [WebRTC test](https://ipnet.coffee/en/webrtc) and confirm no other address is leaking out over UDP.
5. Finally, run the full self-check on the [Claude check page](https://ipnet.coffee/en/claude).

The terminal and the browser are two separate paths — test them separately. For terminal-side DNS issues, see [how to check Claude Code DNS leaks](https://ipnet.coffee/en/news/claude-code-dns-leak-test); for proxy connection problems, see [the full Claude Code proxy setup guide](https://ipnet.coffee/en/news/claude-code-proxy-setup-guide).

## FAQ

### Is anthropic.com and claude.ai enough?

No. Those two cover the main requests, but telemetry (sentry, statsig, datadog), CDN (b-cdn.net, cloudflare.net) and identity verification (persona) domains fall through to the default outbound, and the same session shows up from two source addresses.

### Why doesn't browser-intake-us5-datadoghq.com match a datadoghq.com suffix rule?

Because there's a hyphen before datadoghq, not a dot — it isn't a subdomain of datadoghq.com. Either write an exact rule or use the datadog keyword as a catch-all.

### Why doesn't it work if I put the rules after MATCH?

The routing engine stops at the first match. MATCH is the fallback rule, so anything after it is never reached.

### How do I confirm it's working after configuring?

Don't just check that Claude Code runs. Use the connectivity test to see the exit IP that Claude-related domains actually use, then check the DNS resolver location and whether WebRTC leaks, and finally run the Claude check page.

### Can I just turn telemetry off?

Yes. Set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 before launching, and it disables auto-updates, error reporting and telemetry all at once. The web app still needs the rules above.
