Works on your laptop. Blocked on your VPS.
An agent that runs around the clock on a VPS browses from a datacenter IP. Many sites score the IP's network before they look at the browser, so the same script that works on your laptop gets CAPTCHAs, 403s or a refused login from the server.
Patching the browser fingerprint does not help when the decision is made at the network layer.
| Request | From your laptop | From your VPS |
|---|---|---|
| GET reddit.com/ | 200 | 403 |
| POST linkedin.com/ | 200 | refused |
| GET reddit.com/ | 200 | CAPTCHA |
See why your agent gets blocked.
A laptop's request to a website passes a gate that reads its home network and opens. The same request from a VPS is read as a datacenter network and refused, even with a patched browser. Sent out through a home connection, the request gets through.
Your agent stays on the VPS. Only the sites you name see your home connection.
How it works
A proxy on the VPS checks each connection against your rules. Matched ones go home through the tunnel. The rest go out directly, as they do today.

Home dials out
The device at home opens a QUIC connection to your VPS and pins the server's certificate from the join code. Nothing listens at home, so you open no ports on your router.

Rules pick the domains
A rule sends a domain and its subdomains through home. The first match wins. A domain with no rule leaves from the VPS, so LLM API calls, git and SSH are untouched.

DNS resolves at home too
For a routed domain, the home device looks up the name and connects to the site itself, so the lookup does not come from the datacenter either.
Set up in two minutes
Install with the one line above on both machines, then run these four steps.
To keep both sides running across reboots, domicile service install server on the VPS and domicile service install agent at home write a systemd unit or a launchd agent.
On the VPS
Set up the server
Create the state, get a one-time join code for the home device, add your first rule and start the server.
domicile init -public-addr vps.example.com:4433domicile add homedomicile rule add reddit.com -via homedomicile serverAt home
Pair the home device
Install on a Raspberry Pi or an old laptop that stays on, then paste the join code. It dials out, so you open no ports.
domicile agent join <join-code>On the VPS
Check the exit
Confirm the device is connected and see what sites see through it.
domicile statusdomicile verifyOn the VPS
Point your agent at it
The connect command writes the proxy setting into your tool with its own credential. Requests to reddit.com now leave from home.
domicile connect playwright-mcp
Works with the tools your agent already uses
Most agent browsers already accept a proxy. domicile connect writes the setting for you, gives each tool its own credential, and -undo restores the file byte for byte.
domicile connect playwright-mcpWrites a Playwright config with the proxy and prints the claude mcp add command. Pass -file .mcp.json to update the existing @playwright/mcp entry in an MCP client file instead.
What connect changes
A Playwright config, or .mcp.json with -file
- Proxy
- 127.0.0.1:1080, on loopback by default
- Credential
- Its own, so you can revoke this tool without touching the others
- Run again
- Reuses the password; -rotate issues a new one
- Undo
- -undo restores the file byte for byte, with its original permissions, and revokes the credential
domicile connect agent-browserSets the proxy in ~/.agent-browser/config.json.
What connect changes
~/.agent-browser/config.json
- Proxy
- 127.0.0.1:1080, on loopback by default
- Credential
- Its own, so you can revoke this tool without touching the others
- Run again
- Reuses the password; -rotate issues a new one
- Undo
- -undo restores the file byte for byte, with its original permissions, and revokes the credential
domicile connect shellWrites ALL_PROXY, HTTPS_PROXY and NO_PROXY exports to a private file you source. Most CLIs pick them up.
What connect changes
A private file you source
- Proxy
- 127.0.0.1:1080, on loopback by default
- Credential
- Its own, so you can revoke this tool without touching the others
- Run again
- Reuses the password; -rotate issues a new one
- Undo
- -undo restores the file byte for byte, with its original permissions, and revokes the credential
domicile run -- node agent.jsRuns the command with the proxy in its environment, including Node's built-in fetch on Node 22.21+ or 24+.
What run changes
The command's environment
- Proxy
- 127.0.0.1:1080, on loopback by default
- Scope
- Only the command you run
- Node
- Built-in fetch picks it up on Node 22.21+ or 24+
Your agent can ask for a rule. You add it.
domicile mcp is a stdio MCP server with four tools, none of which can change routing. Through it an agent can check which exit it is on, run verify, list blocked hosts and report a site that blocked it. A report is recorded and becomes a suggested command for you to run.
claude mcp add domicile -- domicile mcpAgent calls
report_blockedlinkedin.com answered 403 on the login page, going direct from the VPS.
blocked_hostssuggestsdomicile rule add linkedin.com -via home
You decide
Run the command yourself, or leave it. Nothing changes until you do.
See what sites see
domicile verify sends requests straight through each exit and tells you what sites see: the public IP compared with the VPS's own, whether the network is listed as residential or hosting, where DNS was resolved, the exit's timezone and how long the first request took.
- 0
- every check passed
- 1
- a check failed
- 3
- verify could not run
- 5
- inconclusive: the IP or DNS comparison could not be measured
Exit codes make it a health check for cron and CI. Add -json for a machine-readable report.
home PASS ok exit ip 203.0.113.48, not the VPS's 198.51.100.12 ok network Hathway Cable (AS17488), looks residential (best-effort hint from ip-api.com) ok dns resolved on the exit side by 203.0.113.53, not the VPS's resolver in Frankfurt info timezone exit is in Asia/Kolkata; launch browsers with timezone Asia/Kolkata so it matches info tunnel first request through the exit took 184 ms$ echo $?0Safe by default
The defaults assume an agent on the VPS might misbehave, so the risky options stay off until you turn them on.

Your home network is refused by default
The home agent refuses private, loopback, link-local and cloud metadata addresses, checked after DNS resolution, so an agent on the VPS cannot use the exit to reach your router or other devices. Treat this as a backstop: for a hard boundary, run the device on a guest network or VLAN.

Fails closed
When the home exit is offline, matched traffic is refused instead of leaving from the datacenter IP by accident. A rule can opt out with -fallback-direct.

Loopback proxy, one credential per tool
The proxy listens on 127.0.0.1 and every client needs a credential. Each connected tool gets its own, so you can revoke one without touching the others.

Agents cannot change routing
The MCP server can check, verify and report. Only you can add rules.

One-time join codes
A join code works once and expires. domicile generates every secret itself and stores only hashes. domicile remove disconnects a device within a second.

No TLS interception
domicile sees the hostnames you connect to, never the page content.
Is it for you?
A good fit when
- Your agent uses your own accounts: reading pages, logging in, scheduled checks.
- The volume is low and one stable IP is enough.
- You already have a device on a residential connection that stays on. A personal home IP is often cleaner than a shared proxy pool.
Use a paid proxy instead when
- You need rotating IPs or high volume. domicile will not add rotation or pooling.
- You need IPs in countries where you have no device.
- You have no residential connection to use.
Limits worth knowing
Use your own connection for your own agents. domicile is not meant for large scale scraping, account creation or getting around a platform's rules.
- A residential IP fixes IP reputation only. Browser fingerprint, TLS fingerprint, behavior and account rate limits are separate problems.
- Your home IP becomes associated with your agent's activity, and results depend on your ISP and your IP's history.
- Hosted cloud browsers (Browserbase and similar) and Windows are not supported.
Questions
Why does my agent work on my laptop but get blocked on a VPS?
Many sites score the IP's network before they look at the browser. A VPS has a datacenter IP, so the same script that works from home gets CAPTCHAs, 403s or refused logins. Patching the browser fingerprint does not help when the decision is made at the network layer.
How do I give an AI agent on a VPS a residential IP?
Install domicile on the VPS and on a device that stays on at home, such as a Raspberry Pi or an old laptop. The home device dials out to the VPS, and a local proxy on the VPS sends only the domains you add as rules through it. Point your agent at that proxy, or run domicile connect to configure Playwright MCP, agent-browser or your shell.
Is domicile a residential proxy service?
No. It uses a connection you already have, so you get one stable IP: your own. It does not sell or pool IPs and will not add rotation. For rotating IPs, high volume or countries where you have no device, a paid proxy is still the right tool.
Which tools does it work with?
Anything that accepts a SOCKS5 or HTTP proxy. domicile connect sets up Playwright MCP, agent-browser and shell tools such as curl, Python and Go, and domicile run starts any other command with the proxy in its environment. Hosted cloud browsers such as Browserbase are not supported.
What happens when the home device goes offline?
Traffic for your ruled domains is refused, so it never leaves from the datacenter IP by accident. Everything else keeps going direct. A rule added with -fallback-direct goes direct instead.
Can the VPS reach other devices on my home network?
The home agent refuses private, loopback, link-local and cloud metadata addresses, checked after DNS resolves, and it covers the router's public address too. For a hard boundary, put the device on a guest network or VLAN, or block that user's LAN traffic with a firewall rule.
What does it cost, and what do I need?
domicile is free and open source under Apache-2.0. You need a Linux or macOS VPS with a UDP port open, and a Linux or macOS device on a residential connection, both on amd64 or arm64. You open no ports at home.
Install it on your VPS and on one device at home
curl -fsSL https://raw.githubusercontent.com/avinash-1707/domicile/main/install.sh | sh Free, Apache-2.0. Prefer Go? go install github.com/avinash-1707/domicile/cmd/domicile@latest