Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 72%   action allow   analyzed 2026-09-24 17:13 UTC by yolo in 16 tool calls, with lab detonation

Summary

Install hook rebuilds node-pty and checks for tmux — standard for a terminal app. No unexpected network egress or credential exfiltration in the lab. The package reads OAuth tokens from ~/.claude/settings.json, ~/.codex/auth.json, and similar agent config files, but only to call the respective provider's own quota/usage endpoints (e.g. https://api.anthropic.com/api/oauth/usage). Behavior matches the stated purpose.

Intent

A web-based terminal application. It discovers OAuth tokens from agent CLI config files (~/.claude/settings.json, ~/.codex/auth.json, etc.) to display per-provider usage quotas via the providers' own APIs (e.g. api.anthropic.com).

Findings

Native module rebuild at install time info scripts/postinstall.mjs:54,161
scripts/postinstall.mjs runs node-gyp rebuild on node-pty and auto-installs tmux via system package managers. Writes a boot-check marker to ~/.termdock/.boot-check-ok.
Agent token discovery from config files info dist/server/quota/tokenDiscovery.js:16,40,105,147,229
dist/server/quota/tokenDiscovery.js reads OAuth tokens from ~/.local/share/opencode/auth.json, ~/.claude/settings.json, ~/.codex/auth.json, ~/.kimi-code/credentials/kimi-code.json, ~/.copilot/config.json, and env vars (OPENAI_API_KEY, GEMINI_API_KEY, etc.).
Token usage limited to provider quota APIs info dist/server/quota/providers/claude.js:9
Quota providers (claude.js, codex.js, copilot.js, gemini.js, grok.js, kimi.js) use discovered tokens solely to call the respective provider's own /api/oauth/usage endpoints.
Desktop clipboard read (origin-checked) info .desktop-dist/main.js:1871-1879
.desktop-dist/main.js reads clipboard images via IPC, but only from windows whose origin matches a trusted service origin.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 6. Hooks: postinstall (exit 1), require (exit 0).