SOCKS5 Config Generator
Fill in your endpoint details and get ready-to-use SOCKS5 config for curl, Python, and Node.js.
socks5://user:pass@us.buyproxy.org:1080curl --socks5-hostname us.buyproxy.org:1080 \
--proxy-user user:pass \
https://example.comimport requests
proxies = {
"http": "socks5h://user:pass@us.buyproxy.org:1080",
"https": "socks5h://user:pass@us.buyproxy.org:1080",
}
requests.get("https://example.com", proxies=proxies)const { SocksProxyAgent } = require("socks-proxy-agent");
const agent = new SocksProxyAgent(
"socks5://user:pass@us.buyproxy.org:1080"
);
fetch("https://example.com", { agent });Need SOCKS5 proxies to use with this? BuyProxy SOCKS5 proxies work on every network, billed per GB.
What the generator builds
Enter a proxy host, port, username and password and the tool writes ready-to-paste SOCKS5 configuration for curl, Python and Node.js. It runs entirely in your browser, so your credentials never leave the page.
BuyProxy lines come as host:port:username:password, and the targeting (country, city, session) is part of the username. Paste the four parts into the matching fields and the generated config keeps that targeting.
SOCKS5 or HTTP?
Use HTTP(S) proxies for ordinary web requests; almost every scraping library supports them. Use SOCKS5 when a tool only speaks SOCKS, or for traffic that isn't HTTP. With curl, socks5h:// resolves the hostname through the proxy, so DNS lookups also come from the exit location.
Questions
Are my credentials sent anywhere?
No. The config is generated in your browser; the page makes no request with the details you type.
What's the difference between socks5:// and socks5h://?
With socks5h the proxy resolves the hostname, so DNS lookups happen at the exit. With socks5 your own machine resolves it first.
Related guides
- How to Buy HTTP Proxies: HTTPS, CONNECT and Setup
How HTTP proxies carry HTTPS through CONNECT, what to check before you buy and how to configure one in curl, Python and Node. HTTP vs SOCKS5 covered.
- HTTP vs SOCKS5 Proxies: Which One Do You Need?
HTTP proxies handle only web traffic; SOCKS5 handles any TCP or UDP connection. Here is how to pick the right one for scraping, bots, or torrenting.
- How to Use Residential Proxies: A Step-by-Step Setup Guide
Working code for Python, Node.js, cURL, and Puppeteer — plus fixes for the auth errors, timeouts, and blocks that trip up first-time setups.
- Residential Proxies for Sneaker Bots: A 2026 Setup Guide
A retailer-by-retailer guide to configuring residential proxies for sneaker bots — rotation strategy, bandwidth costs, and setup for Nike, Adidas, Supreme.