How It Works
Most sites adopt it in three steps. Each one is useful on its own.1
See every agent
Install Baselayer and watch. You see each agent visit, which platform it comes from, how strongly it’s identified and where it went, from the first page to checkout. A new site starts watch-only, so nothing changes for your visitors. See Reading Agent Activity.
2
Know who's behind it
When an agent presents a KYA credential, you learn the verified person or business it acts for, which checks Baselayer ran, and only the details you asked for. You also get a customer ID that stays the same at your site, so you can recognize returning customers and connect their account, loyalty and order history. Without a credential, you can still see which platform runs the agent. See Asking for Fields and Matching Customers.
3
Decide what each agent may do
Set rules for each step, such as browse, cart and checkout: let an agent through, ask it for proof, or block it. Your rules decide, and your server or baselayer.js on your pages answers. See Set Your Rules.
One Place for Every Signal
Agents identify themselves in different ways, or not at all. Baselayer reads every signal on every request and joins them into one answer, so you don’t have to integrate each one yourself:- Detection on your pages
- The agent platform’s published network ranges and user agent
- Signed requests, such as Web Bot Auth
- KYA credentials
How Sure You Can Be
Baselayer tells you how strongly each agent is identified, from weakest to strongest:
Your rules can require any of these at any step. A common setup: let agents browse freely, and ask for a credential before checkout.
When an Agent Shows a Credential
On your pages, baselayer.js checks the credential. At your API or MCP server, your own code does, following the Credential Format Reference. Either way, the check confirms that Baselayer issued it for your site, that it hasn’t expired or been revoked, that nothing in it was changed, and that the agent showing it is the one it was issued to. A credential that passes gives you:- A customer ID that is the same each time this customer returns to your site. Another site gets a different ID for the same person.
- The checks that passed, such as a confirmed phone or a clear watchlist result.
- Only the fields you asked for in your rules, never more.
- When the credential expires.
Where to Start
Start with either. Install Options compares them.
What You Need
Next Steps
- Install Options: choose where Baselayer runs at your site.
- Credential Format Reference: check credentials in your own code.
- Set Your Rules: decide what agents can do at each step.
- Handling Failures: know why a credential was refused and what to tell the agent.
- What baselayer.js Reports: what is sent from your pages, and what never is.