LangChain
LangChain is a popular framework for building LLM-powered applications and agents. This guide shows how to route your LangChain requests through GoProxies, which is particularly useful for web scraping tools, search integrations, and agent workflows.
Requirements
Before getting started, ensure that:
No other VPN or proxies are active.
You have your GoProxies endpoint ready, e.g.
proxy.goproxies.com:1080Your GoProxies subuser (also called API User) username and password.
Python is installed on your machine.
Proxy Setup
LangChain picks up proxy settings from environment variables. Set these before running your application:
HTTP_PROXY=http://customer-your_username_here:your_password@proxy.goproxies.com:1080
HTTPS_PROXY=http://customer-your_username_here:your_password@proxy.goproxies.com:1080Or set them directly in your Python script before importing LangChain:
python
import os
os.environ["HTTP_PROXY"] = "http://customer-your_username_here:your_password@proxy.goproxies.com:1080"
os.environ["HTTPS_PROXY"] = "http://customer-your_username_here:your_password@proxy.goproxies.com:1080"Verify the Connection
Add a quick request to https://ip.goproxies.com in your script using LangChain's RequestsGetTool or a simple requests call — if the returned IP reflects your proxy location, you're all set.
Last updated
Was this helpful?

