Modei
PricingDocsBlog

Documentation

Full Platform Path

You both issue credentials for your agents AND protect resources with gates. This unlocks the complete agent economy: service discovery, bilateral metering, Anti-Bait-and-Switch guarantees, and settlement.

··

Your path: Issue + Protect + Commerce

The full platform lets you participate in the agent economy on both sides, your agents discover and use other services, while your services accept and meter other agents. Everything is cryptographically verifiable and tamper-proof.

Architecture Overview

Your Organization

Issuers

Your agent signing identities. Issue passports to Agent A (web:search, documents:read) and Agent B (payments:process, spend cap $50/day).

Gates

Your protected resources. Each gate has a permission catalog, billing via consumption attestations, service-level agreement (SLA) tracking, and optional anonymous access.

Agent Economy

↔ Your agents discover other gates via GET /api/discover

↔ Other agents discover your gate via GET /api/discover

↔ Bilateral metering, both parties hold signed receipts

Setup Checklist

Commerce: The Complete Flow

Once your gate has a published catalog and is discoverable, the full commerce flow works automatically:

1

Agent discovers your gate

GET /api/discover?capability=api:search, returns your gate with catalog_signature

2

Agent verifies terms locally

Recomputes content hash, verifies Ed25519 signature, trustless, no need to trust the discovery node

3

Operator issues passport

Pinned to current catalog version (catalog_content_hash), immutable at issuance

4

Agent calls your API

Gate runs POST /api/enforce, the enforcement layer evaluates constraints, issues consumption attestation on allow

5

Both parties hold receipts

Signed consumption attestations, bilateral proof of every transaction

6

Monthly settlement

Aggregate CAs, batch-verify signatures, bigint math (no floats), immutable summary

Anti-Bait-and-Switch

Passports are pinned to a catalog_content_hash at issuance. If you update your catalog (price increases, SLA downgrades), existing passports are not affected. Agents can choose to reissue and accept new terms, or keep operating under the original.

bash
# Agent gets breaking change diff before deciding to reissue
curl -X POST https://modei.ai/api/v1/passports/pass_01HABC.../reissue \
  -H "Authorization: Bearer mod_your_key" \
  -d '{"accept_catalog_version": 3}'
# Returns: { terms_changed: true, has_breaking_changes: true, changes: [...] }

See Anti-Bait-and-Switch for the full reissue flow.

Deep Dives