@agent-lens/cli
v0.0.1
Published
TS-native AI Agent observability toolkit — zero-config local OTEL receiver and UI for AI agents
Maintainers
Readme
agent-lens
A TS-native observability toolkit for AI agents.
agent-lens provides a local OTLP trace receiver, timeline UI, and debugging views for agent workflows.
Monorepo packages
packages/server—@agent-lens/server(OTLP receiver + SQLite + API)packages/ui—@agent-lens/ui(React UI)packages/cli—@agent-lens/cli(CLI entrypoint)
Local development
cd ~/w/gh/jkzing/agent-lens
pnpm installRun server + UI in two terminals:
# terminal A
pnpm --filter @agent-lens/server dev
# terminal B
pnpm --filter @agent-lens/ui dev- server:
http://localhost:4318 - UI dev:
http://localhost:5173(auto-fallback to next port if occupied)
Published usage
npx @agent-lens/cli --port 4318The executable command remains
agent-lens.
CLI options:
--port <number>(default4318)--no-open
API endpoints
POST /v1/traces— OTLP traces (protobuf/json)GET /api/traces— trace summary listGET /api/traces/:traceId— spans for a traceGET /api/spans— raw span list
OpenClaw integration
In OpenClaw config:
{
"diagnostics": {
"otel": {
"endpoint": "http://localhost:4318/v1/traces"
}
}
}Then restart OpenClaw and trigger a few agent turns.
Release process
See: docs/RELEASE.md
It includes:
- version bump rules
- build/typecheck gates
pnpm packdry-run checks- npm publish order (
server→ui→cli) - GitHub Actions release workflow (
.github/workflows/release.yml)
Demo
docs/demo.png
