Skip to main content


Is there a CLI Tor HTTP client, like curl/wget but routed over the Tor network?


I want to make HTTP requests over Tor. Tor Browser is too heavy for my needs; I don't need to browse websites, I just need to make HTTP requests. I also don't want to route my entire computer's traffic over Tor. I ideally just want to be able to run a single command when I need to, that will function like curl/wget/a CLI HTTP client, except just routed over Tor (and can access onionsites as some of the services I need to make requests to are onionsites).

Does such a tool exist? I suppose I could write like a Python script for it or something but if something already exists I'll just use that.

in reply to communism

You can use curl itself, just set a SOCKS5 proxy with --socks5. Simply point it to the address of a running tor instance. So on arch linux for example, install the tor package, start the systemd service and use localhost:9050 as the proxy.
This entry was edited (5 hours ago)
in reply to communism

Just use curl and wget with the torsocks wrapper.

Linux reshared this.

in reply to communism

oniux might be exactly what you're looking for.

It was still in early development when I played with it months ago, so I'm not sure if it's ready for daily usage, but it's from the Tor Project team themselves, so I imagine it will only keep getting better.

in reply to communism

It’s not exactly a single tool, but torsocks kind of enables doing what you’re describing. The syntax would be something like torsocks curl $url
This entry was edited (4 hours ago)
in reply to communism

Even command line video downloaders such as yt-dlp & co. have an option for proxying the request over SOCKS, and the Tor daemon provides one. IIRC you'd do something like $command --proxy socks5://127.0.0.1:9050 $url.
in reply to communism

Tor comes packaged with torify which you can prefix any CLI command with to have it route through Tor and resolve onion sites properly.