Permissions& Spend Limits,On Fiber

Clasp is a session layer that lets apps and AI agents pay from a Fiber wallet without ever holding its keys.

The app asks for authority. You cut the limits down and approve. The wallet signs your values, never the app’s.

Every payment runs ten policy checks before it reaches your node. Large ones wait for your signature.

Revoke a session and every later request fails, even a read. Six attacks run live against the real engine.

> Attack the wallet <

Sent back to the attacker before any money moves

For example, a replayed request is rejected with replay_detected and a stolen token with origin_mismatch.

Each label is a real attack the policy engine rejects. Six of them run live in the Security Lab.> Run them yourself

Instead of handing an app your keys,Give it a session you can end.

Permissions in plain language

View node information. Read-only.+
Create invoices to receive funds+
Pay up to 1 CKB each, 5 CKB in all+
Open channels on your node!

The app asks for what it wants. You read every permission as a consequence, cut the caps and the duration, and approve only what is left.

Limits the wallet enforces

Research Agent
1.0◆ Settled
weather.example
0.8◇ Held
evil.example
10▼ Denied

Ten checks run on every request, in the same order. Small payments settle, large ones wait for you, and anything outside the rules is refused.

Authority you can take back

◆ Active
3 payments · 2.6 CKB
◇ Sub-agent
Cap 1 CKB · 30 min
▼ Revoked
0 requests accepted

Revoke a session from the dashboard and every later request fails, including reads. Sub-agents built on it lose their authority with it.

How a payment gets through

Every refusal is data

When a request breaks a rule, the wallet answers with a stable code, whether it is worth retrying, and what to do next. An agent can branch on it instead of guessing.

The same ten checks run on every request, in the same order.

  1. Session active
  2. Signatures
  3. Permission
  4. Origin
  5. Nonce
  6. Freshness
  7. Invoice amount
  8. Asset
  9. Per-payment cap
  10. Atomic spend

We’re building the permission layer for Fiber.

Clasp ships as three pieces: a TypeScript SDK on npm, a relay that holds no keys and cannot read the payments it carries, and a wallet core you can run yourself with Docker.

Any Fiber app or agent adopts it with two calls, connect() and requestPayment().

> Developer? Read the quickstart
AppsAI agentsdAppsSub-agentsClaspSDKKeyless relayWallet coreFiberFiber Network