The trust loop
There are three moving parts.- The agent. It uses the Python SDK. The SDK is a drop-in replacement for
requests. It signs every call with a short-lived token. - The platform. It runs the FastAPI middleware. The middleware checks the token and the scope before your route code runs.
- The MudraID backend. It issues tokens, publishes signing keys, and keeps an audit trail.
What you get
- Identity. Each agent has an API key id and a one-time secret. The secret is never stored in plaintext.
- Short-lived tokens. Tokens last 15 minutes. The SDK refreshes them for you.
- Scopes. A platform decides which agent can do what, per route.
- Enforcement. Revoke or suspend an agent and it loses access fast.
- Audit. Every verify, success or failure, is logged and hash-chained.
Pick your path
I'm building an agent
Use the Python SDK. Swap
requests for Agent.I run a platform
Add the FastAPI middleware. Protect your routes.
Show me the model
The concepts behind the trust loop.

