{"id":28060,"library":"prime-tunnel","title":"Prime Tunnel SDK","description":"Python SDK from Prime Intellect to expose local services (e.g. Jupyter, web apps) via secure tunnels. Version 0.1.6, released monthly. Requires Python ≥3.10.","status":"active","version":"0.1.6","language":"python","source_language":"en","source_url":"https://github.com/PrimeIntellect-ai/prime-cli.git","tags":["tunnel","sdk","prime-intellect","secure-tunnel"],"install":[{"cmd":"pip install prime-tunnel","lang":"bash","label":"Latest from PyPI"}],"dependencies":[],"imports":[{"note":"Primary class to create tunnels.","symbol":"TunnelClient","correct":"from prime_tunnel import TunnelClient"}],"quickstart":{"code":"from prime_tunnel import TunnelClient\nimport os\n\nclient = TunnelClient(api_key=os.environ.get('PRIME_API_KEY', ''))\n# Expose local port 8888\ntunnel = client.create_tunnel(port=8888)\nprint(f\"Tunnel URL: {tunnel.url}\")","lang":"python","description":"Initialize a tunnel client with your Prime API key and expose a local port."},"warnings":[{"fix":"export PRIME_API_KEY='your_key_here' or use os.environ.get('PRIME_API_KEY', '')","message":"API key required for all tunnel operations. Set PRIME_API_KEY environment variable or pass it to the constructor.","severity":"gotcha","affected_versions":"*"},{"fix":"Persist the URL if needed; re-create tunnels if the URL changes.","message":"Tunnel URLs are transient; the service may assign a different URL each time.","severity":"gotcha","affected_versions":"0.1.x"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"pip uninstall prime-tunnel && pip install prime-tunnel && from prime_tunnel import TunnelClient","cause":"Installed wrong package or import path incorrect.","error":"AttributeError: module 'prime_tunnel' has no attribute 'TunnelClient'"},{"fix":"Set PRIME_API_KEY environment variable to a valid key from Prime Intellect Console.","cause":"API key missing or incorrect.","error":"prime_tunnel.exceptions.AuthenticationError: Invalid API key"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}