latch-code/latch
概要
One workbench for the agents on your computer, open on every device you own.
開発ツール計測したスター増加
- 24時間
- +5
- 7日間
- +10
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
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 — across multiple subscriptions, alone or as a team —
extend the workbench with reviewed plugins, and keep up from your phone.
English · 简体中文 · Quick start · Docs · Contributing
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 drives the agent CLIs you already use — over their own native protocols where supported (codex app-server, Claude Code, opencode serve, pi --mode rpc) or ACP — 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 above, 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
Run a team with scopes, order and merge checksStart in Team mode from New session or choose Split work with a team mid-chat. Pick a lead agent, add optional acceptance criteria, and let the lead draft the roster or write it yourself. Give each member its own agent, account, model, owned file paths (Owns) and dependencies (After…). Dependent members branch off their predecessor’s Git worktree, members can exchange notes or stop after the current turn, and Latch test-merges all member branches for conflicts and out-of-scope edits before returning results to the lead. |
![]() |
Use multiple subscriptions and switch mid-threadAdd work and personal accounts for Codex, Claude Code, Qwen Code, OpenCode, pi, goose, Grok Build, DeepSeek Harness, Cursor or Antigravity in Settings → Harnesses, each signed in inside an isolated folder. Watch plan windows and token spend in Limits and usage. When one Codex or Claude Code subscription runs low, accounts that share session history switch mid-conversation on the same native thread — or route turns to a local or remote model service such as Ollama. |
![]() |
Move across agents or reference earlier chatsAsk Codex why notes open slowly, then switch the conversation to Claude Code to write the fix with the earlier turns or a written summary. You can also attach another conversation in the composer so the agent reads it automatically, steer an active turn, or queue follow-up messages and screenshots. |
![]() |
Review each turn, then ship itSee what each turn changed — with source diffs kept separate from generated outputs — leave a note on a line for the agent, or undo the turn. Stage, commit and push from the Delivery panel, open a GitHub pull request with your |
![]() |
Extend the workbench with reviewed pluginsAdd skills, tools, session panels, isolated app pages, settings pages, Host-managed loopback services, local model services and Harnesses — wired in one confirmation on your Mac. Install from the marketplace, HTTPS or SSH Git repositories (read with your own |
![]() |
Beside the conversation
- Board. Every session by state (Needs you, In progress, Ready to deliver, Ended), filtered by project or agent.
- Panels. Files, Terminal (search output and insert the latest error in one click), Browser (capture element screenshots), Context (request composition turn by turn), and Devices for the iOS Simulator.
- Control this Mac. Agents can operate your Mac’s apps through Cua Driver, which you install yourself.
- Earlier sessions. Import sessions you ran in Codex, Claude Code, OpenCode, Grok Build or pi outside Latch.
- My Agents and paired Macs. Personal agents with their own memory, scheduled tasks, optional consultations with other personal agents, and work delegated to another paired Mac opened in its own window.
- MCP servers. Connect stdio or remote MCP servers alongside plugins.
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 (or switch to Team mode), 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 (
pnpm latch relay setup linuxon a Linux server — domain or bare IP — or Cloudflare). 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 and plugin secrets are entered only on this Mac, stored in
0600files, and never sent to pages or other devices. 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 (pnpm latch relay setup linux) 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 (or an isolated per-account folder you add in Latch), and keeps its settings in its own files. It doesn’t edit your CLI’s global 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.
- Usage guide · Agent compatibility, multi-account, models, and permissions
- Connect a custom ACP agent · Use your own model service
- MCP servers · Plugin development · Plugin pages · Transport plugins
- My Agents, memory, and scheduled tasks · Appearance
- Architecture · Streaming and reconnection · Design · Testing
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
関連プロジェクトを探す
読み込み中…




