Govern
Deploy KYA-OS servers for AI agent governance with delegations, proofs, and consent flows
What is Govern?
Checkpoint Govern enables you to deploy and manage KYA-OS ("Know Your Agent — Operating System"; see the glossary) servers for comprehensive AI agent governance. While Detect identifies agents and Enforce blocks or redirects them, Govern provides a framework for authorizing agents — letting verified AI agents interact with your resources under controlled conditions.
Govern implements a zero-trust model: every AI agent request must carry a cryptographic proof of identity and authorization before accessing protected resources.
How It Works
AI Agent → KYA-OS Proof → Your Server → Checkpoint Verification → Protected Resource
↓
Dashboard (audit trail)- An AI agent obtains a delegation (authorization grant) through an OAuth flow
- The agent creates a cryptographic proof for each request, referencing the delegation
- Your server uses
@kya-os/bouncer-middlewareto verify the proof with Checkpoint - If valid, the request proceeds with verified agent identity attached
- All activity is logged to the Checkpoint dashboard for audit
Key Concepts
Agent DIDs
Every AI agent is identified by a DID (Decentralized Identifier), such as did:key:z6Mk.... This provides a stable, verifiable identity for agents across sessions and services.
Delegations
A delegation is an authorization grant from a user or service to an AI agent. It specifies what the agent can do (scopes), for how long, and under what constraints. Think of delegations as OAuth tokens for AI agents.
Proofs
A proof is a cryptographic assertion attached to each request. It contains the agent's DID, the target audience, a nonce, and a reference to the delegation that authorizes the request.
Learn more about proof verification
Scopes
Scopes define fine-grained permissions. For example, files:read allows reading files while payment:create allows initiating payments. Each delegation grants specific scopes, and each protected endpoint can require specific scopes.
Verifiable Credentials
Checkpoint issues and verifies verifiable credentials that attest to agent identity and permissions. These are signed by Checkpoint's infrastructure and can be independently verified.
Deployment Options
Checkpoint supports three ways to run a KYA-OS server:
| Model | Description | Infrastructure |
|---|---|---|
| Dashboard Deploy | One-click setup with GitHub repo + Cloudflare Worker | Your GitHub + Cloudflare account |
| Molti | Managed hosting — Checkpoint runs the agent, no repo or Cloudflare account required | Checkpoint's infrastructure |
| Self-Host (BYOK — bring-your-own-key) | Full control with KYA-OS packages | Your infrastructure |
Migrating an Existing MCP Server
Already have a standard MCP server? Add KYA-OS identity and authorization without rewriting your server.
Authentication Methods
When an agent requests access, the user must authenticate. Checkpoint supports multiple methods:
| Method | Description |
|---|---|
| Consent Only | Simple approve/deny — no external auth required |
| OAuth | Sign in with GitHub, Google, Microsoft, and more |
| Custom Provider | Connect your own authentication backend |
| Credentials | Username/password or API key authentication |
Compare authentication methods →
Prerequisites
- A Checkpoint account with a project
- Your project's API key and Project ID — see Credentials for where to find them
- A Node.js/Express server (or equivalent) to add the middleware to
Quick Start
1. Install the middleware
npm install @kya-os/bouncer-middleware2. Protect an endpoint
import express from 'express';
import { createBouncerMiddleware } from '@kya-os/bouncer-middleware';
const app = express();
app.use(express.json());
app.post(
'/api/files',
createBouncerMiddleware({
apiKey: process.env.AGENTSHIELD_API_KEY!,
projectId: process.env.AGENTSHIELD_PROJECT_ID!,
requiredScopes: ['files:write'],
reputationThreshold: 60,
}),
(req, res) => {
// Access verified agent info
const { agentDid, scopes, reputation } = req.bouncer;
res.json({ message: 'File created', agent: agentDid });
}
);Two env names, one key: AGENTSHIELD_API_KEY is the KYA-OS worker/bouncer naming convention for
the same dashboard API key the Checkpoint SDKs read as CHECKPOINT_API_KEY. The bouncer
middleware reads no environment variables itself — you pass values explicitly, as above.
3. Configure tools in the dashboard
Navigate to Policy → Auth (/dashboard/{orgId}/{projectId}/policy/auth) to define which tools require delegations and what scopes they need: create an auth method — OAuth or credentials when the user has to sign in, or consent-only when they just have to approve — plus the scopes it grants, then assign it as the owner of each tool it should protect. Auth methods are reusable, so one can own many tools.
Not every auth method involves signing in. Consent-only methods just ask the user to approve the scopes an agent is requesting, which is the right shape for delegation without an external identity provider. See Auth Methods for the comparison. The dashboard currently labels this section Sign-in methods; the underlying concept is the broader auth method.
Features
| Feature | Description |
|---|---|
| Deployment | Deploy KYA-OS servers via dashboard, Molti, or self-host |
| Molti | Managed agent hosting on Fly.io with lifecycle management |
| Migration | Add KYA-OS to an existing MCP server |
| KYA-OS Enforcement | Block agents at the edge until they present a signed identity |
| Auth Methods | OAuth, Consent Only, Credentials, Custom Providers |
| Delegations | Create and manage authorization grants for AI agents |
| Proofs | Verify cryptographic proofs on every request |
| OAuth | Standard OAuth flows for agent authorization |
| GitHub Connections | Let users connect GitHub so gateway tool calls carry their token |
| Tool Protection | Per-tool scope requirements and access control |
| Consent Flows | User consent UI for agent authorization |
Govern vs Enforce
| Govern | Enforce | |
|---|---|---|
| Purpose | Authorize known agents | Block unknown agents |
| Model | Allow-list with cryptographic verification | Detect and apply policies |
| Use case | MCP server developers, API providers | Website and app developers |
| Integration | @kya-os/bouncer-middleware | Gateway (DNS) or Middleware (code) |
Govern and Enforce are complementary. Use Enforce to protect your web application from unwanted bots, and Govern to authorize legitimate AI agents that need to interact with your APIs.
Dashboard
Manage Govern features from the Checkpoint dashboard:
- Delegations — View and revoke active delegations
- Proofs — Monitor verification activity and audit agent access
- Policy → Auth — Configure auth methods and providers, customize the consent screens agents see, and assign per-tool protection
- Gateway → Connections — Let users link upstream OAuth accounts (e.g. GitHub) so gateway tool calls carry their credentials — a separate concept from delegations; see GitHub Connections
- Control Access (legacy surface) — Tool discovery/removal and a few consent extras remain at
/dashboard/{orgId}/{projectId}/control-accessuntil the new Access surface lands — see Control Access
Related Projects
Checkpoint Govern is part of a larger KYA-OS ecosystem. These external projects provide additional context and tooling:
| Project | URL | What it provides |
|---|---|---|
| KYA-OS reference impl. | npmjs.com/package/@kya-os/mcp | @kya-os/mcp — the protocol reference implementation: delegation, proofs, sessions, and audit records |
| KYA-OS protocol spec | kya-os.org | Full protocol specification covering credential models, verification protocol, audit layer, and reputation |
| KYA-OS for MCP | kya-os.org/mcp | How KYA-OS binds onto the Model Context Protocol |
| KnowThat.ai | knowthat.ai | KYA-OS agent registry — browse agents, check reputation scores, claim an agent profile |
Next Steps
- Deploy a KYA-OS Server — Dashboard Deploy, Molti managed hosting, or self-host
- Molti — Managed hosting with no repo or Cloudflare account required
- Migrate from MCP to KYA-OS — Add identity to an existing server
- Authentication Methods — Choose how users authorize agents
- Managing Delegations — Create and verify authorization grants
- Proof Verification — Implement server-side proof checking
- OAuth Integration — Standard OAuth flows for agents
- GitHub Connections — Let users link GitHub for gateway tool calls
- Tool Protection — Per-tool access control
- Consent Flows — User consent for agent actions
