Sealgraf

Developers

Connect your agent to Sealgraf

Start with one successful check. Use the reference when you need the details.

Start here

Sealgraf checks the authority for a proposed purchase. The agent still makes the purchase through its own payment channel. Sealgraf never holds or moves money.

Connecting a supported app?

Use the guided setup instead of configuring a custom integration.

Open guided setup

Using Claude? Start here. Built an agent with Sealgraf? Show the badge. Want a head start? Templates.

1. Choose spending authority

In the app, set the agent’s spending limits, then make a key for it under Agents. Each key belongs to one set of limits, and an agent can never create, raise or edit them. Give the agent only its own key.

Shell · Identify the binding
curl https://sealgraf.com/v1/whoami \
  -H "X-API-Key: see_YOUR_AGENT_KEY"

REST calls send the key in the X-API-Key header. whoami answers with the limits this key can ask under.

2. Connect with MCP

Add Sealgraf to your agent client’s MCP configuration. Replace the placeholder with the key from setup, and keep it like a password.

JSON · MCP configuration
{
  "mcpServers": {
    "see": {
      "url": "https://sealgraf.com/mcp",
      "headers": { "X-API-Key": "see_YOUR_AGENT_KEY" }
    }
  }
}

At /mcp only, Authorization: Bearer is also accepted.

3. Check before buying

Call check_permission over MCP, or POST /v1/preauthorize over REST, for the proposed action. Continue only on an allow result.

Allow
Proceed within the approved action. Keep the single-use decision token.
Approval needed
Wait; do not buy yet. After the owner approves, collect the token with POST /v1/preauthorize/<id>/decision-token.
Deny
Stop and explain the reason to the person.

4. Complete and keep the evidence

After buying, report completion over REST with the decision token, then keep the returned receipt. A permission decision and a completed purchase are separate states.

Shell · Report completion
curl -X POST https://sealgraf.com/v1/preauthorize/PREAUTH_ID/complete \
  -H "X-API-Key: see_YOUR_AGENT_KEY" -H "Content-Type: application/json" \
  -d '{"decision_token": "DECISION_TOKEN",
       "completion_nonce": "order-123",
       "evidence": {"completed_amount_minor": 2500,
                    "counterparty_receipt_ref": "order-123"}}'
Check an example receipt

5. Handle errors clearly

On a temporary failure, keep the intended action and retry with the same completion_nonce: completion is idempotent on it. Never treat a timeout as approval.

Read the full error table · Open help