Daemon agents are always-on or long-lived agents. They are used when a task should keep running beyond a single request, maintain state between events, or respond to external triggers.Documentation Index
Fetch the complete documentation index at: https://docs.charmos.io/llms.txt
Use this file to discover all available pages before exploring further.
Use Case
Use this template for agents that need persistent background execution, scheduled behavior, or long-lived state.Prerequisites
- Charm CLI.
- A daemon-capable adapter such as OpenClaw.
- Production runner configured with Fly.io daemon settings.
Configuration Surface
Document these fields:runtime.lifecycle: daemonruntime.moderuntime.adapter.typepolicies
How Daemon Runs Work
- The runner receives a daemon lifecycle request.
- The runner prepares the agent bundle and environment variables.
- A machine is created or reused in the configured Fly.io app.
- The daemon process starts and continues running until paused, restarted, or terminated.
Production Requirements
The production runner must be configured with:FLY_API_TOKENFLY_APP_NAME- optional
FLY_REGION
Run and Publish
Operational Notes
- Daemon agents can cost more than serverless agents because machines may stay alive.
- Always test pause, restart, and terminate behavior.
- Avoid hardcoded local paths.
- Keep secrets in platform-managed environment variables, not source code.
