Modei
PricingDocsBlog

Documentation

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
1

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.

2

Create an Issuer

Your Issuer is your signing identity, the organizational stamp that proves you authorized this agent. You only need one.

  1. Click Create Issuer from the dashboard wizard
  2. Enter a name (e.g., "Jason's AI Lab" or "Acme Corp")
  3. Enter a domain (e.g., myname.ai or myagents.local for personal use)
  4. 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.

Learn more about Issuers →

3

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.

  1. Click Issue Passport (step 2 of the wizard)
  2. Give your agent a name (e.g., "Email Assistant", "Research Bot")
  3. Set permissions, use mcp:* for MCP tools, or * for full access (trusted agents only)
  4. Set an expiry, 30 or 90 days is a good starting point
  5. 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.

  1. Copy the entire key
  2. Save it in a password manager (1Password, Bitwarden, Keychain)
  3. Do NOT email it, paste it in chat, or save to an unencrypted file

Learn more about Passports →

4

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.

  1. Click Create Gate (step 3 of the wizard)
  2. Give your gate a name (e.g., "My API Gate")
  3. 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".

Learn more about Gates → | Browse Templates →

5

Connect your agent

Now connect your issuer, passport, and gate to your actual AI agent.

Option A, MCP (Recommended)

claude_desktop_config.json
{
  "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:

python
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:

text
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.
6

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

Learn more about Attestations →

Next steps