tor-proxy
bash "$(ls -1dt /mnt/skills/*/tor-proxy ~/.claude/skills/synced/*/tor-proxy 2>/dev/null | head -1)/setup.sh"
It downloads Tor's expert bundle once (about 30 MB, checked against a pinned SHA-256), starts tor and waits until it can carry traffic: under a minute. Idempotent; re-run it rather than checking whether it ran. Tor keeps running in the background after the call returns.
Then point anything at it:
curl --proxy socks5h://127.0.0.1:9050 https://check.torproject.org/api/ip
curl --proxy http://127.0.0.1:9080 https://web.archive.org/...
- Use
socks5h://, notsocks5://. Withh, tor looks up the name: required for.onion, and it keeps lookups off the sandbox's DNS. - The HTTP port speaks only
CONNECT. curl does that forhttps://URLs. For a plainhttp://URL add-p(--proxytunnel); a client that sends plain proxy requests won't work with it. - Python:
requestswithproxies={"https": "socks5h://127.0.0.1:9050"}(needsPySocks), or PySocks'sockshandler.SocksiPyHandlerfor urllib. - A browser: the web-browser skill's
pinchtab-proxy start --proxy socks5://127.0.0.1:9050, a second browser behind Tor that leaves the mainpinchtabdirect.
| Command | Does |
|---|---|
tor-proxy status [--check] |
running and bootstrapped? --check asks check.torproject.org |
tor-proxy newnym |
new circuits, so new connections leave from another exit |
tor-proxy stop |
stops tor |
What to expect
- Speed: about 30-90 KB/s here. A 1 MB page takes 10-20 s, so set timeouts of a minute or more.
- Exits get blocked. Cloudflare, DataDome, Akamai and others challenge or refuse Tor
exits. Try
newnymonce; if the site still refuses, Tor is the wrong tool. - archive.today: over a Tor exit, HTTPS to archive.ph hangs, though plain HTTP and
its onion address work. The archive-today skill handles this with
--tor. - It's a proxy, not anonymity. Nothing else in the sandbox is configured for privacy.
Behind an egress proxy (cloud Claude Code, Cowork), tor reaches the network through Tor Browser's meek bridge, which looks like HTTPS to a CDN; plain Tor relays are unreachable there. In the claude.ai chat sandbox, which intercepts all HTTPS, this is untested and probably fails.
If start fails, it prints the end of tor's log; the full log is
~/.cache/tor-proxy/tor.log.