Aller au contenu principal

Give your agent a sandbox

A sandbox gives the agent an isolated workspace where it creates, transforms and reads files (reports, CSV, JSON…) during a conversation, with no access to your computer or your files. What it writes is kept from one message to the next, and you can open it. See Open, edit and download files your agent creates.

Before you start​

  • You need the Update agents permission.
  • Python, JavaScript and network access also need an authorization on the platform. Without it, turning them on has no effect; ask whoever operates your platform.

Steps​

  1. Open My Agents and click the agent.
  2. In Capabilities, under Sensitive capabilities, turn on Bash sandbox. The change is saved immediately.
  3. Optionally turn on:
    • Python: the agent can run Python code in the sandbox;
    • JavaScript: the agent can run JavaScript and TypeScript;
    • Network access (curl): the agent can read web addresses (GET and HEAD only).
  4. Each Python or JavaScript command, and each new address, is submitted to the user in the conversation before it happens. See Approve what an agent asks to do.

If addresses were pre-approved through the API, they are listed under Pre-approved addresses (set through the API).

Result​

You see "The agent has been successfully updated!". In conversations, the agent can now work with files; the ones it prepares for you appear as cards under its replies and in the Files panel.

If something goes wrong​

  • Python, JavaScript or network access has no effect: they aren't authorized on the platform.
  • The agent says it can't run code or reach an address on a widget or an avatar: nobody can approve requests there, so these calls fail on embedded interfaces.
  • You don't see the Bash sandbox switch: your role doesn't include Update agents.