@executor-js/motel

中文文档
0.2.5-executor.1发布于 2026/06/12MITES Module近 30 天下载 1.1万

A local OpenTelemetry ingest + TUI viewer for development, backed by SQLite. (Executor fork of @kitlangton/motel)

原始使用文档
文档目录6 节
  1. For agents: install the motel-debug skill
  2. For humans: install and run the TUI
  3. How your app connects
  4. How agents connect
  5. TUI keys
  6. Privacy note

motel

A local OpenTelemetry ingest + TUI viewer for development, backed by SQLite. Point your app's OTLP/HTTP exporters at the local motel server and debug with real runtime evidence — from a terminal, the built-in web UI, or directly from an AI coding agent.

For agents: install the motel-debug skill

motel ships a companion skill that teaches Claude Code, OpenCode, Cursor, Codex, and 40+ other agents how to debug with runtime evidence by querying motel's local OTLP store. Install it once and any future agent session in the project will know how to use it.

# Project-local (adds to .claude/skills, .agents/skills, etc.)
npx skills add kitlangton/motel --skill motel-debug

# Or globally, for every project
npx skills add kitlangton/motel --skill motel-debug -g

See the full skill at skills/motel-debug/SKILL.md.

For humans: install and run the TUI

motel is distributed on npm as @kitlangton/motel. The binary is a Bun script, so Bun must be on your PATH at runtime:

# one-off (no install)
bunx @kitlangton/motel

# or install globally
bun add -g @kitlangton/motel
motel

# npm also works (Bun still required to run it)
npm install -g @kitlangton/motel

Don't have Bun?

curl -fsSL https://bun.sh/install | bash

motel starts the local OTLP ingest server on http://127.0.0.1:27686 and launches the TUI. Press ? once inside for the keyboard cheat sheet, or c to copy paste-ready setup instructions for any Effect/OTEL app you want to trace.

Requirements: Bun v1.1 or newer.

How your app connects

Once motel is running, point your app's OTLP/HTTP exporters at these local endpoints:

http://127.0.0.1:27686/v1/traces
http://127.0.0.1:27686/v1/logs

Motel keeps everything in a machine-global local SQLite database at ${XDG_STATE_HOME:-~/.local/state}/motel/telemetry.sqlite. One managed daemon is shared across local projects. No Docker, no cloud account.

The store retains seven days of telemetry by default and targets a 1 GB active-data ceiling using bounded background batches. Recent data is preserved while the oldest completed traces and logs are removed first. Configure the policy with MOTEL_OTEL_RETENTION_HOURS, MOTEL_OTEL_MAX_DB_SIZE_MB, MOTEL_OTEL_RETENTION_TRACE_BATCH, MOTEL_OTEL_RETENTION_LOG_BATCH, and MOTEL_OTEL_RETENTION_INTERVAL_SECONDS. Existing databases created without incremental auto-vacuum are never silently rewritten at startup; deleted pages are reused, but shrinking such a historical file requires an explicit offline SQLite VACUUM chosen by the user.

How agents connect

Agents with the motel-debug skill installed will automatically use motel's HTTP API. The full OpenAPI spec is at http://127.0.0.1:27686/openapi.json — the key endpoints are:

GET /api/health                              liveness check
GET /api/services                            services reporting telemetry
GET /api/traces?service=<service>            recent traces for a service
GET /api/traces/<trace-id>                   full trace tree
GET /api/spans/<span-id>                     single span + logs
GET /api/logs?service=<service>              recent logs
GET /api/traces/search?...                   structured trace search
GET /api/logs/search?...                     structured log search
GET /api/ai/calls                            AI SDK call inspector

TUI keys

  • ? — keyboard cheat sheet
  • j / k or ↑ / ↓ — move selection
  • enter / esc — drill in / back out (trace → waterfall → span detail)
  • [ / ] — switch service
  • tab — toggle service logs
  • / — filter traces
  • s — cycle sort (recent → slowest → errors)
  • t — cycle theme
  • c — copy paste-ready setup instructions for another app
  • o — open selected trace in the browser
  • q — quit

Privacy note

motel is a local development tool, but your app can emit sensitive telemetry. Correlated logs may include secrets, tokens, or PII if your app logs them; AI call traces may include full prompt content and response text. Treat the local SQLite store as sensitive development data when pointing motel at real workloads.

版本与发布记录

@executor-js/motel 共发布 1 个版本,首次发布于 2026/06/12;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.2.5-executor.1latest2026/06/125 个月前

关于 @executor-js/motel 的常见问题

@executor-js/motel 是什么?

A local OpenTelemetry ingest + TUI viewer for development, backed by SQLite. (Executor fork of @kitlangton/motel)

如何安装 @executor-js/motel?

在项目目录运行 npm install @executor-js/motel,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 motel、motel-mcp,可以用 npx motel 直接运行。

@executor-js/motel 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/executor-js__motel 是否存在。

@executor-js/motel 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@executor-js/motel 可以商用吗?

@executor-js/motel 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@executor-js/motel 的下载量有多少?

根据 npm 官方下载统计,@executor-js/motel 在 2026/10/14 – 2026/11/12 这 30 天内被下载 11,103 次,日均约 370 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@executor-js/motel 还在维护吗?

最新版本 0.2.5-executor.1 发布于 2026/06/12(5 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2026/06/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。