Skip to content
Projects

About

One workbench for the agents on your computer, open on every device you own.

Developer Tools

How these counts are measured

24 stars3 Forks +2 in 24h

What you can do

  • Split the work across agents Choose Split work with a team in a conversation and give each task its own agent and model. Members work at the same time (in a Git project, each in its own worktree), and their results come back to the conversation that started them. From there you can send any member another round. Docs

Measured star growth

in 24h
+2
in 7 days
+7
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Latch

One workbench for the agents on your computer, open on every device you own.

Run Codex, Claude Code and other coding agents on your Mac, alone or as a team.
Review and ship their work there, and keep up from your phone.

English · 简体中文 · Quick start · Docs · Contributing

Latch on a Mac and a phone. On the Mac, a team of three agents reviews offline drafts and one member is waiting for approval. On the phone, the same member asks to run a test command, with Deny and Allow buttons.

Icons of the supported agents: Codex, Claude Code, OpenCode, pi, DeepSeek Harness, Qwen Code, goose, Cursor, Antigravity, Grok Build

Works with Codex, Claude Code, OpenCode, pi, DeepSeek Harness, Qwen Code, goose, Cursor, Antigravity, Grok Build, and any ACP agent.

Latch keeps a Host running on your Mac. The Host starts the agent CLIs you already use, with their own sign-in, and holds every session, so the Mac app, a browser and your phone show the same conversation. Closing the window leaves the agents working.

In the picture, Codex has reviewed draft storage and the built-in agent has checked reconnection. Claude Agent wants to run the recovery tests, and the phone is where that command gets approved.

What you can do

Split the work across agents

Choose Split work with a team in a conversation and give each task its own agent and model. Members work at the same time (in a Git project, each in its own worktree), and their results come back to the conversation that started them. From there you can send any member another round.

Docs

A Mac conversation in which the built-in agent splits a review into three members on Codex, the built-in agent and Claude Agent. They run at the same time, finish one by one and hand their results back, and the lead writes a closing reply.

Hand the work to another agent

Ask Codex why notes open slowly, then switch the conversation to Claude Code to write the fix. The next agent gets the earlier turns, or a summary the first one writes for it.

Docs

Codex explains why opening a note is slow. A marker shows the conversation moving from Codex to Claude Agent with the record of one turn, and Claude Agent adds a cache and reports that all tests pass.

Review each turn, then ship it

See what each turn changed, leave a note on a line for the agent, or undo the turn. When the patch is ready, stage, commit and push from the Delivery panel, and open a GitHub pull request with your gh sign-in.

Docs

A Codex turn that caps the reconnect delay, next to the Changes panel showing that turn's diff of two files with an Undo turn button.

Beside the conversation

  • Board. Every session by state (Needs you, In progress, Ready to deliver, Ended), filtered by project or agent.
  • Panels. Files, Terminal, Browser, and Devices for the iOS Simulator.
  • Control this Mac. Agents can operate your Mac’s apps through Cua Driver, which you install yourself.
  • Your models. Use each CLI’s own sign-in, or add a model service that speaks Chat Completions, Responses or Anthropic Messages, including a local one such as Ollama. Limits and Usage show plan limits where the agent reports them, and token use.
  • Earlier sessions. Import sessions you ran in Codex, Claude Code, OpenCode, Grok Build or pi outside Latch.
  • My Agents. Personal agents with their own memory and scheduled tasks.
  • Extensions. MCP servers, plugins and plugin pages.

Quick start

[!IMPORTANT] Latch runs from source on macOS for now. There is no signed installer yet, and the iPhone and iPad app is not on the App Store. See Status.

You’ll need Node.js 24.22.1, pnpm (any recent version; inside this repository it switches to the pinned 11.28.6), Go 1.26.10 and the Xcode Command Line Tools.

1. Install an agent and sign in. Any supported agent works. With Codex, for example:

npm i -g @openai/codex
codex login

Agent setup lists the commands for the others.

2. Build and open Latch. From the root of this repository:

pnpm install
pnpm build
pnpm desktop

3. Start a session. Open New session, choose your agent, and add a project folder. Try asking “Where does this project handle errors? Show me one example.”

To look around before you set up an agent, skip step 1 and launch the demo. It uses a simulated model, and its file tools still operate on the folder you select.

pnpm desktop -- --demo

Connect a phone

  • Mobile browser. Start the Host with your own HTTPS certificate. On the Mac, run pnpm latch device invite, scan the QR code with your phone, and confirm the connection on the Mac. HTTPS setup
  • iPhone or iPad app. Build the app from source and put both devices on the same local network. In Latch on the Mac, open Settings → Devices → Show QR code. Scan it in the app and confirm on the Mac. After pairing, the app can reach your Mac from another network through a relay you host. iOS source · Relay setup

Security

  • You trust a device once, when it connects. The first desktop app on a new Host connects without a prompt. After that, the Mac shows each new device’s name and you confirm with Touch ID or your login password. The device then works within the permissions you gave it (view, run, approve, manage this Mac) until you remove it, or until its credential expires 30 days after it connected.
  • Keys stay on the Mac. Model keys are entered only on this Mac and are never sent to a device. Each device holds its own key, and the Host stores only public keys and credential hashes.
  • Permissions leave a record. Anything that grants or uses a permission is first written to a hash-chained audit log, which you can read in Settings → Data → Audit log and check with pnpm latch audit verify.
  • Latch is not a sandbox. Agents and plugins run as your Mac user. Approvals, path checks and the outbound policy are rules inside Latch, and worktrees separate only files.

More in Security boundary and Security model.

Status

Status
Mac Runs from source. A signed and notarized build hasn’t been produced yet, so there is no installer or automatic update.
iPhone and iPad Builds from source and pairs with your Mac. Paired devices can receive lock screen alerts and Live Activities when Apple push credentials are configured. App Store distribution and physical-device verification are pending.
Other devices Any browser, over HTTPS with a certificate you provide. Latch doesn’t create certificates or offer plain-HTTP access.
Linux The Host runs, but Linux has no on-device confirmation, so browsers and phones can’t connect. The desktop app connects with offline codes.
Windows Not yet. The Host needs a per-user runtime directory for its socket, which isn’t implemented on Windows.
Android No Android app yet; work so far covers iPhone and iPad. An Android phone can connect through its browser over HTTPS.
Relay No official relay. Run your own on a Linux server or your Cloudflare account.

Details in Platform limits.

FAQ

Does Latch change my agents’ settings? No. It runs the CLI you installed with that CLI’s own sign-in, and keeps its settings in its own files. It doesn’t edit the CLI’s configuration or register global hooks.

Is there an account or a cloud service? No. The Host on your Mac decides devices, permissions and sessions. A relay only forwards end-to-end encrypted traffic; whoever runs it can still see IP addresses, times and sizes.

What happens when I close the window? The Host and the agents keep running. pnpm stop stops the Host, and refuses while a session is running or waiting for approval unless you add --force.

Does my phone need to be on the same network? Only for the first pairing of the app, or a cable to the Mac with Personal Hotspot on. After that it connects directly when it can, or through your relay.

Documentation

The detailed guides are in Chinese.

Contributing

Latch is maintained by one person, so small, focused changes are the easiest to review.

  • Read the contributing guide first. It covers the setup, how to run Latch without touching your own data, the checks, and the pull request process.
  • AGENTS.md has the code map, the commands, and the rules a change must keep. Testing explains which tests a change needs.
  • Architecture explains how the Host, the clients, and the agents fit together.

[!NOTE] I may not get to GitHub Issues every day. If something is urgent or blocking you, email me at [email protected]. Report security issues by email, not in a public issue.

License

The source code is MIT licensed. The Latch name and icon are excluded from that license. Bundled third-party components and brand icons retain their respective licenses. MIT License · Third-party notices

Explore related projects

Loading…