Swain — AI skill for Claude Code
Local-first, self-hosted observability for AI agents: fleet view, multi-agent timelines and every command each agent ran.
How to install Swain
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kyou0x/swain and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Swain does
Local-first, self-hosted observability for AI agents: fleet view, multi-agent timelines and every command each agent ran. OpenTelemetry native, zero runtime dependencies.
Alternatives in AI
- Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
README
Swain
Local-first, self-hosted observability for AI agents.
See every agent in your fleet, every command it ran, and which agent ran it, on one timeline.
Swain records what AI agents actually did — model calls, tool calls, shell commands, results, tokens and errors — and turns it into a fleet view, per-run timelines and plain-language explanations. It runs entirely on your machine: no account, no cloud, no telemetry, and **zero runtime dependencies**.
There are two ways to get data in:
Live ingestion (swain serve) |
Offline import (swain import) |
|
|---|---|---|
| Source | Any agent that exports OpenTelemetry over OTLP/HTTP JSON (OpenAI Agents SDK, LangGraph, CrewAI, Google ADK, Vercel AI SDK, OpenInference / OpenLLMetry instrumented apps, Claude Code telemetry) | Session files written by coding-agent CLIs: Claude Code, Codex CLI, Gemini CLI, OpenCode |
| Output | Fleet dashboard, agent and run pages served on 127.0.0.1 |
Static HTML UI and reports (HTML, Markdown, JSON) |
| Multi-agent | Agent hierarchy from trace parents, per-agent attribution, per-credential provenance | Main thread and sub-agent threads |
**Status: early (0.x).** Interfaces and storage formats may change between minor versions. Only the synthetic fixtures in `fixtures/` are exercised by the test suite; treat every third-party integration as a documented route until you have validat
Related Skills
Agent Lens
Self-hosted observability and evaluation dashboard for multi-agent systems. Instrument agents with a Python SD
Skill Se Kit
Agent-Native self-evolution for AI agent skills. Zero dependencies — the agent IS the runtime.
AI CLI Observability
Self-hosted OpenTelemetry observability stack for Codex, Claude Code, and Gemini CLI, with Grafana dashboards
Io
A tiny, self-contained LLM coding agent. One binary, 180+ providers, zero runtime dependencies.
Rius SDK TypeScript
OpenTelemetry-native agent observability: trace every LLM call, tool call and agent step, with cost per call,
Langfuse
🪢 Open source AI engineering platform: AI Gateway, agent observability, evals, and prompt/skill management, b
Related Agents
Squad DevOps
Operate as the squad's DevOps Engineer — containers, CI/CD, IaC, cloud and self-hosted delivery, proxies and T
CLI Mr Reviewer
Revisor de MR/PR via glab (GitLab) ou gh (GitHub) com análise de regressões, segurança e impacto baseada em ev
ZeroClaw Android
Run AI agents 24/7 on your Android phone. Native Rust core, 25+ providers (OpenAI, Claude, Gemini, Groq, DeepS