Skip to main content
Cloak is a privacy layer for Solana. Users shield SOL, USDC, USDT or BRS into a shielded pool, pay each other without revealing amounts or parties, and withdraw to any address. Zero-knowledge proofs, generated on the user’s device, are what the on-chain program verifies. No one, Cloak included, can move funds without them. You integrate Cloak through one TypeScript package, @cloak.dev/sdk, in a browser app, a Next.js app, a Node.js backend or a script.

Choose your path

Quickstart

Install, open an account from a wallet, and shield, send and withdraw in five minutes.

Your first private transaction

A step-by-step browser walkthrough with the output you should expect at each step.

Wallet integrations

Phantom and Wallet Standard, the wallet adapter, Privy, smart wallets, EVM and hardware wallets.

Backend integration

Run Cloak from a server: business mode, encrypted storage and idempotent payouts.

What you can build

Two layers

The SDK has two layers. Most apps only need the first.
  • createCloak: one call per action. It opens the user’s account from one wallet signature, then shields, sends, withdraws, quotes, reads the balance and makes payment links. It picks and merges notes, adds the fee on a withdrawal, keeps what it must remember, and finishes what an earlier run left open.
  • The low-level API: the free functions createCloak is built on (transact, transfer, partialWithdraw, fullWithdraw, swapWithChange). Use them for private swaps, for your own note storage, for batch signing, or for full control over proofs and submission.

Before you start

  • Mainnet only. Cloak runs on Solana mainnet. There is no devnet or testnet deployment, so test with small amounts: the smallest SOL deposit is 0.01 SOL, and the smallest USDC or USDT deposit is 1.
  • Bring your own RPC. Cloak hosts no Solana RPC. Use a mainnet endpoint from any provider. See Network and RPC.
  • Node 22 or later, or a browser bundler. Proofs run on the client, in workers.

How the pieces fit

How Cloak works explains the flow end to end.
Building for end users rather than integrating? The Guide tab explains the Cloak app in plain language.