🧰 GAL: local AI agent as a single file, with an OS-level sandbox instead of Docker
In brief
- 🧰 GAL is a single Go binary (CLI "gal", desktop "galw") for Linux, macOS and Windows.
- 🔒 The sandbox is built into the operating system (mount namespace, Seatbelt, restricted token), no Docker.
- 🔌 Skills as SKILL.md files, MCP servers and over 45 providers can be connected.
- 📜 Apache 2.0 licence, current version per the download page: 1.9.14.
🧰 GAL ("General Agent Loop & Executor") is an agent runtime shipped as one self-contained Go binary: as a command line, a desktop app or a server for chat channels. All share the same session files under ~/.gal/sessions/, so a conversation started over SSH can continue on the desktop. Instead of Docker or a prompt for every action, GAL relies on a policy enforced by the operating system: outside the working directory, writes land only in a temporary layer. To use a model, you enter your own API key for a supported provider.
On the sandbox, per the project site and GitHub page: on Linux the program creates a private mount namespace with OverlayFS itself, so $HOME stays readable while writes go to memory; PR_SET_NO_NEW_PRIVS blocks setuid escalation. On macOS a Seatbelt profile is generated from the same policy, on Windows a restricted token limits writes to the project folder, session temp and toolchain caches. For exceptions, the /sudo command grants exactly one turn of unrestricted access. The privacy page stresses that this reduces risk but is not a guarantee of isolation; API keys sit unencrypted in gal.yaml.
Other features: the agent itself decides what to keep when compressing long sessions; an SQLite audit log records state-changing tool calls (default retention 730 days); a local knowledge base indexes PDF, Office, HTML and text with keyword search (BM25), optionally with embeddings and OCR; skills are made from a SKILL.md plus scripts; MCP servers are picked up automatically. The interface comes in nine languages.
Installation: download the archive for your platform from the download page or GitHub Releases, unpack it and run "./gal init && ./gal chat". On macOS the app is not notarised; a bundled installer clears the quarantine flag. The pages do not name the operator; per the GitHub page, the binaries are under Apache 2.0.