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.




When to Use
Use this skill when you need to:
- - Give AI agents internet access — No local proxy setup required, just call the API
- Web scraping and data extraction — Collect data from public websites at scale
- API integrations — Connect AI agents to external APIs without network configuration
- Research automation — Automate web research and content aggregation tasks
- Multi-region proxy needs — Access content through US, EU, or Asia proxy nodes
- Cost-effective proxy solution — Pay only $0.001 per request instead of monthly subscriptions
- Self-hosted proxy option — Run your own proxy server for maximum privacy
⚠️ Security & Privacy Notice
Please read carefully before using this service:
🔒 Privacy Risks
All requests transit through the proxy server, including:
- - Full request URLs
- All HTTP headers
- Request bodies
- Response content
DO NOT use this proxy for:
- - API keys or access tokens
- Private keys or passwords
- Personal or sensitive data
- Internal/private network endpoints
- Banking or financial credentials
💰 Trust Model & Risk Disclosure
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:
- - Only deposit amounts you are willing to risk
- Monitor your balance regularly
- Consider self-hosting for sensitive use cases
- Withdraw unused balances periodically
🏠 Self-Hosting Option
For maximum privacy and control, self-host this service:
- - Full source code available (MIT License)
- Complete data sovereignty
- No third-party visibility
- Easy deployment with Docker or pip
📋 System Requirements
Runtime Dependencies
| Component | Version | Required | Notes |
|---|
| Python | 3.10+ | ✅ | Core runtime |
| Redis |
6.0+ | ⚠️ | Required for production (multi-process safety) |
| Polygon RPC | - | ✅ | Mainnet or testnet endpoint |
Python Packages
CODEBLOCK0
Network Requirements
- - Inbound: Port 8080 (configurable via
PORT env var) - Outbound: HTTPS (443) for proxy requests
- Outbound: WebSocket (optional) for blockchain events
Optional Components
- - Nginx: For SSL termination and reverse proxy
- Docker: For containerized deployment
- Systemd: For service management on Linux
✨ Why Proxy Gateway?
| 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 |
🚀 Quick Start
1. Start with Free Trial (10 Requests)
CODEBLOCK1
2. Continue with Paid Mode
After free trial, deposit USDC to continue:
CODEBLOCK2
💰 Pricing
| 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 |
- - Currency: USDC on Polygon
- Minimum Deposit: None (top up any amount)
- Network Fees: Paid by user for deposits
🌐 API Endpoints
| Endpoint | Method | Description | Auth |
|---|
| INLINECODE1 | GET | Service info | None |
| INLINECODE2 |
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 |
🏠 Self-Hosting Guide
Why Self-Host?
| 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 |
Quick Deploy
CODEBLOCK3
Docker Deploy
CODEBLOCK4
🔒 Security Features
- - ✅ 6 Security Audits Completed by independent reviewers
- ✅ 13 P0 Vulnerabilities Fixed All critical issues resolved
- ✅ Input Validation Strict validation on all inputs (amount limits: 0 < x ≤ 1000 USDC)
- ✅ Lua Script Sandboxing Redis Lua execution with parameter validation
- ✅ Anti-Replay Protection Transaction replay attack prevention
- ✅ Atomic Deduction Balance updates are atomic
- ✅ HTTPS/TLS All communications encrypted
- ✅ Open Source Full code transparency
Security Policy: See SECURITY.md for detailed security information and vulnerability reporting.
🛡️ Best Practices
✅ DO
- - Use for public API access
- Use for web scraping public data
- Use for research automation
- Use for content aggregation
- Self-host for sensitive operations
❌ DON'T
- - Send API keys through the proxy
- Send passwords or credentials
- Access private/internal networks
- Send personal information
- Send financial data
📝 Environment Variables
Required (for self-hosting)
| Variable | Description | Example |
|---|
| INLINECODE8 | Polygon address for USDC deposits | INLINECODE9 |
| INLINECODE10 |
Admin authentication token |
random_string_16+ |
Optional
| Variable | Default | Description |
|---|
| INLINECODE12 | INLINECODE13 | Network mode (mainnet/testnet) |
| INLINECODE14 |
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.
🤝 Contributing
Contributions are welcome! Please see our contributing guidelines and submit PRs.
📄 License
MIT License - See LICENSE for details.
🆘 Support
- - Documentation: https://proxy.easky.cn
- Issues: GitHub Issues
- Email: support@proxy.easky.cn
💡 Tips
Free Trial Tips
- - Start instantly: Use
X-Client-ID header with any unique identifier to get 10 free requests without registration - Monitor usage: Check
remaining_calls in response to track free trial usage - No credit card: Free trial requires no payment information
Cost Optimization
- - Batch requests: Combine multiple data needs into fewer requests when possible
- Use caching: Cache responses locally to avoid redundant proxy calls
- Self-host for high volume: If using >1000 requests/day, self-host to eliminate per-request fees
Error Handling Best Practices
- - Always check status codes: 429 = rate limit/insufficient balance, 402 = payment required, 401 = invalid auth
- Implement retry logic: Use exponential backoff for 429 errors
- Set timeouts: Use 30-second timeout for most requests, 60+ for slow endpoints
Privacy & Security
- - Never send secrets: API keys, passwords, tokens should never pass through the proxy
- Self-host for sensitive data: Run your own instance for internal APIs or sensitive operations
- Monitor balance regularly: Check
/balance endpoint to avoid unexpected service interruptions
Development Tips
- - Test with free tier: Use free trial for development and testing
- Use consistent Client-ID: Reuse the same
X-Client-ID to maintain balance across sessions - Check regions: Call
/api/v1/regions to see available proxy locations
Troubleshooting
- - Connection refused: Verify target URL is accessible and not blocking proxy IPs
- Slow responses: Try a different proxy region closer to your target server
- Balance not updating: Blockchain confirmations may take 1-2 minutes on Polygon
Built with ❤️ for the AI Agent ecosystem
技能名称: proxy-gateway
详细描述:
代理网关
🚀 面向AI代理的安全HTTP代理 — 按次付费,无限制访问互联网。从10次免费请求开始,每次API调用仅需0.001美元。




使用场景
在以下情况下使用此技能:
- - 为AI代理提供互联网访问 — 无需本地代理设置,直接调用API
- 网页抓取与数据提取 — 大规模收集公共网站数据
- API集成 — 无需网络配置即可将AI代理连接到外部API
- 研究自动化 — 自动化网络研究和内容聚合任务
- 多区域代理需求 — 通过美国、欧盟或亚洲代理节点访问内容
- 高性价比代理方案 — 每次请求仅需0.001美元,无需月订阅
- 自托管代理选项 — 运行自己的代理服务器以获得最大隐私保护
⚠️ 安全与隐私声明
使用本服务前请仔细阅读:
🔒 隐私风险
所有请求均通过代理服务器传输,包括:
请勿通过此代理传输:
- - API密钥或访问令牌
- 私钥或密码
- 个人或敏感数据
- 内部/私有网络端点
- 银行或金融凭证
💰 信任模型与风险披露
本服务采用托管模式运营,存在以下风险:
| 风险 | 描述 | 缓解措施 |
|---|
| 托管风险 | 用户资金存放在平台控制的钱包中 | 使用小额资金,频繁提现 |
| 运营风险 |
平台运营方可能管理不善 | 开源、经过审计的代码 |
|
智能合约风险 | 支付验证依赖外部合约 | 多重签名、时间锁保护 |
|
隐私风险 | 所有请求对代理运营方可见 | 自托管以获得完全隐私 |
建议:
- - 仅存入您愿意承担风险的金额
- 定期监控余额
- 对于敏感用例考虑自托管
- 定期提取未使用的余额
🏠 自托管选项
为获得最大隐私和控制权,自托管本服务:
- - 完整源代码可用(MIT许可证)
- 完全的数据主权
- 无第三方可见性
- 通过Docker或pip轻松部署
📋 系统要求
运行时依赖
| 组件 | 版本 | 必需 | 说明 |
|---|
| Python | 3.10+ | ✅ | 核心运行时 |
| Redis |
6.0+ | ⚠️ | 生产环境必需(多进程安全) |
| Polygon RPC | - | ✅ | 主网或测试网端点 |
Python包
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
网络要求
- - 入站:端口8080(可通过PORT环境变量配置)
- 出站:HTTPS(443)用于代理请求
- 出站:WebSocket(可选)用于区块链事件
可选组件
- - Nginx:用于SSL终止和反向代理
- Docker:用于容器化部署
- Systemd:用于Linux上的服务管理
✨ 为什么选择代理网关?
| 特性 | 优势 |
|---|
| 🎁 10次免费请求 | 立即开始,无需信用卡 |
| ⚡ 零配置 |
无需本地代理设置,直接调用API |
| 💵
按次付费 | 每次请求仅需0.001美元,无订阅 |
| 🔐
安全审计 | 6次安全审计,修复13个P0漏洞 |
| 📖
开源 | MIT许可证,代码完全可审计 |
| 🌍
多区域 | 美国、欧盟、亚洲代理节点 |
| 🔗
Web3原生 | Polygon区块链,USDC支付 |
| 🏠
支持自托管 | 几分钟内部署自己的实例 |
🚀 快速开始
1. 从免费试用开始(10次请求)
python
import requests
try:
response = requests.post(
https://proxy.easky.cn/api/v1/fetch,
headers={X-Client-ID: myagent001},
json={
url: https://api.github.com/users/github,
method: GET
},
timeout=30
)
response.raiseforstatus()
data = response.json()
print(data[content]) # 响应内容
print(f剩余免费调用次数: {data[remaining_calls]})
except requests.exceptions.HTTPError as e:
if e.response.status_code == 429:
print(错误:超出速率限制或免费试用已用尽。请存入USDC以继续使用。)
elif e.response.status_code == 401:
print(错误:无效或缺失的API密钥。)
else:
print(fHTTP错误: {e})
except requests.exceptions.Timeout:
print(错误:请求超时。目标服务器可能响应较慢。)
except requests.exceptions.RequestException as e:
print(f请求失败: {e})
2. 继续使用付费模式
免费试用后,存入USDC以继续使用:
python
import requests
存入后使用您的user_id作为API密钥
headers = {X-API-Key: my
agent001}
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.raiseforstatus()
data = response.json()
print(f响应: {data[content]})
print(f剩余余额: {data.get(balance, N/A)} USDC)
except requests.exceptions.HTTPError as e:
if e.response.status_code == 402:
print(错误:余额不足。请存入更多USDC。)
elif e.response.status_code == 429:
print(错误:超出速率限制。)
else:
print(fHTTP错误: {e})
except requests.exceptions.Timeout:
print(错误:请求超时。)
except requests.exceptions.RequestException as e:
print(f请求失败: {e})
💰 定价
| 层级 | 价格 | 特性 |
|---|
| 免费试用 | 免费 | 10次请求,无需注册 |
| 按次付费 |
0.001美元/次 | 无限调用,按需付费 |
|
自托管 |
免费 | 运行自己的服务器 |
- - 货币:Polygon上的USDC
- 最低存款:无(可充值任意金额)
- 网络费用:由用户支付存款费用
🌐 API端点
GET | 健康检查 | 无 |
| /network-info | GET | 网络配置 | 无 |
| /api/v1/regions | GET | 可用代理区域 | 无 |
| /api/v1/fetch | POST | 通过代理获取任意URL | 客户端ID或API密钥 |
| /deposit-info | GET | 获取存款地址 | 无 |
| /balance | GET | 检查余额 | 客户端ID |
🏠 自托管指南
为什么自托管?
| 方面 | 托管服务 | 自托管 |
|---|
| 隐私 | 服务器可见所有请求 | 完全隐私 |
| 控制 |
平台管理 | 完全控制 |
|
成本 | 按次收费 | 仅服务器成本 |
|
信任 | 需要信任 | 无需信任 |
|
设置 | 即时 | 5分钟设置 |
快速部署
bash
1. 克隆仓库
git clone https://github.com/openclaw/proxy-gateway.git
cd proxy-gateway
#