Outbound Auth Proxy (Recommended)
A lightweight HTTP proxy runs on the host (outside sandbox). The sandbox's network namespace routes all outbound HTTPS through it.
- Proxy matches destination domain (e.g.
api.nvidia.com) → looks up the stored key - Proxy injects the
Authorization: Bearer xxxheader automatically - Agent makes requests with no API key at all
- Works with any agent — no code changes needed
- Can also log, rate-limit, and revoke access per-provider
- ~100 lines of Python using mitmproxy or httpx