Self-contained LLM agent runtime with a kernel-enforced sandbox, available as a CLI, desktop app, IM bot and HTTP server.
At a Glance
GAL binaries distributed free of charge under Apache License 2.0 per the release README; users bring their own model provider API key (external cost).
Engagement
Available On
Listed Dec 2026
About GAL
GAL (General Agent Loop & Executor) is an agent runtime distributed as a single self-contained binary for Linux, macOS and Windows. You describe a task in plain language, and it reads files, edits them, runs commands and checks its own work. It is available as a terminal app, a desktop app, a browser UI, and an IM/HTTP server. The latest release listed is v1.10.0.
What It Is
GAL is a local LLM agent runtime. The CLI/server binary (gal) and the native desktop binary (galw) are Go applications that the project says need no Python, Node or Docker. gal init configures a model provider, gal chat opens the terminal agent, and gal serve exposes the same agent over Feishu, DingTalk, Slack and an OpenAI-compatible HTTP API. All front ends share the same engine and the session files in ~/.gal/sessions/.
Sandbox and Safety Model
Safe mode uses a kernel-enforced sandbox on each OS: Linux mount namespaces with OverlayFS, a macOS Seatbelt profile, and a Windows restricted token (WRITE_RESTRICTED). The working directory is writable, while credentials are hidden and ~/.gal is blocked. /sudo lifts restrictions for exactly one turn. The documentation describes nine layers of defense, including credential isolation, hook policy gates, privilege delegation for sub-agents, and an on-by-default SQLite audit log that the agent cannot read.
Long Runs, Models and Extensibility
The model decides what to summarize during context compression, supporting very long sessions, with limits such as max_rounds and context_limit set in gal.yaml. Error-loop detection, backoff and per-round persistence support unattended work, and built-in one-shot, interval and cron timers keep tasks running. Any OpenAI-compatible or Anthropic endpoint works, with a preset catalog of 45+ to 50 providers. Skills (SKILL.md plus scripts) become tools, MCP servers can be connected, and sub-agents can run locally or on remote hosts.
Desktop and Local Knowledge Base
The desktop app offers streaming answers, collapsible tool cards, up to three split panes, nine languages and eight themes. A local knowledge base indexes PDF, Office, HTML, Markdown, CSV and text with BM25 and optional semantic search, without uploading to the cloud.
Collections
Popular collections
- Frameworks
Collection by @joemseifi
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
- Let Your Agents Talk to Each Other
Collection by @leftchannel
- See What Your Agent Is Doing remix
Collection by @joemseifi
Add GAL to one of your collections.
Community Discussions
Be the first to start a conversation about GAL
Share your experience with GAL, ask questions, or help others learn from your insights.
Pricing
Free
GAL binaries distributed free of charge under Apache License 2.0 per the release README; users bring their own model provider API key (external cost).
- CLI (gal), Desktop (galw) and IM/HTTP server (gal serve)
- Kernel-enforced sandbox on Linux, macOS and Windows
- Bring your own model: 50 vendors built in, any OpenAI-compatible or Anthropic endpoint
- Binaries released under Apache License 2.0 (README); GitHub repository metadata lists no license
Capabilities
Key Features
- Kernel-enforced sandbox on Linux, macOS and Windows
- CLI, desktop app, browser UI and IM/HTTP server from the same engine
- OpenAI-compatible HTTP API via gal serve
- Model-driven context compression for long sessions
- Bring your own model with 45+ provider presets
- Skills via SKILL.md and MCP server support
- Parallel and remote sub-agents
- One-shot, interval and cron timers
- Audit log in SQLite
- Local knowledge base with BM25 and optional semantic search
- Session secret vault
- Hooks for deny/confirm policies
- Session export/import and shared sessions
- /sudo one-turn privilege bypass
- Pipe and one-shot modes for CI
