Quickstart
From zero to a protected, verified AI agent in 10-15 minutes. No coding required for the basic setup.
Before You Start
You'll need:
- An email address to sign up
- The name of the AI agent you want to protect
- About 10-15 minutes
Create your account
Go to modei.ai and click Sign Up. Enter your email, choose a password, and confirm via the email link. You'll land on the dashboard.
Create an Issuer
Your Issuer is your signing identity, the organizational stamp that proves you authorized this agent. You only need one.
- Click Create Issuer from the dashboard wizard
- Enter a name (e.g., "Jason's AI Lab" or "Acme Corp")
- Enter a domain (e.g.,
myname.aiormyagents.localfor personal use) - Click Create
Done. Your issuer is the root of trust for all agents you'll create. You can create multiple issuers for different teams or projects.
Issue a Passport for your agent
A Passport is your agent's cryptographic identity document, like a driver's license that proves who the agent is and what it's authorized to do.
- Click Issue Passport (step 2 of the wizard)
- Give your agent a name (e.g., "Email Assistant", "Research Bot")
- Set permissions, use
mcp:*for MCP tools, or*for full access (trusted agents only) - Set an expiry, 30 or 90 days is a good starting point
- Click Issue Passport
Critical: Save your Private Key RIGHT NOW
After clicking Issue, you'll see a Private Key, a long cryptographic string. This is the only time you will ever see it. It cannot be recovered.
- Copy the entire key
- Save it in a password manager (1Password, Bitwarden, Keychain)
- Do NOT email it, paste it in chat, or save to an unencrypted file
Set up a Gate
Only need spend caps or rate limits? You can skip this step entirely, passport-only enforcement lets you enforce guardrails without setting up a gate.
A Gate is a security checkpoint that checks every passport presented to it and enforces your rules before granting access.
- Click Create Gate (step 3 of the wizard)
- Give your gate a name (e.g., "My API Gate")
- Set Guardrails:
// Real constraint keys, set via dashboard or API
"core:cost:max_cumulative": { "amount": 5000, "currency": "USD" }
"core:rate:max_per_hour": 100
"core:scope:domain_allowlist": { "domains": ["api.example.com"] }
"core:data:no_pii_export": true
Or pick a Template, pre-configured guardrail packages like "Read-Only Researcher", "Financial Agent", or "Commerce-Enabled Service".
Connect your agent
Now connect your issuer, passport, and gate to your actual AI agent.
Option A, MCP (Recommended)
{
"mcpServers": {
"modei": {
"command": "npx",
"args": ["modei-mcp"],
"env": {
"MODEI_API_KEY": "mod_live_xxxxxxxx"
}
}
}
}Option B, REST API
Call the Modei API directly from your agent's code:
import httpx
client = httpx.Client(
base_url="https://modei.ai/api/v1",
headers={"Authorization": "Bearer mod_your_key_here"}
)
# Check a gate before performing an action
result = client.post(f"/gates/{gate_id}/check", json={
"passport_id": "psp_your_passport_id",
"action": "send_email",
}).json()
if result["decision"] == "allow":
# Proceed with the action
send_email(...)Option C, System Prompt
For Claude or ChatGPT without MCP, add to the system prompt:
You are operating under Modei identity [Agent Name],
Agent ID: [your-agent-id], Issuer: [your-issuer-domain].
When accessing tools that request verification, present this identity.Test it
From your dashboard, navigate to Gates, click your gate, and use the Test button. You should see:
- ✅ if the passport was verified successfully
- The request logged in Attestations, your tamper-proof audit trail
Next steps
Agent Autonomy Guide
Bootstrap credentials autonomously. Three paths for agents.
Template Library
30 pre-built guardrail profiles. Pick one for your agent type.
Python SDK & API
pip install modei-python --pre, Python SDK and REST API examples.
No-Code Setup Guide
Step-by-step walkthrough. No code required.