AI agents

Proxies for AI agents

AI agents that browse the web fetch from datacenter IPs that sites block on sight — so the model gets a CAPTCHA wall instead of the page. Route the agent's HTTP tools through a residential gateway and it reads the real internet, the way a person would. Works with LangChain, browser-use and any tool built on requests or httpx.

Get 1 GB of residential data — freeon your first $10+ top-upClaim it

Connection details

proxmint · gateway
Host : Port (HTTP)gw.proxmint.com:823
Host : Port (SOCKS5)gw.proxmint.com:824
UsernamePROXY_USER
PasswordPROXY_PASS

Swap PROXY_USER / PROXY_PASS for the credentials on your dashboard. New here? Create an account to generate a key.

AI agents (LangChain) proxy example

python
# Give a LangChain agent a residential IP for its web requests.
import os

# Most Python HTTP clients (requests, httpx) honour these env vars, so
# routing the whole agent process is one block at startup.
proxy = "http://PROXY_USER:PROXY_PASS@gw.proxmint.com:823"  # add __cr.us for a country
os.environ["HTTP_PROXY"] = proxy
os.environ["HTTPS_PROXY"] = proxy

from langchain_community.utilities import TextRequestsWrapper

web = TextRequestsWrapper(headers={"User-Agent": "Mozilla/5.0"})
html = web.get("https://example.com")
print(html[:200])  # fetched from a residential IP the target trusts
python — per-tool (no env vars)
import httpx
from langchain_community.utilities import TextRequestsWrapper

# Scope the proxy to just the agent's browsing client instead of the process.
proxy = "http://PROXY_USER:PROXY_PASS@gw.proxmint.com:823"
client = httpx.Client(proxy=proxy, timeout=30)

web = TextRequestsWrapper(headers={"User-Agent": "Mozilla/5.0"})
# Point the wrapper's session at the proxied client, or pass it to your custom tool.
print(web.get("https://api.ipify.org"))  # the agent's outbound IP

Steer the exit IP from the username

append to your username
CountryPROXY_USER__cr.us
Country + cityPROXY_USER__cr.us;city.newyork
Sticky IP (30 min)PROXY_USER__sessid.abc123;sessttl.30

Tips & gotchas

  • Give each agent (or run) its own sticky session id so its IP stays consistent within a task.
  • Target the country your task needs — pricing, availability and search results are all geo-specific.
  • For headless-browser agents (browser-use, Playwright), use the Playwright setup on this site.

AI agents (LangChain), answered

Why do AI agents need residential proxies?

Agents run in cloud environments whose datacenter IPs are widely blocklisted, so web tools hit CAPTCHAs and 403s. A residential IP looks like an ordinary home visitor, so the agent actually retrieves pages instead of block screens.

Does this work with browser-use or a headless-browser agent?

Yes. For agents that drive a real browser, launch it through the proxy using our Playwright or Puppeteer setup. For agents that fetch URLs directly, the requests/httpx setup above is enough.

How do I keep an agent on one IP for a whole task?

Add a sticky session id to the username (PROXY_USER__sessid.task42;sessttl.30). The agent then keeps the same residential IP for up to 30 minutes, so multi-step tasks behind a login stay coherent.

Ready to route AI agents (LangChain) through residential IPs?

Create an account, paste the code above, and we'll add your first 1 GB of residential free on your first top-up. Pay by the GB after that — no subscription.