Lanely

How Lanely works

One program with two jobs. The hub holds the board, the MCP endpoint and the database. A runner sits on each machine and does the real work: git, agents, guardrails and deploys. The hub never runs an agent itself.

hub runner / waiting hard block

Starting with one machine

Run lanely up on your computer. It starts the hub (the board, the MCP endpoint and the database, on port 7420) and a runner called "main" on the same computer, so one machine uses the same code path as ten.

Claude app voice / chat Board browser or phone Cloudflare tunnel (optional) your domain MCP login Your computer lanely hub :7420, /mcp, board tunnel runner "main" hook on 127.0.0.1:7421 dials out (WS) Claude Code one per task starts your projects one worktree per task worktree + branch deploy hook your own script optional accept
The hub works on its own on your network. To reach it from your phone anywhere, put it behind a tunnel such as Cloudflare Tunnel; runners and AI apps then use that address.

More machines

Any other PC, laptop or server only runs the runner. You pair it once with a code from the board. After that it connects out to the hub, the same way GitHub's self-hosted runners do, so no router or firewall changes are needed.

Machines → Add machine code ABCD-EFGH valid 10 min, used once hub /runner/ws, board, /mcp Queued waiting for dell starts when it connects pair offline No open ports: every connection starts below this line dials out (WSS) dials out (WSS) runner "main" Windows 11 claude, codex online runner "dell" Omarchy (Arch), Intel codex, claude offline runner "mac" macOS, Apple silicon claude, gemini online Each runner keeps its own repos, worktrees, agent logins and policy.toml
Pairing runs lanely runner pair and keeps the runner's token (runner.token) in %APPDATA%\lanely (or the Mac/Linux config folder). When it connects, each runner reports what it has (OS, CPU, RAM, GPU, installed agents, projects). The hub routes tasks with those facts. If the hub goes down, runners keep working and send their events once it is back.

Which machine gets the task

"Do this on the Dell" sets machine: dell. Without a machine name, the hub picks one that has the project, the agent and every label you asked for.

New task Machine named? yes Online? yes no Run there Queue for it no Online machine matches? has the project has the agent has every label no default_machine queued if it is offline yes Pick the one with fewest running tasks
Labels are your own words in each runner's runner.toml, such as intel, gpu or test-hw. All labels you ask for must match.

More AI models

Each agent CLI has its own output format. The runner has one small adapter per agent that turns that format into one shared list of events, so the hub and the board never need to know which AI did the work.

claude -p, stream-json codex exec --json gemini -p, stream-json fake built in, for tests acp (next) any ACP agent runner adapter maps each format to one event list task_event AgentEvent session.started message tool.call approval.requested plan.updated needs_input session.ended hub stores it, board shows it
The task rules (stay on your branch, end a question with NEEDS-ANSWER, finish with "How to check:") are one template. Claude gets it as an extra system prompt; the others get it at the top of the first message.
AgentModelResumeApprovalsPlan steps
claude--model--resume <session>Full: every tool call goes through the hookfrom its todo list
codex--modelexec resume <id>Reduced: its sandbox onlynone yet
gemini--model--resume <id>Reduced: approval mode and policynone yet
fakenoneyesFullyes

Picking a model

Each runner reports which models every agent on it can use, and which one is its default. A task can pick one. The runner passes it on with --model, and the model the agent actually reports is what the board shows.

hello: models per agent main: claude opus, sonnet (default), haiku dell: codex its own default model reports hub offers them on the task you pick Task #18 model: haiku task_assign runner "main" claude -p --model haiku starts Claude Code session.started says claude-haiku-4-5-20251001 via runner On the task claude-haiku-4-5 On the machine now: #18, claude-haiku-4-5
Without a choice the agent's default model is used, and the board still shows which one that turned out to be.

Life of one task

Here you say "run the tests on the Dell with Claude", and one command needs your OK on the way.

You (phone) hub runner "dell" Claude Code start_task (dell, claude) store + route task_assign (WebSocket) worktree + branch start, with task rules messages, tools, plan task_event (buffered) hook: may I run this? policy.toml hard deny stops here approval_request Needs you: allow? allow + note approval_resolve allowed, runs it task_status: review push: Ready for review accept task_accept, deploy: auto merge + deploy hook accept_result: deploy ran push: Published Task view: machine, OS, CPU, GPU, RAM and model
Claude asks through its PreToolUse hook, which calls lanely hook on the same machine. With Codex there is no hook: its sandbox limits what it can do instead, and the board marks the task "reduced control". The orange lines are phone pushes. The task page shows which machine did the work, a device line like "Omarchy, i7-12700, RTX 3060, 32 GB", and the model.

Accept and deploy

The runner deploys only when something worth deploying changed, and every decision is written on the task with its reason.

You accept deploy: auto | skip | force Research? yes Close: no merge, no deploy the answer is in its last message no New commits vs main? none Close: no merge, no deploy "no changes vs main" yes Merge into main conflict Needs you: fix the conflict Your choice? skip Merged, deploy skipped you chose skip force auto Changed files pass the filter? no Skip deploy e.g. only *.md or docs/ changed yes Run deploy hook .lanely/project.toml "Deploy now" button runs the hook without a merge Every path logs deploy.decision {ran | skipped, reason, changed files}
The filter is optional, per project: paths means deploy only if a matching file changed, ignore means skip if only these changed. Without a filter, any real change deploys.

Phone notifications

The hub watches every task change and decides whether it's news. News goes out as a Web Push to each phone or browser that turned notifications on in the board. Each device picks which kinds it wants.

Task change stage, outcome, deploy notify::classify is it news? if not: no push review published needs_you Machine event offline with tasks running back, queued tasks started hub sees it machines Per device review published needs_you machines ticked = on by default Web Push VAPID, encrypted Push service Google, Apple, Mozilla or Microsoft Phone (PWA) service worker shows it Tap opens /#/task/<id>
Pushes are encrypted end to end, so the push service only carries them. The hub sends only to those four services, the ones browsers use for Web Push. "machines" covers a machine that went offline with tasks still running, and one that came back and started its queued tasks.

Guardrails

Every tool call passes four checks in order on the runner. The hub can only pass on your answer at step 3. It can never reach step 1, so no message or approval from your phone can unlock a hard block.

Agent wants to run a tool 1. Hard deny (policy.toml) payments, cloud, push, secrets: blocked, can't be approved 2. Ask rules (policy.toml) outside the worktree, destructive Docker: ask you 3. Your answer allow or deny, with an optional note 4. Runs the agent gets the OK hub can ask, can't decide answer can't override
policy.toml lives on each runner and belongs to that machine's user. The hub can suggest a change, but it only takes effect when you apply it at that machine.

The board

The built-in columns, with Queued for tasks whose machine is offline. You can add your own lanes, and group the board by machine, project, AI or system.

Backlog your thoughts new Queued machine offline In progress agent working Needs you question, approval Ready for review diff, How to check Done merged, deployed you reply
Each card also shows which machine and which AI it ran on.