Claude Cage Guide:
Put Claude Code in a Lightweight VM, Stop Proxy Bans & Isolate Multi-Accounts

Why 10,000+ devs starred Claude Cage (Lee-xeo/Claude-Cage): isolate Claude Code and Desktop inside a 325 MiB Debian 13 VM with a hard IP kill-switch, chained static residential proxies, and native cage claude CLI.

Updated 7 min read

On this page(4)
  1. What Makes Cage Different from a Regular VPN or Docker Container?
  2. Reality Check: 3 Things Even Cage Cannot Save
  3. 4-Step Setup: Lock a Static Residential Exit & Run cage claude
  4. Which Setup Actually Fits Your Workflow?

Nothing kills a coding sprint faster than waking up to Your account has been disabled — especially when you didn’t break a single prompt rule.

Sometimes your machine gave you away: your static proxy says Virginia, your OS clock says Berlin or Singapore, and ~/.claude still holds device IDs from an older flagged session. Even devs sitting in the US or Europe get burned when iCloud Private Relay, Cloudflare WARP, or a corporate split-tunnel (Tailscale, Cisco, Cloudflare Zero Trust) rotates their exit IP mid-session. And if you run autonomous Claude Code loops on bare metal, one hallucinated rm -rf has full access to your home folder.

That is why Claude Cage (Lee-xeo/Claude-Cage on GitHub — watch out for older lookalike repos with the same name) blew past 10,000 stars so quickly.

Instead of fighting fragile split-tunnel rules on your host OS, you put Claude inside its own lightweight Debian 13 virtual machine (≈325 MiB base image) and never let it touch your bare-metal environment.

Checked in December 2026 against Claude Cage official docs (v0.2.2), community teardowns on X, and multi-account testing with Brioi Store US Static-IP and Vietnam KYC Ultra accounts. Claude Cage is an independent MIT-licensed project unaffiliated with Anthropic or Brioi.

What Makes Cage Different from a Regular VPN or Docker Container?

  1. The proxy stays inside the cage — your host network stays untouched Cage runs its own embedded Mihomo proxy engine directly over your physical NIC. Corporate VPNs, Slack, local Docker containers, and banking tabs on your Mac or PC keep running at full native speed. Notice that Cage deliberately rejects local loopback ports like 127.0.0.1:7890 — if traffic goes through an external host client, Cage can’t verify whether your real exit silently drifted.
  2. Hard kill-switch with zero direct-ISP fallback Every DNS query inside the VM goes over encrypted DoH (1.1.1.1) through the tunnel, while public IPv6 and UDP are blocked out of the box. Cage continuously probes its exit IP in the background: if your proxy hiccups or changes country mid-run, Cage cuts VM internet access on the spot rather than failing open over your home Wi-Fi.
  3. Clean timezone sync + real filesystem containment Your host username, browser cookies, ~/.ssh keys, and old ~/.claude state are never imported into the VM, and the guest clock automatically matches your exit IP’s timezone. If Claude needs host desktop actions or Office files, cage-plugins gates every call behind explicit MCP permission prompts.
  4. You still code from your own terminal (cage claude in v0.2.2) Nobody wants to write code inside a laggy browser VNC window all day. With the host CLI installed, you stay in iTerm2, Ghostty, or PowerShell, cd into a repo, and run cage claude. Only that single project directory mounts into the VM — and you can bind multiple Pro/Max/Ultra accounts to separate static exit IPs side-by-side.

Reality Check: 3 Things Even Cage Cannot Save

As top replies on X keep reminding new users: a cage stops your computer from snitching on your account, but it can’t fix a bad IP or a burned card.

You will still lose the account if you:

  • Feed Cage a $2 “dedicated” proxy shared by 20 other buyers on different ports — one abuser on that IP gets everyone banned together.
  • Buy dirt-cheap accounts opened with flagged virtual card BINs or recycled KYC documents.
  • Click Upgrade inside a non-KYC ready account, or trigger Anthropic’s under-18 Yoti lock with grade-school homework prompts.

To vet any static IP before logging in, run through the 4 free checks in our Claude Account Disabled Fix & IP Checklist.

4-Step Setup: Lock a Static Residential Exit & Run cage claude

1. Install Cage (No Docker, WSL2, or Pre-Installed Clash Required)

Grab the desktop installer for your OS at claude-cage.com:

  • macOS 14+: Works out of the box on Apple Silicon; on Intel Macs, check that sysctl kern.hv_support prints 1.
  • Windows 10 22H2 / 11 (x64): Works on both Pro and Home — just turn on Windows Hypervisor Platform in Windows Features and reboot (no Hyper-V or WSL2 needed).
  • Linux (x86_64): Debian 12 and Ubuntu 22.04 / 24.04 with /dev/kvm access. (Windows/Linux ARM64 aren’t supported yet; the virtual disk grows dynamically up to 24 GiB.)

2. Chain Your Proxy So Your Final Static IP Never Changes

If a dedicated residential SOCKS5 proxy feels sluggish over a direct connection, use Cage v0.2.2’s Chained Proxy mode to put fast transit relays in front while locking your static IP at the end:

  1. Go to Settings → Network & Proxy → Add Source and import your fast relay subscription (Clash/Mihomo YAML or VLESS / Trojan / Hysteria2 links) if needed.
  2. Click Add Source → Manual Node, select SOCKS5 or HTTP, and paste your dedicated static residential host, port, username, and password. (Bought a US · with Static IP account on Brioi Store? Drop the bundled registration-matched US static IP right here. Own a clean VPS? You can also add it directly as an SSH node with a pinned host-key.)
  3. Under Nodes, pick Chained Proxy (or Single Node if your ISP connects cleanly straight to the static proxy). Set your fast relays as the automatic-failover first hop, and lock your static residential node as the sole Final Exit (Cage → Transit Group → Static Exit → Target). Click Apply Proxy, then Verify Exit.

Now if a transit relay drops at 2 AM, Cage fails over seamlessly behind the scenes while Anthropic sees the exact same US or Vietnam residential IP.

Boot the VM and wait for the bottom bar to confirm all network checks passed:

  1. Open Claude Accounts → Add Account → Verify Exit in Browser First, pick that account’s static exit, and launch its isolated Chromium window.
  2. Hit Check Exit IP (IP.SB) in the top bar to confirm the exact country (US or VN) and IP.
  3. Copy-paste your sign-in link inside Cage: For US Pro/Max ready accounts, right-click copy the Magic Link URL from your host inbox and paste it into this Cage browser — never click it directly in your host email app or on your phone. For Vietnam KYC Ultra accounts, sign in with email, password, and 2FA inside the verified Vietnam-exit browser.

4. Run cage claude Straight from Your Host Shell

Enable the CLI from the menu bar (Cage → Install Terminal Command… on macOS, built-in on Windows full installer, or npm install -g claude-cage on Node 20+):

# Wake the VM in the background and confirm Claude Code auth
cage login

# Mount ONLY this repo folder and launch sandboxed Claude Code
cd ~/Projects/my-service
cage claude

Running multiple subscriptions to dodge 5-hour caps? Name your account cards (for example usmax and vnultra) and run cage usmax or cage vnultra per terminal tab — each session stays locked to its own credentials and static exit IP. Just commit to Git regularly, since edits inside the shared project directory write straight back to your host repo.

Which Setup Actually Fits Your Workflow?

Setup Host VPN / Local Apps Ban Resistance Best For
Bare-metal OS System Proxy Untouched, but exposes 127.0.0.1 flags Terrible Nobody — fastest path to a ban
Bare-metal Global VPN / TUN Breaks corporate VPNs, banking & local ports Moderate (watch out for WARP / Private Relay) Single-account users without split-tunnel conflicts
Claude Cage + US Static-IP Ready Account 100% untouched Strong (same US IP from signup to daily CLI + kill-switch) Solo devs wanting claude.ai Web + Desktop + safe Claude Code
Claude Cage + Vietnam Real-Person KYC Ultra 100% untouched Very strong (physical card + KYC lifts temporary 5h caps) Heavy all-day coders blowing past $100 Max quotas
Skip VMs: Native CLI + Brioi API (CC Switch) 100% untouched (direct HTTPS) 0% ban risk (token billing, no account score) 8 GB RAM laptops, ARM64 Win/Linux, 2+ dev teams, or CI pipelines

If you want flat-rate official subscription value without hunting down residential proxies yourself, pairing Claude Cage with a registration-matched US Static-IP Pro/Max account (or a Vietnam Real-Person KYC Ultra $200 account) gives you a clean end-to-end setup. Compare the account tiers in How to Choose a Claude Account: Non-KYC vs Static IP vs Real-Person KYC.

And if your laptop is tight on RAM, you share across a team, or you simply refuse to babysit proxies and VMs just to write code, skip the cage altogether — plug native Claude Code into Brioi API via CC Switch, pay per token at ≈10–50% of official rates, and keep shipping with zero ban risk.

Drop Straight into Cage: US Static-IP Accounts & KYC Ultra

Claude Pro and Max offer a bundled registration-matched US Static IP ready for Cage's Manual Node exit; heavy builders can grab Vietnam Real-Person KYC Ultra ($200). Pay with USDT (TRC20/BEP20/Solana) or Alipay.

Check Claude Stock & Pricing →

No VM, No Proxy, Zero Bans: Claude Code via Brioi API

Save 24 GiB of disk and skip 5-hour/weekly limits. Connect native Claude Code in 3 steps with CC Switch — built for teams or instant backup.

Read the 3-Step API Setup Guide →