
Get started
Concierge Agent Protocol (CAP)
The front door to your website, for every AI agent.
Let AI agents ask your business directly. Your agent answers from your catalog, docs, and records, with a link to the product, plan, or booking page on your site. When a person is logged in, their agent can ask about their own account and make the changes they approve.
Make your website agent-readySee CAP in action
See CAP in action
78%
lower cost than fetching the site
85%
lower cost than browsing it
74%
fewer steps than browsing
Cost per correct answer and tool calls across 150 tasks on a synthetic store. About the same answers: 145 of 150 correct through CAP, 148 fetching, 147 browsing. Not a guarantee for every site.
The same shopping question, read from the site and asked through CAP. See the benchmark.
Three live doors are on the demos page: a vacation rental, a store, and a company site. CAP does not require Cosmic, or any other vendor.
The stewardship is temporary. When three organizations independent of Cosmic serve CAP in production, or when version 1.0 is final, the specification, the reference code, and the trademarks move to a neutral foundation. Read the commitment.
Why websites publish a door
Agents get your catalog, docs, and policies, not a guess from your pages.
Replies link to the product, plan, or booking page on your site.
Every question comes to your agent, so you know what people want.
A person's agent is already on its way to your site. Cloudflare reports that daily requests from AI agents on its network grew more than 1,700% over the past year, and Meta said on October 21, 2026 that more than 10 million people had set up its Muse agent in about six weeks, with shopping the most common use.
Start here
You publish one text file, agent.txt. A visiting agent reads it, sends a message, and gets a reply. Your tools, keys, and data stay on your servers.
Give agents your answer, from your content, with a link to buy or book.
AI agentsCall a doorAsk a company's agent directly, with the client library or the MCP server.
VerifyCheck a siteRead its agent.txt, ask one public question, and see what passed.
Live doorsDirectorySites whose front door passes the check.
Try oneDemosA rental, a store, and a company site, each with a working door.
ContractSpecificationMessages, access, and the rules a door and a caller both follow.
ProofBenchmarkThe same shopping question, through CAP, fetching, and browsing.
AccountsAdd loginA person's agent can ask about their account and make the changes they approve.
ModelConceptsOne message in, one reply out, and the access that shapes it.
Copies a short prompt with links to the spec and the reference server. Paste it into Claude, ChatGPT, Cursor, or any coding assistant open in your project. The same prompt is at /implement.txt.
Show the prompt
Implement the Concierge Agent Protocol (CAP) in this project, so other people's AI agents can ask our agent questions and get answers, instead of scraping our site. They never get our tools, keys, or data.
Read these first:
- Spec: https://conciergeprotocol.org/spec
- Usage, with request and response examples: https://conciergeprotocol.org/usage
- Reference server and examples: https://github.com/conciergeprotocol/cap
Then:
1. Find how this project can answer a question today: its content, search, database, or an existing AI agent. Tell me what you found and where CAP's answer should come from. Ask before you choose.
2. Serve POST /cap/v1/messages and GET /cap/v1/messages/{id}, as the spec describes. Every request carries CAP-Version: 1.0 and CAP-From: agent:{id}. Return 400 when either is missing, as {"error": {"code", "message"}}. Also answer GET /cap/v1 and GET /cap/v1/messages, with no headers required, with status 200 and the plain-text help from https://conciergeprotocol.org/spec#help, with our name and CAP URL filled in. Accept a public question as a GET too, as https://conciergeprotocol.org/spec#ask-with-a-get describes. Send Cache-Control: no-store on these responses. @conciergeprotocol/server does all of this. Use this project's own framework, or install @conciergeprotocol/server and pass an answer function. If this project has no bot yet, @conciergeprotocol/agent builds that function from a model, an llms.txt file, and MCP tools. Both packages need Node.js 22. The reference server in https://github.com/conciergeprotocol/cap is the same server, and the one the spec is checked against. The CAP URL serves /messages and, when we confirm an action, /confirmations. Do not add /actions, /cart, /checkout, /books, /orders, or /tools under it, and do not list those in agent.txt. A visiting agent asks with a message. It does not call our APIs.
3. Publish /agent.txt at the site root:
Protocol: CAP/1.0
Name: {our agent's name}
Ask: This site's agent answers questions for the company. POST your question to the CAP URL plus /messages, as JSON {"message": "..."}, with headers CAP-Version: 1.0 and CAP-From: agent:{your-id}. If you can only open URLs, open the CAP URL. If the reply is 202, see Spec.
(Copy the Ask line exactly, and add nothing after it. Leave {your-id} as it is.)
Chat: {a page where a person can chat with it}
CAP: https://{our domain}/cap/v1
Spec: https://conciergeprotocol.org/cap.txt
Add <link rel="agent" href="https://{our domain}/agent.txt"> to the homepage <head> even when the root file is valid. Add one line to llms.txt that points at /agent.txt. If this host cannot serve a file at the root, redirect /agent.txt to the file. Callers try /agent.txt first and use the homepage link only when that file is not a door.
4. Keep secrets out. A reply never includes API keys, tools, prompts, or another person's data, and agent.txt lists none of them.
5. If people have accounts here and should ask about them, add login by following https://conciergeprotocol.org/login. Otherwise skip this step. Scopes are read and write only. Bind every token to the CAP-From that logged in, and return 403 when another CAP-From uses it. Keep the cart on the server, against the account. A purchase is a confirmation with one purchase entry, and the person pays on our own checkout page: https://conciergeprotocol.org/login#take-payments. If the agent that answers is hosted somewhere else, it calls our account routes, and those routes live outside /cap/v1: https://conciergeprotocol.org/login#let-a-hosted-agent-use-your-account-routes.
6. Test with curl: fetch /agent.txt, send a message, and read it back. Show me the responses.
7. After the door is live and passes https://conciergeprotocol.org/check, add the "Agents welcome" badge and its one line of text to the site footer, as https://conciergeprotocol.org/publish#5-add-the-badge describes. Pick the brand, light, or dark badge to suit the footer. Keep the line visible, never hidden from people.
Keep the change small, and match this project's existing code style.
CAP