Overview
A small open protocol and reference implementation for the moment an AI agent spends money or commits to something with a business. It uses one discovery card (GET /.well-known/latch.json), one POST endpoint and five operations. ask reads with no consequential effects. quote returns the exact offer with a SHA-256 digest and does not execute anything. approve is a local decision by the trusted host or user, bound to that digest. commit sends the digest, the approval and an Idempotency-Key. status returns the task and a provider_assertion receipt. The CLI makes you repeat the exact digest after --yes, and a mismatch aborts before any connection. The reference client, server and CLI are a single ESM file for Node.js 20+ with zero runtime dependencies, plus an optional MCP stdio bridge. The README says it does not replace MCP, A2A, OpenAPI, identity or payment systems. It has no registry, account, telemetry or payment rail. The wire version 0.1 is experimental (implementation 0.2.0), and the demo orders are simulations: nothing is paid for, made or delivered. A live Node to PHP demo runs at balanov.pro/latch. Licence MIT. 63 stars on GitHub (created 2026-11-04).
Quick summary. This page gives a short overview of this tool. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.
Example prompts example
Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.
- node latch.mjs discover http://127.0.0.1:8787, then ask, quote, review the digest, and commit with --digest and --yes set to the same reviewed digest.