Quick Start
Installation
Section titled “Installation”pip install asockslibOr with uv:
uv add asockslibSet your API key
Section titled “Set your API key”export ASOCKS_API_KEY="sk-your-api-key"Python — async usage
Section titled “Python — async usage”import asynciofrom asockslib import ASocksClient
async def main(): async with ASocksClient(api_key="sk-...") as client: # Check balance balance = await client.get_balance() print(f"Balance: ${balance.balance}")
# List existing proxy ports ports = await client.list_ports() for p in ports.items: print(p.proxy_url)
asyncio.run(main())CLI — quick commands
Section titled “CLI — quick commands”# Generate 10 US SOCKS5 proxiesasocks generate 10 --country US --format txt
# Interactive wizardasocks wizard
# List all your portsasocks list
# Check account balanceasocks balance
# See all available countriesasocks countriesNext steps
Section titled “Next steps”- Smart Proxy Manager — automatic rotation & healing
- CLI Reference — full command details
- API Reference — all client methods