Remy describes a sandbox as a boundary plus permissions. He notes that agents often receive API keys or OAuth credentials inside the sandbox, so an agent may be able to use or expose the credentials that grant its access.
What if the network was the sandbox?
Speaker
Remy Guercio of Tailscale presents at AI Engineer on using network identity and permissions to sandbox AI agents, with a demo of Tailscale’s Aperture gateway.
Remy proposes using the network as part of the sandbox. Tailscale uses WireGuard connections and adds identity such as the logged-in user, synced groups, or device tags, so network access can be governed by who or what is connecting.
Remy demonstrates Aperture, an LLM gateway that holds a provider key while agent sandboxes connect using Tailscale identity. A tagged GitHub Actions runner can be granted access through the gateway without receiving a provider key of its own.
The demo shows usage by identity, including tokens, models, costs, and request details. Remy also shows logs for a tagged PR review bot, including Bash and MCP tool calls, and explains that requests routed through Aperture can be cut off at the network layer. Aperture also supports shared budgets across providers, quotas, and webhooks.
Remy says Aperture is available on Tailscale’s free plan and uses identity primitives from the open-source tsnet library. Developers can also use tsnet to build internal API endpoints or MCP servers that receive caller identity. Permissions can be configured in Aperture or in Tailscale policy files, with JSON, a visual editor, an API, and GitOps workflows supported.
Takeaways
- Keep provider credentials in a gateway so agent sandboxes do not need keys they could expose.
- Use network identity, including user and workload tags, to control which agents can reach services.
- Route model requests through a gateway when you need visibility into usage, costs, and tool calls.
- Set shared budgets and quotas across providers to manage spending by team or individual.
- Use Tailscale policy capabilities or tsnet to pass caller identity to internal services.
Mentioned in this talk
Search inside this talk
What was claimed 13
- built
“I work on our AI gateway, Aperture.”
0:13inAn AI Future Without the Lock-InYouTube Verified5 sources· Talk, Job posting· archived
- uses
“WireGuard, which Tailscale is built on”
YouTube Unverified1 source· Talk
- feature
Aperture: Uses network identity to govern model access and expose request logs, usage metrics, and costs
“It's able to see all of the identity from everything that's talking to it.”
YouTube Unverified1 source· Talk
- uses
GitHub Actions uses OIDC
“You can use something like federated OIDC from GitHub.”
YouTube Unverified1 source· Talk
- feature
Aperture: Agents connecting from a sandbox can use a tailnet tag without holding a provider API key
“The runner connecting from the sandbox has no key to accidentally exfiltrate”
YouTube Unverified1 source· Talk
- integrates with
Aperture integrates with
Claude Code
“everything Claude Code sends at the very beginning”
YouTube Unverified1 source· Talk
- integrates with
Aperture integrates with
Gemini CLI“It works across Codex, Claude Code, or Gemini CLI.”
YouTube Unverified1 source· Talk
- integrates with
“It works across Codex, Claude Code, or Gemini CLI.”
YouTube Unverified1 source· Talk










