curl & HTTP Clients
Use any HTTP tool with Hyperproxy.
curl has first-class proxy support. Hyperproxy works out of the box.
Basic Usage
bash
Sign in with active access to insert your proxy host. This command remains a template.
curl \
-x "https://<proxy-host>:443" \
-U "proxy-abc123-u1a2b3:your-proxy-password" \
-H "Authorization: Bearer {\$OPENAI_API_KEY}" \
https://api.openai.com/v1/modelsUsing Environment Variables
Set HTTPS_PROXY and no_proxy so all curl calls (and most HTTP tools) automatically use Hyperproxy:
bash
Sign in with active access to insert your proxy host. This command remains a template.
export HTTPS_PROXY="https://proxy-abc123-u1a2b3:password@<proxy-host>:443"
export NO_PROXY="localhost,127.0.0.1"
# Now any curl call is proxied automatically
curl -H "Authorization: Bearer {\$GITHUB_PAT}" https://api.github.com/userPOST with a Body
bash
Sign in with active access to insert your proxy host. This command remains a template.
curl -X POST \
-x "https://<proxy-host>:443" \
-U "proxy-abc123-u1a2b3:your-proxy-password" \
-H "Authorization: Bearer {\$STRIPE_SECRET_KEY}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "amount=2000¤cy=usd&source=tok_visa" \
https://api.stripe.com/v1/chargesHTTPie
bash
Sign in with active access to insert your proxy host. This command remains a template.
http "--proxy=https:https://user:pass@<proxy-host>:443" \
https://api.openai.com/v1/models \
"Authorization: Bearer {\$OPENAI_API_KEY}"wget
bash
Sign in with active access to insert your proxy host. This command remains a template.
https_proxy="https://user:pass@<proxy-host>:443" \
wget -q -O - \
--header "Authorization: Bearer {\$GITHUB_PAT}" \
https://api.github.com/userInsomnia / Postman
In Insomnia: Application → Preferences → HTTP → Proxy. Set host to <proxy-host>, port 443, and toggle Require Authentication with your credential.
In Postman: Settings → Proxy → Custom Proxy Configuration. Use the same host, port, and credentials.