Features / Sandbox

Run Python on your files.

Put a spreadsheet in Files and ask for a chart. The Sandbox runs the code and saves the result in Files.

New in LocalAI 5.0. Needs 5.0 or newer.

What it does

  • Run Python and shell commands on your files.
  • Code runs in an isolated sandbox (KVM or gVisor).
  • The sandbox has no internet by default.
  • Results are saved as files in Files.
  • Changes are listed in History, with an Undo button.
  • With the media profile (ffmpeg, sox, ImageMagick), the assistant can join, trim, mix and subtitle clips.
Good to know
  • Sandbox is an add-on. An admin installs it. It runs on Linux. The macOS package for Apple silicon is built but not released yet.
  • An admin can allow network access.
Files and Sandbox. Ask for a chart of a CSV file. The assistant runs Python in the Sandbox, saves the chart in Files, and Undo removes it. With the network off, a download fails. 55 seconds, with sound.