Enable the chat sandbox

Last validated:

Aperture chat sandbox is currently in alpha.
The chat sandbox requires activation by Tailscale before you can use it. To request access, sign up using this form.

The chat sandbox gives the Aperture assistant access to an isolated Linux environment where it can execute commands, view and edit files, and share downloadable output with users during a conversation.

Prerequisites

Before you begin, ensure the following:

  • You have admin access to edit the Aperture configuration. Refer to set up admin access.
  • Users who need sandbox access can reach the chat interface, which is available by default. Refer to control model access.

Tailscale provisions and manages the infrastructure that runs the sandbox for your Aperture instance. You enable the feature through configuration. No infrastructure setup is required on your side. For more about what the sandbox does and how it works, refer to Aperture chat sandbox.

Enable the chat sandbox feature flag

Enable the chat_sandbox feature flag so that sandbox tools appear in the chat interface.

Open the Settings page of the Aperture dashboard, switch to the JSON editor, and add the chat_sandbox flag to the flags section:

{
  "flags": {
    "chat_sandbox": { "value": true }
  }
}

Save the configuration. The change takes effect after saving.

The chat_sandbox flag controls the chat assistant's sandbox tools. It is unrelated to the sandboxes configuration block, which controls the separate workstation provisioning feature.

Restrict chat access (optional)

The chat UI is available by default, so users can reach the sandbox without any extra grant. To restrict chat access, set enable_chat_ui to false in a grant for the users or groups you want to exclude:

{
  "grants": [
    {
      "src": ["group:contractors"],
      "app": {
        "tailscale.com/cap/aperture": [
          { "enable_chat_ui": false }
        ]
      }
    }
  ]
}

Replace the src value with the users or groups you want to exclude. Refer to control model access for details on grant configuration.

Verify the sandbox is working

After enabling the feature flag, confirm that sandbox tools are available:

  1. Open the Aperture chat interface.
  2. Start a new conversation.
  3. Ask the assistant to run a command. For example: "What operating system is the sandbox running?".
  4. The assistant uses a tool to execute the command in the sandbox and returns the result.

If the tools do not appear, confirm that the chat_sandbox feature flag is enabled. If the tools still do not appear, contact Tailscale support, since the sandbox infrastructure for your instance is managed by Tailscale.

Disable the sandbox

To turn off the sandbox, set the chat_sandbox flag to false or remove it from the configuration:

{
  "flags": {
    "chat_sandbox": { "value": false }
  }
}

Sandbox tools stop appearing in new conversation turns immediately. Existing conversations are unaffected, and no data is lost. In-progress sandboxes continue running until their idle timeout expires.

What changes when sandbox is enabled

When the chat sandbox is active, the following capabilities become available:

  • The assistant gains five tools: command execution, file viewing, file creation, file editing, and file sharing.
  • The assistant's system instructions include guidance on using the sandbox for code execution and file generation.
  • A file download endpoint becomes active so users can download files the assistant creates during a conversation.

Next steps