Skip to content

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.

Terminal window
# 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 start

The 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.

GoalStart with
Chat with DuckAgent locallyGetting Started
Install the binaryInstall
Decide between terminal UI and background serviceTUI or Service?
Resume or rewind a sessionSession Rewind
Understand config files and secretsConfiguration Basics
Find where profiles, sessions, memories, and gateway state liveWhere Files Live
  • Avatar & Identity covers profiles, SOUL.md, USER.md, avatar files, SillyTavern cards, and AGENTS.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.