Install
openclaw skills install proxy-gatewaySecure HTTP Proxy for AI Agents — Give your AI agent unrestricted internet access with pay-per-use pricing. 10 free requests to start, then only $0.001 per API call. Use when you need web scraping, API integrations, data collection, or research automation. 6 security audits completed, 13 critical vulnerabilities fixed. Self-hosting supported.
openclaw skills install proxy-gateway🚀 Secure HTTP Proxy for AI Agents — Unrestricted internet access with pay-per-use pricing. Start with 10 free requests, then only $0.001 per API call.
Use this skill when you need to:
Please read carefully before using this service:
All requests transit through the proxy server, including:
DO NOT use this proxy for:
This service operates on a custodial model with the following risks:
| Risk | Description | Mitigation |
|---|---|---|
| Custody Risk | User funds are held in platform-controlled wallets | Use small amounts, withdraw frequently |
| Operator Risk | Platform operator could mismanage funds | Open source, audited code |
| Smart Contract Risk | Payment verification relies on external contracts | Multi-sig, timelock protections |
| Privacy Risk | All requests visible to proxy operator | Self-host for complete privacy |
Recommendations:
For maximum privacy and control, self-host this service:
| Component | Version | Required | Notes |
|---|---|---|---|
| Python | 3.10+ | ✅ | Core runtime |
| Redis | 6.0+ | ⚠️ | Required for production (multi-process safety) |
| Polygon RPC | - | ✅ | Mainnet or testnet endpoint |
fastapi>=0.100.0
uvicorn>=0.23.0
redis>=4.6.0
web3>=6.0.0
pydantic>=2.0.0
python-dotenv>=1.0.0
httpx>=0.24.0
PORT env var)| Feature | Benefit |
|---|---|
| 🎁 10 Free Requests | Start instantly, no credit card required |
| ⚡ Zero Configuration | No local proxy setup, just call the API |
| 💵 Pay-Per-Use | Only $0.001 per request, no subscriptions |
| 🔐 Security Audited | 6 security audits, 13 P0 vulnerabilities fixed |
| 📖 Open Source | MIT licensed, fully auditable code |
| 🌍 Multi-Region | US, EU, Asia proxy nodes |
| 🔗 Web3 Native | Polygon blockchain, USDC payments |
| 🏠 Self-Host Ready | Deploy your own instance in minutes |
import requests
try:
response = requests.post(
"https://proxy.easky.cn/api/v1/fetch",
headers={"X-Client-ID": "my_agent_001"},
json={
"url": "https://api.github.com/users/github",
"method": "GET"
},
timeout=30
)
response.raise_for_status()
data = response.json()
print(data["content"]) # Response content
print(f"Remaining free calls: {data['remaining_calls']}")
except requests.exceptions.HTTPError as e:
if e.response.status_code == 429:
print("Error: Rate limit exceeded or free trial exhausted. Please deposit USDC to continue.")
elif e.response.status_code == 401:
print("Error: Invalid or missing API key.")
else:
print(f"HTTP Error: {e}")
except requests.exceptions.Timeout:
print("Error: Request timed out. The target server may be slow.")
except requests.exceptions.RequestException as e:
print(f"Request failed: {e}")
After free trial, deposit USDC to continue:
import requests
# Use your user_id as API Key after deposit
headers = {"X-API-Key": "my_agent_001"}
try:
response = requests.post(
"https://proxy.easky.cn/api/v1/fetch",
headers=headers,
json={
"url": "https://api.example.com/data",
"method": "GET"
},
timeout=30
)
response.raise_for_status()
data = response.json()
print(f"Response: {data['content']}")
print(f"Balance remaining: {data.get('balance', 'N/A')} USDC")
except requests.exceptions.HTTPError as e:
if e.response.status_code == 402:
print("Error: Insufficient balance. Please deposit more USDC.")
elif e.response.status_code == 429:
print("Error: Rate limit exceeded.")
else:
print(f"HTTP Error: {e}")
except requests.exceptions.Timeout:
print("Error: Request timed out.")
except requests.exceptions.RequestException as e:
print(f"Request failed: {e}")
| Tier | Price | Features |
|---|---|---|
| Free Trial | FREE | 10 requests, no registration |
| Pay-Per-Use | $0.001/request | Unlimited calls, pay as you go |
| Self-Hosted | FREE | Run your own server |
| Endpoint | Method | Description | Auth |
|---|---|---|---|
/ | GET | Service info | None |
/health | GET | Health check | None |
/network-info | GET | Network configuration | None |
/api/v1/regions | GET | Available proxy regions | None |
/api/v1/fetch | POST | Fetch any URL via proxy | Client ID or API Key |
/deposit-info | GET | Get deposit address | None |
/balance | GET | Check balance | Client ID |
| Aspect | Hosted Service | Self-Hosted |
|---|---|---|
| Privacy | Server sees all requests | Complete privacy |
| Control | Platform managed | Full control |
| Cost | Per-request fees | Server costs only |
| Trust | Requires trust | Trustless |
| Setup | Instant | 5-minute setup |
# 1. Clone repository
git clone https://github.com/openclaw/proxy-gateway.git
cd proxy-gateway
# 2. Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
cp .env.example .env
# Edit .env with your settings:
# - HOSTED_WALLET: Your Polygon wallet address
# - ADMIN_TOKEN: Secure random string (16+ chars)
# 5. Start server
uvicorn app.main:app --host 0.0.0.0 --port 8080
# Build image
docker build -t proxy-gateway .
# Run container
docker run -d \
-p 8080:8080 \
-e NETWORK=mainnet \
-e HOSTED_WALLET=0x... \
-e ADMIN_TOKEN=... \
proxy-gateway
Security Policy: See SECURITY.md for detailed security information and vulnerability reporting.
| Variable | Description | Example |
|---|---|---|
HOSTED_WALLET | Polygon address for USDC deposits | 0x1234...abcd |
ADMIN_TOKEN | Admin authentication token | random_string_16+ |
| Variable | Default | Description |
|---|---|---|
NETWORK | testnet | Network mode (mainnet/testnet) |
REDIS_HOST | localhost | Redis server host |
REDIS_PORT | 6379 | Redis server port |
FREE_TRIAL_LIMIT | 10 | Free trial request limit |
COST_PER_REQUEST | 0.001 | Price per request (USDC) |
CORS_ORIGINS | * | Allowed CORS origins |
See .env.example for complete configuration template.
Contributions are welcome! Please see our contributing guidelines and submit PRs.
MIT License - See LICENSE for details.
X-Client-ID header with any unique identifier to get 10 free requests without registrationremaining_calls in response to track free trial usage/balance endpoint to avoid unexpected service interruptionsX-Client-ID to maintain balance across sessions/api/v1/regions to see available proxy locationsBuilt with ❤️ for the AI Agent ecosystem