Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Duragent — A durable, self-contained runtime for AI agents.

Sessions survive crashes. Agents are just files. One binary, zero dependencies.

Use it as a personal AI assistant, or as the foundation for agent-powered products.

Why Duragent?

What you getHow
Sessions that survive crashesAppend-only event log, attach/detach like tmux
Agents you can read and versionYAML + Markdown — no code required
State you can inspectJust files on disk — cat, grep, git diff
Deploy anywhereSingle binary, ~10MB, no Python/Node/Docker
Your choice of partsSwap LLM providers, gateways, and storage backends or bring your own

Features

  • Durable sessions — crash, restart, reconnect; your conversation survives
  • Portable agent format — define agents in YAML + Markdown; inspect, version, and share them
  • Memory — agents recall past conversations, remember experiences, and reflect on long-term knowledge
  • Tools — bash execution, CLI tools, web search/fetch, scheduled tasks, and background processes, with configurable approval policies
  • Skills — modular capabilities defined as Markdown files (Agent Skills standard)
  • Context management — token budgeting, history truncation, and priority-based context rendering
  • Multiple LLM providers — Anthropic, OpenAI, OpenRouter, Ollama
  • Platform gateways — Telegram and Discord via subprocess plugins; group chat with mention gating and debouncing
  • HTTP API — REST endpoints with SSE streaming
  • Operational toolingduragent doctor for diagnostics, duragent upgrade for self-update

Modular by Design

ComponentDefaultSwappable
GatewaysCLI, HTTP, SSE, Telegram, DiscordAny platform via gateway plugins
LLMOpenRouterAnthropic, OpenAI, Ollama, or any provider
SandboxTrust modebubblewrap, Docker (planned)
StorageFilesystemPostgres, S3 (planned)