Install OpenManus
OpenAlerts Plugin
AI agents fail silently — LLM errors, stuck sessions, token blowups — nobody knows until a user complains. OpenAlerts watches your agent in real-time and alerts you the moment something goes wrong.Install
openalerts.init before your agent runs — everything is monitored automatically from that point:
BaseAgent.run, ReActAgent.step, ToolCallAgent.execute_tool, LLM.ask_tool, LLM.ask) so every LLM call, tool execution, agent step, and error flows through the monitoring engine automatically. Cleanup runs on exit. Events are persisted to ~/.openalerts/ as JSONL.
To receive alerts on Slack, Discord, or a custom webhook, pass channels in the init config:
Alert Rules
6 rules run against every event in real-time. All thresholds and cooldowns are configurable.| Rule | Watches for | Severity | Default threshold |
|---|---|---|---|
llm-errors | LLM/agent failures in 1 min window | ERROR | 1 error |
tool-errors | Tool execution failures in 1 min window | WARN | 1 error |
agent-stuck | Agent idle too long | WARN | 2 min |
token-limit | Token limit exceeded | ERROR | - |
step-limit-warning | Agent reaches 80% of max_steps | WARN | - |
high-error-rate | Failure rate over last 20 calls | ERROR | 50% |
enabled (default true) and cooldown_seconds (default 900).
To tune rules:
"quiet": True for log-only mode (no alerts sent to channels).
Dashboard
A real-time web dashboard starts automatically at http://localhost:9464/openalerts:| Tab | What it shows |
|---|---|
| Activity | Step-by-step execution timeline with tool calls, LLM usage, costs |
| Health | Rule status, alert history, system stats |
| Debug | State snapshot for troubleshooting |
openalerts serve in a separate terminal and disable the in-process one with "dashboard": False.
Need additional help? Please reach out to us at hello@steadwing.com