← All open-source tools

Open source · Onchain policies

Perch: a policy layer for Stellar smart accounts

Perch says what each key on a Stellar smart account may do, in a policy document anyone can review, and enforces it onchain. Spending caps, session keys, scoped app access and recovery compile onto OpenZeppelin’s smart-account rules. Every Nido wallet runs on it.

Network
Stellar
Our role
Built and maintained by our team
Built on
OpenZeppelin stellar-accounts
Status
On mainnet since October 2026
Published through
The Stellar Registry
Package
@stellar-registry/perch
  • 2,106 ✓ npm downloads since its September 9 release (November 2, 2026)
  • 3 Apps running their users on Perch session rules: Agama, Darwin and LumenSplit
  • 27 Testnet wallets whose spending limit Perch enforced at HackMeridian 2026
  • 116 ✓ Commits since the first, on August 7, 2026 (November 2, 2026)
const doc = policy()
  .signer('owner',   external(WEBAUTHN_VERIFIER, passkey))
  .signer('session', external(ED25519_VERIFIER, sessionKey))
  .rule('daily-spend', r => r
    .callContract(USDC)
    .signedBy('session')
    .func('transfer')
    .cap({ limit: 1_000_000_000n, periodLedgers: 17280 }))
  .build();
A Perch policy: the owner signs with a passkey, and a session key may call transfer on USDC, up to 100 USDC per 17,280 ledgers, about a day.

What it does

A smart account can hold several signers: a passkey on a phone, a session key an app holds for a while, a guardian for recovery. Perch decides what each of them may do. A policy is a reviewable, content-hashed document; Perch compiles it onto OpenZeppelin’s context rules onchain, where the account enforces it on every call.

  • Spending caps, per asset and per period
  • Session keys scoped to one contract and one function
  • Scoped access for each app
  • Recovery by guardians, a zero-knowledge proof, or both

On mainnet

Perch’s contracts went live on mainnet between October 24 and 26, 2026, published and deployed through the Stellar Registry. Every Nido mainnet wallet runs on a Perch account.

Agama (SCF #45), Darwin and LumenSplit run their users on Perch session rules, so an app can act within limits the user set. During HackMeridian 2026, Perch enforced spending limits for 27 wallets on testnet.

The repo ships its own audit manifest: the commit in scope for review, the deployed build and its known limitations.

On builders’ roadmaps

ancora, from HackMeridian 2026, models its treasury policies on Perch’s document format, and Sidekey lists Perch as its next step.

Need spending rules your risk team can read? Talk to the engineers who wrote Perch.

Calls are with one of our engineers.