Overview
DuckAgent is a local-first AI agent runtime: one compact Rust binary, 30+ model providers, 30+ Gateway channels, profile-scoped identity, MCP and SKILL.md capabilities, built-in search, rewindable sessions, and a JSON sandbox you can inspect before the agent touches your machine.
You can use it directly in a terminal, or run it as a Gateway service so chat apps, webhooks, automations, and API clients can reach the same Agent Loop.
Start fast
Section titled “Start fast”# TUI: local chat, approvals, model/profile switching, and hands-on workspace work.duck
# Service: Gateway channels, API clients, webhooks, and scheduled tasks.duck gateway service startThe first run opens setup if the active profile has no usable model yet. Web search is available out of the box through Exa MCP; configure an Exa key later if you want your own quota.
Choose your path
Section titled “Choose your path”| Goal | Start with |
|---|---|
| Chat with DuckAgent locally | Getting Started |
| Install the binary | Install |
| Decide between terminal UI and background service | TUI or Service? |
| Resume or rewind a session | Session Rewind |
| Understand config files and secrets | Configuration Basics |
| Find where profiles, sessions, memories, and gateway state live | Where Files Live |
Product areas
Section titled “Product areas”- Avatar & Identity covers profiles,
SOUL.md,USER.md, avatar files, SillyTavern cards, andAGENTS.md. - Capabilities explains filesystem, process, shell, web, memory, scheduled tasks, skills, MCP, and runtime tools.
- Benchmark explains the guarded recoverable context policy, cache-friendly append-only prompt design, and the 108M raw tool token savings report.
- Gateway connects external chat channels, voice bridges, webhooks, automations, and API surfaces.
- Sandbox describes the execution boundary for files, network, environment, tools, and shell commands.
- Reference keeps exact CLI and config details.