daemon

Commands for running asiai monitoring and its web dashboard as background services on macOS. A background service keeps running without an open terminal.

In plain words
What is it for?
Use it to start monitoring, collect system and inference measurements, run the dashboard continuously, set intervals or ports, send webhook alerts, and inspect logs.
Why use it?
It lets monitoring start on a schedule and keeps the dashboard available, while providing commands to check status, stop services, and read logs.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/druide67/asiai/daemon
Clone the repo
git clone --depth 1 https://github.com/druide67/asiai
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00521
Opus 5 $0.00012 $0.00260
Sonnet 5 $0.00005 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 2d ago against content hash 6f8a69b62019, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

daemon scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/daemon.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

asiai daemon

Manage background services via macOS launchd LaunchAgents.

Services

Service Description Model
monitor Collects system + inference metrics at regular intervals Periodic (StartInterval)
web Runs the web dashboard as a persistent service Long-running (KeepAlive)

Usage

# Monitor daemon (default)
asiai daemon start                     # Start monitoring (every 60s)
asiai daemon start --interval 30       # Custom interval
asiai daemon start --alert-webhook URL # Enable webhook alerts

# Web dashboard service
asiai daemon start web                 # Start web on 127.0.0.1:8899
asiai daemon start web --port 9000     # Custom port
asiai daemon start web --host 0.0.0.0  # Expose on network (no auth!)

# Status (shows all services)
asiai daemon status

# Stop
asiai daemon stop                      # Stop monitor
asiai daemon stop web                  # Stop web
asiai daemon stop --all                # Stop all services

# Logs
asiai daemon logs                      # Monitor logs
asiai daemon logs web                  # Web logs
asiai daemon logs web -n 100           # Last 100 lines

How it works

Each service installs a separate launchd LaunchAgent plist in ~/Library/LaunchAgents/:

  • Monitor: runs asiai monitor --quiet at the configured interval (default: 60s). Data is stored in SQLite. If --alert-webhook is provided, alerts are POSTed on state transitions (memory pressure, thermal, engine down).
  • Web: runs asiai web --no-open as a persistent process. Automatically restarts if it crashes (KeepAlive: true, ThrottleInterval: 10s).

Both services start automatically on login (RunAtLoad: true).

Security

  • Services run at user level (no root required)
  • Web dashboard binds to 127.0.0.1 by default (localhost only)
  • A warning is displayed when using --host 0.0.0.0 — no authentication is configured
  • Logs are stored in ~/.local/share/asiai/

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 58 lines · 24 tokens per session scan A 6f8a69b62019

Subscribe to this mod's changes

daemon is a command published in the GitHub repository druide67/asiai (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 24 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.