@dittos-loop/daemon
Local agent daemon for Dittos.Loop. It connects the Claude Code on your
machine to a Loop engine over WebSocket: the engine never runs the model — it
dispatches each turn to this daemon, which runs claude locally and streams the
result back. Run it with npx; no repo clone or npm install required.
Prerequisites
Usage
Generate a link token in the app's "链接本地 agent" panel, then run the
command it shows:
ENGINE_WS_URL="wss://dittosloop.com/api/daemon/ws?token=YOUR_TOKEN" npx -y @dittos-loop/daemon
The dot in the panel turns green once it's connected.
Model
By default the daemon points Claude Code at Kimi K2.6 (Moonshot). To use a
different model — e.g. your own Anthropic-authenticated Claude Code:
CLAUDE_CODE_MODEL=sonnet ENGINE_WS_URL="wss://…" npx -y @dittos-loop/daemon
Any non-Kimi value runs your machine's default Claude Code auth instead of the
Moonshot endpoint.
Environment
ENGINE_WS_URL | required — wss://…/api/daemon/ws?token=… from the panel |
CLAUDE_CODE_MODEL | model to run (default kimi-k2.6; e.g. sonnet) |
CLAUDE_CODE_BASE_URL / MOONSHOT_ANTHROPIC_BASE_URL | override the Anthropic-compatible base URL |