Skip to content
PILOTS OPENPutting AgentGuard in front of Kora, Squads and agent wallets

DEVELOPERS

Try the API, then check our work.

Send a transaction and the rules you want, and see what AgentGuard would decide before anything is signed. Every answer comes with a receipt you can reproduce on your own machine.

How it works.

  • Send a transaction and a policy

    A Solana or Ethereum transaction, signed or not, and the rules you want it held to.

  • Read the decision

    Allow, or hold for a person, with every reason and each instruction as AgentGuard read it.

  • Verify it yourself

    Run the same input through the open-source code on your machine. The receipt hashes must match.

Get a key, then call the API.

The hosted API is at https://policy-api-production-55212b38.up.railway.app. Create a free account to get a key, then send it as a bearer token on every transaction call. Prefer to run it yourself? Clone the repo and start the sandbox locally.

# public: the ready-made examples need no key
curl -s https://policy-api-production-55212b38.up.railway.app/v1/examples

# authenticated: send your key as a bearer token
curl -s https://policy-api-production-55212b38.up.railway.app/v1/check \
  -H 'authorization: Bearer <your key>' \
  -H 'content-type: application/json' \
  -d '{
    "chain": "solana",
    "transactionBase64": "<your transaction>",
    "policy": {
      "policyId": "vendor-payments",
      "programAllowlist": ["11111111111111111111111111111111"],
      "destinationAllowlist": ["<your vendor>"],
      "maxAmountPerTransaction": { "native": "1000000000" },
      "maxAmountPerDay": { "native": "5000000000" }
    }
  }'
  • POST /v1/check

    Check one transaction against one policy.

  • POST /v1/policies/validate

    List every problem in a policy, and settings that would hold everything.

  • GET /v1/examples

    Ready-made requests, each with the decision it should get.

  • GET /openapi.json

    The full API description.

Verify every answer.

Each result carries two hashes: one of your input as AgentGuard understood it, and one of the decision, the reasons and the decoded instructions. Run the same input through the published code and compare. If the hashes match, the API gave exactly the answer the open-source code gives.

npm run check -- --json --policy policy.json --tx-file tx.b64

# compare with the API's response
"receipt": { "inputHash": "e2637d8e...", "resultHash": "697a3a46..." }

The sandbox is a preview: it signs nothing, holds no keys and does not store what you send. It checks your transaction against your rules, but does not rehearse swaps, keep a running spending total or open reviews. Requests are rate-limited per client and capped at 64 KB. For a transaction that uses address lookup tables, pass the tables the response returned with --lookup-tables.

Put it in front of your agent.

Put AgentGuard in front of Kora, Squads or your agent wallet stack.