LangChain proxy setup
LLM application framework — its loaders fetch the open web. Point it at the Eveses residential pool with the configuration below — the geo lives in the username, so nothing else in your setup has to change to move country.
proxy.eveses.com:12321 · SOCKS5 on 32325 · 199 countries · from $7.35/GB
LangChain's document loaders each hold their own HTTP client, so there is no single place to set a proxy. `WebBaseLoader` takes `requests_kwargs`; `AsyncHtmlLoader` does not, and needs the session passed in.
Configuration
from langchain_community.document_loaders import WebBaseLoader
proxy = "http://eveses_user_country-us:[email protected]:12321"
loader = WebBaseLoader(
"https://target-site.com",
requests_kwargs={"proxies": {"http": proxy, "https": proxy}, "timeout": 30},
)
docs = loader.load()Notes for LangChain
Give each agent run its own `_session-…` token if you need the same exit IP for a multi-step task.
Tool calls that hit an API rather than a page usually do not need the proxy — route only the web loaders.
Change country without touching LangChain
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mThe geo and the session live in the username, not in the host or the port. Every configuration on this page stays exactly as it is when you move country — you edit one string. 199 countries are addressable, with city and state tokens inside most of them.
FAQ
How do I set a proxy in LangChain?›
How do I choose the country LangChain exits from?›
How do I keep the same IP across requests in LangChain?›
What does this cost?›
Other integrations
Run LangChain through residential IPs
$7.35/GB at 1 GB, $2.57/GB in volume — same credentials in every tool.
Get proxies →