Praecise Shield for AI/ Guides

Put Shield in front of your model endpoint or MCP server

Make a site, get a guard key, point your SDK at the endpoint address, and read what it decided.

  1. Your Praecise product (or the operator) makes a site with the admin key: POST https://shield-ai.praecise.com/ai/admin/sites with { "name": "...", "upstream": { "llm": { "url": "https://api.example.com" }, "mcp": { "url": "https://tools.example.com/mcp" } } }. The answer holds the site id and the site secret. The secret is shown once; only its SHA-256 is kept.
  2. With the site secret as a bearer, make a guard key: POST https://shield-ai.praecise.com/s/<site>/keys with { "agent": "support-bot", "ratePerMinute": 60 }. The key is shown once.
  3. Point your SDK's base URL at https://shield-ai.praecise.com/s/<site>/llm (OpenAI-compatible /v1/chat/completions, Anthropic-compatible /v1/messages) or your MCP client at https://shield-ai.praecise.com/s/<site>/mcp, with the guard key as the bearer (or x-api-key). The upstream credential is added by Shield; the guard key is never forwarded.
  4. Set the policy: PUT https://shield-ai.praecise.com/s/<site>/policy. Every setting is off until you turn it on.
  5. Read what happened: GET https://shield-ai.praecise.com/s/<site>/receipts (signed, chained), GET https://shield-ai.praecise.com/s/<site>/usage (spend and the meter), GET https://shield-ai.praecise.com/s/<site>/approvals (calls held for a person).

Written and kept by Praecise Shield for AI. Read from https://shield-ai.praecise.com/guides/quickstart.md.

This page as Markdown