ENยทESยทDEยทPTยทFR
โŒ˜K

AIdaemon

A personal AI agent that runs as a daemon. Always on, always learning. Chat from Telegram, extend with MCP, powered by any LLM.

aidaemon is a self-hosted AI agent written in Rust that runs as a background service on your machine. It connects to any OpenAI-compatible LLM provider, communicates via Telegram, Slack, or Discord, and can execute tools, manage its own configuration, remember facts, browse the web, and spawn sub-agents โ€” all autonomously.

Key Features

  • Daemon architecture โ€” runs as systemd/launchd service, always available
  • Multi-channel โ€” chat via Telegram, Slack, or Discord, multi-user access control
  • Agentic tool use โ€” autonomous multi-step reasoning with up to 10 iterations
  • MCP integration โ€” extend with any Model Context Protocol server
  • Persistent memory โ€” SQLite-backed history with semantic search via embeddings
  • Multi-model routing โ€” automatic Fast/Primary/Smart tier selection
  • Email triggers โ€” IMAP IDLE monitoring for inbox notifications
  • Command approval โ€” interactive Telegram approval for shell commands
  • Skills system โ€” dynamic prompt enhancement via markdown files
  • Self-maintenance โ€” reads, updates, validates, and restores its own config
  • Browser automation โ€” Chrome with persistent login sessions, screenshots, and form filling
  • Web research โ€” built-in web search (DuckDuckGo/Brave) and URL fetching
  • Sub-agent spawning โ€” recursive agent delegation for complex tasks
  • CLI agent delegation โ€” delegate to Claude, Gemini, Codex, Aider, etc.
  • Scheduled tasks โ€” cron-style recurring tasks with natural language parsing
  • File transfer โ€” send and receive files via Telegram with path security
  • Secrets management โ€” OS keychain and environment variable support
  • Token cost tracking โ€” per-model usage stats, daily budgets, /cost command
  • Event sourcing โ€” immutable event log with daily consolidation into facts and procedures
  • Goals + tasks โ€” break bigger work into trackable tasks and keep progress moving
  • Health monitoring โ€” HTTP, TCP, command, and file probes with alerting
  • Dynamic skills โ€” install from registries or auto-promote repeated procedures
  • Self-updater โ€” auto-update from GitHub releases with configurable modes
  • Discord integration โ€” slash commands, interactive approval buttons, multi-bot support
  • Command risk assessment โ€” 4-level risk scoring (Safe/Medium/High/Critical) for terminal commands
  • People intelligence โ€” a personal contact book that remembers birthdays, preferences, and relationships for you

Architecture at a Glance

architecture
Telegram โ”€โ”€โ”
Slack    โ”€โ”€โ”คโ”€โ”€> ChannelHub โ”€โ”€> Agent โ”€โ”€> LLM Provider
Discord  โ”€โ”€โ”˜         โ”‚
                     โ”œโ”€โ”€> Tools
                     โ”‚    โ”œโ”€โ”€ terminal (risk assessment)
                     โ”‚    โ”œโ”€โ”€ system info
                     โ”‚    โ”œโ”€โ”€ memory (facts)
                     โ”‚    โ”œโ”€โ”€ config manager
                     โ”‚    โ”œโ”€โ”€ web search + fetch
                     โ”‚    โ”œโ”€โ”€ browser (optional)
                     โ”‚    โ”œโ”€โ”€ file transfer
                     โ”‚    โ”œโ”€โ”€ sub-agents + CLI agents
                     โ”‚    โ”œโ”€โ”€ health probes
                     โ”‚    โ”œโ”€โ”€ manage skills
                     โ”‚    โ”œโ”€โ”€ manage people
                     โ”‚    โ”œโ”€โ”€ scheduler
                     โ”‚    โ””โ”€โ”€ MCP tools (dynamic)
                     โ”‚
                     โ”œโ”€โ”€> Events
                     โ”‚    โ”œโ”€โ”€ immutable event log
                     โ”‚    โ””โ”€โ”€ daily consolidation
                     โ”‚
                     โ”œโ”€โ”€> Goals + Tasks
                     โ”‚    โ”œโ”€โ”€ break work into tasks
                     โ”‚    โ””โ”€โ”€ track progress + retries
                     โ”‚
                     โ”œโ”€โ”€> State
                     โ”‚    โ”œโ”€โ”€ SQLite persistence
                     โ”‚    โ””โ”€โ”€ in-memory working mem
                     โ”‚
                     โ””โ”€โ”€> Facts
                          โ””โ”€โ”€ injected into system prompt

Triggers โ”€โ”€โ”€> EventBus โ”€โ”€โ”€> Agent
   โ””โ”€โ”€ IMAP IDLE

Health โ”€โ”€โ”€> GET /health (axum)

Quick Links