Your keys never leave your server.

Klidara is a wallet library for agent payments on Base. Key storage, HD derivation, Shamir sharding and x402 invoices in one statically linked Rust binary.

Three of five shards rebuild the key

3 of 5 shards rebuild the key

Four modules, one process. Nothing here calls home.

What you get in the binary

vault
AES-256-GCM encrypted key storage for Ed25519 keypairs. Plaintext keys exist only inside the running process, never on disk and never in a log line.
chain
USDC transfer verification against Base. Balances and receipts come from chain state you query yourself, not from a hosted indexer.
x402
Invoice generation and payment verification for agent-to-service payments, so an agent can pay for a call without holding a spending key.
license
Ed25519-signed license payloads for feature gating. Verification works offline, because a licence check should not need a round trip.

Custody without a custodian

No external runtime

No Python, no Node, no Ruby. One statically linked binary you can copy onto a box that has never seen a package manager.

Zero trust by construction

The vault is the only module that touches plaintext key material. Everything else works with signatures and public state.

Audit you can replay

Every payment decision is derived from verified chain state, so the same inputs produce the same answer tomorrow.

How it is laid out

klidara/
├── vault     AES-256-GCM at rest · Ed25519 keypairs
├── chain     Base · USDC transfer verification
├── x402      invoice generation · payment verification
└── license   Ed25519-signed payloads · offline check

Pre-release. The crate is source-available under BSL 1.1 and the API documentation ships with the first tagged release.

If a third party can move your funds, it is not your wallet.

Klidara exists because agent payments kept ending up behind someone else's API key. Self-hosting the vault is the whole point, not a deployment option.