WhoBuilt

What if the network was the sandbox?

Jun 1, 2026· 24 min· 7.4K views·Watch on YouTube

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.

A sandbox needs boundaries and permissions

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.

Put identity and access control on the network

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.

Aperture routes requests without giving agents provider keys

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.

Gateway logs show requests, usage, and tool calls

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.

Build permissions into policies and workflows

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

Show all 13 facts

Related talks