Sc vpn

From Starchild-ai-agent/official-skills · View interactive version

Sc vpn is an AI agent skill from the GitHub repository Starchild-ai-agent/official-skills. Route outbound HTTP through SC-VPN Gateway to bypass region restrictions. Use when a script hits a geo block and needs to appear from a specific country (e.g. Binance 451, US-only news site, request as JP, KR exit IP).

How to use this skill

Skill file

SC-VPN Gateway

Internal VPN service for the Starchild platform. Provides exit nodes in 18 fixed countries โ€” accessible only from within the Starchild internal network. No credentials or setup needed.

โš ๏ธ When to Use

SC-VPN is a last resort, not a default. Most agent HTTP traffic already goes through sc-proxy (the platform's transparent billing proxy for paid APIs). Setting a global VPN proxy will break sc-proxy routing.

Use SC-VPN only when:

Always use per-request proxy (pass proxies= to requests.get() or -x to curl). Never set global HTTP_PROXY / HTTPS_PROXY environment variables

Available Countries

| Country | Code | Example Cities |

|---------|------|---------------|

| ๐Ÿ‡ฆ๐Ÿ‡บ Australia | au | Adelaide, Sydney, Melbourne |

| ๐Ÿ‡จ๐Ÿ‡ญ Switzerland | ch | Zรผrich |

| ๐Ÿ‡ฉ๐Ÿ‡ช Germany | de | Berlin, Frankfurt |

| ๐Ÿ‡ฏ๐Ÿ‡ต Japan | jp | Tokyo, Osaka |

| ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia | my | Kuala Lumpur |

| ๐Ÿ‡ฒ๐Ÿ‡ฝ Mexico | mx | Querรฉtaro |

| ๐Ÿ‡น๐Ÿ‡ญ Thailand | th | Bangkok |

| ๐Ÿ‡ฟ๐Ÿ‡ฆ South Africa | za | Johannesburg |

| ๐Ÿ‡ง๐Ÿ‡ท Brazil | br | Sรฃo Paulo, Fortaleza |

| ๐Ÿ‡ฆ๐Ÿ‡ท Argentina | ar | Buenos Aires |

| ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore | sg | Singapore |

| ๐Ÿ‡ญ๐Ÿ‡ฐ Hong Kong | hk | Hong Kong |

| ๐Ÿ‡ฌ๐Ÿ‡ง United Kingdom | gb | London, Manchester |

| ๐Ÿ‡ณ๐Ÿ‡ฑ Netherlands | nl | Amsterdam |

| ๐Ÿ‡ซ๐Ÿ‡ท France | fr | Paris, Marseille |

| ๐Ÿ‡ธ๐Ÿ‡ช Sweden | se | Stockholm, Malmรถ |

| ๐Ÿ‡ช๐Ÿ‡ธ Spain | es | Madrid |

| ๐Ÿ‡ฎ๐Ÿ‡น Italy | it | Milan, Rome |

Only these 18 countries. Requests for other regions are rejected (502). The specific server per country is auto-selected daily based on latency.

Quick Start

curl (per-request proxy)

# Route ONE request through Japan
curl -x "http://jp:x@sc-vpn.internal:8080" https://ifconfig.me

# Route ONE request through Brazil
curl -x "http://br:x@sc-vpn.internal:8080" https://example.com/api

Python requests (per-request proxy)

import requests

def vpn_proxy(region: str) -> dict:
    """Return proxy dict for a given region code."""
    return {
        "https": f"http://{region}:x@sc-vpn.internal:8080",
        "http":  f"http://{region}:x@sc-vpn.internal:8080",
    }

# Only the geo-blocked request goes through VPN
resp = requests.get("https://geo-restricted-api.example.com", proxies=vpn_proxy("jp"))

# All other requests go through normal sc-proxy routing (no proxies= arg)
resp2 = requests.get("https://api.coingecko.com/...")

โŒ Do NOT do this

# WRONG โ€” may influence other requests
export HTTP_PROXY="http://jp:x@sc-vpn.internal:8080"
export HTTPS_PROXY="http://jp:x@sc-vpn.internal:8080"

Region Selection

The username in the proxy URL selects the exit country:

| Input | Resolves To |

|-------|-------------|

| jp or japan | Japan |

| au or australia | Australia |

| de or germany | Germany |

| ch or switzerland | Switzerland |

| th or thailand | Thailand |

| br or brazil | Brazil |

| ar or argentina | Argentina |

| mx or mexico | Mexico |

| my or malaysia | Malaysia |

| za or south_africa | South Africa |

| sg or singapore | Singapore |

| hk or hong_kong | Hong Kong |

| gb or uk or united_kingdom | United Kingdom |

| nl or netherlands | Netherlands |

| fr or france | France |

| se or sweden | Sweden |

| es or spain | Spain |

| it or italy | Italy |

REST API

Base URL: http://sc-vpn.internal:8081

| Endpoint | Description |

|----------|-------------|

| GET /api/tunnels | Status of all 18 tunnels (region, latency, uptime) |

| GET /api/status | Gateway overview |

| GET /api/usage | Your traffic stats (identified by source IP) |

| GET /health | Health check |

Rate Limits

| Limit | Default |

|-------|---------|

| Monthly quota per client | 500 GB |

| Max concurrent connections | 50 |

| Requests per second | 100 |

Clients identified by source IP. No API keys needed โ€” internal network only.

Verify It Works

# Your real exit IP
curl https://ifconfig.me

# VPN exit IP (should be different, from Japan)
curl -x "http://jp:x@sc-vpn.internal:8080" https://ifconfig.me

Troubleshooting

| Problem | Fix |

|---------|-----|

| 502 Bad Gateway: Unknown region | Use one of: au, ch, de, jp, my, mx, th, za, br, ar, sg, hk, gb, nl, fr, se, es, it |

| 502 Bad Gateway: Tunnel not active | Gateway may need restart โ€” check /api/status |

| 400 Bad Request: No region specified | Add username to proxy URL: http://jp:x@sc-vpn.internal:8080 |

| DNS failure for sc-vpn.internal | Only accessible from Starchild internal network |

| Other requests broken after using VPN | You set global HTTP_PROXY โ€” unset it immediately |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.