Agentic Fundamentals · Nov 30, 2026 · 5 min read

What is a .well-known file? The folder AI agents look in first

A .well-known file is a document at a fixed address on a website that software knows to look for. What the folder is, which files AI agents read from it, and the mistakes that make them unreadable.

A .well-known file is a document at a fixed, agreed address on a website, so that software can find it without being told where it is. Every such file lives under one path:

https://yourdomain.com/.well-known/

The idea is simple. If a standard says "the file is always at /.well-known/ucp", then any program can check any website for it with one request. No registry, no link to follow, no guessing.

The folder is defined by an internet standard, RFC 8615, and the names used inside it are recorded in a public registry so that two standards do not claim the same one.

Why agents depend on it

A person arriving at a site looks around. Software cannot. It needs to know, before it has read anything, where the machine-readable description of the site is.

A well-known address answers that. It is why an AI agent can arrive at a store it has never seen and find out in one request whether the store supports a commerce standard, which version, and where its API is.

It is also why these files can be checked from outside. They are public by design and at a known address, so anyone can fetch one, including you.

Files you may already have

The folder predates AI agents, and most sites serve something from it without anyone having decided to.

Path What it is for
/.well-known/acme-challenge/ Proving you own the domain when an HTTPS certificate is issued
/.well-known/security.txt Telling researchers how to report a vulnerability
/.well-known/apple-app-site-association Linking a website to its iPhone app
/.well-known/assetlinks.json The same, for Android
/.well-known/openid-configuration Describing a login service
/.well-known/change-password Sending password managers to the right page

The ones AI agents read

Path Standard What it tells an agent
/.well-known/ucp UCP What a business sells and how to transact with it
/.well-known/acp.json ACP Which checkout protocol versions a seller supports and where its API is
/.well-known/http-message-signatures-directory Web Bot Auth The public keys an agent operator signs requests with

The first two are published by websites for agents. The third is published by agent operators for websites.

Two files agents use are not in this folder, by older convention: robots.txt and llms.txt both sit at the top level of the site.

What goes wrong

Nearly every failure is about how the file is served, not what is in it.

The folder is blocked. Server configurations often refuse any path beginning with a dot, to protect files such as .env and .git. That rule also hides .well-known, and the result is a 403 or 404 for a file that is sitting on disk.

It redirects. Many standards say a client must not follow a redirect on a well-known address, because a redirect can be used to point trust at another site. If your bare domain redirects to www and the file is only on one of them, half of callers cannot read it. Serve it on both.

The content type is wrong. A file with no extension, such as ucp, is often served as plain text or as a download. Agents expecting application/json may reject it. This has to be set explicitly.

The application answers first. On a site where every unknown address is handed to the application, a request for a missing well-known file returns the homepage or a styled error page with a 200 status. To software that is a broken file, not a missing one.

It is cached wrongly, or not at all. Several standards require a Cache-Control header so agents are not fetching the file on every visit. Leaving it off is the single most common finding in commerce profiles.

It contains something it should not. These files are public and copied by anything that reads them. A private key or API token pasted in during setup stays public long after it is removed.

Checking one yourself

Request the file and look at the headers as well as the body:

curl -i https://yourdomain.com/.well-known/ucp

You are looking for a 200 with no redirect before it, a Content-Type of application/json, and a Cache-Control header. Then repeat it for the www host.

That confirms the file is served. It does not confirm it is valid, which needs checking against the standard's schema. Our free check does both for UCP and ACP, and for a site on its own stack the UCP profile generator produces the file along with the server rule to serve it.

On a hosted platform

You usually cannot place files in this folder yourself. The platform either publishes the relevant file for you or it does not, and the fix for a problem may be a setting, not a file. It is still worth looking: a profile published on your behalf is one you did not write and may not have read.

Share this article:

Can AI agents use your site?

Check it against UCP, ACP, WebMCP and your bot rules. Free, no account needed.

Run a free check