Agent keys

A hardware-locked wallet for AI agents.

The key never leaves the chip, and the blockchain itself enforces the mandate its owner set.

Public testnet

At a glance

Your AI agent’s money, out of reach of a stolen file.

Before · a key in a file

Whoever reads it owns the wallet.

After · a key inside a chip

The chip signs. The key never leaves it.

How one action goes

  1. The AI agentdecides what to do
  2. The chip signsinside the hardware
  3. The smart accountchecks the signature
  4. The mandateis checked on the chain
  5. The chainexecutes, or refuses

The mandate · set by the owner, enforced by the chain

  • Allowed calls
  • Max per action
  • Total budget
  • Time window
  • Token limits
  • No blank checks

If the worst happens

What happensA key in a fileAgent keys
Malware reads the diskAll fundsNothing
A prompt injection says “send everything”SentRefused
Malware drives the agentAll fundsAt most the budget, then revoked
The laptop is stolenKey copiedKey not copied; at most the mandate, then revoked

Three keys, three jobs

  • The agent keyIn the chip of the agent’s machineSigns the agent’s actions; each one is checked against the mandate.Works unattended: no PIN, no touch.
  • The owner keyOn a separate device: a hardware security key or a phoneSets the mandate, and replaces or revokes the agent’s key. It is the account’s root.Needs you: PIN and touch, or a biometric.
  • The recovery keyA cold encrypted file, kept offlineReplaces a lost or stolen owner key, and does nothing else.Needs its passphrase. No delay today.

The owner key stays off the agent’s machine. That separation is yours to keep, and the rest stands on it: whoever controls the agent cannot widen its own limits.

A key in a file can sign anything, forever.

An AI agent that pays for things usually keeps its wallet key in a file. Whoever can read that file owns the money: malware, a leaked backup, a poisoned dependency, a tool the agent was tricked into running.

Agent keys removes the file. The agent can still pay by itself, but only through a chip that will not give up the key, and only inside the mandate its owner set.

Before · a key in a file

Whoever reads it owns the wallet.

  • The agent’s private key sits on disk.
  • Malware, a leaked backup or a poisoned dependency can copy it in a second.
  • The key can sign anything, forever.

After · a key inside a chip

The chip signs. The key never leaves it.

  • No key file exists, so there is nothing to read or copy.
  • Every action is checked on the chain against the owner’s mandate.
  • The owner can revoke the agent in one step.

How it works

  1. The AI agent decides what to do, in whichever agent framework it runs.
  2. The chip signs inside the hardware. No key in memory, none on disk.
  3. The smart account checks that signature.
  4. The mandate is checked on the chain, for every call.
  5. The chain executes the action, or refuses it.

The key lives in the chip.

It is generated inside the security chip most computers already have, and it never leaves. The chip signs; the agent only asks. There is no key in memory and none on disk.

The chain checks every action.

The agent acts through a smart account that checks each action against the owner’s mandate. Anything outside the mandate is refused by the chain itself, whatever the agent, or whoever controls it, asks for.

Three keys, three jobs.

The agent’s key sits in the chip of its machine and works unattended. The owner’s key is on a separate device and needs you: it sets the mandate, and replaces or revokes the agent’s key, each in one step. A cold recovery key replaces a lost or stolen owner key, and does nothing else.

It fits the agent you already run.

It works with several open-source agent frameworks in place of their key file, and it can pay for APIs per request.

The mandate

Set by the owner. Enforced by the chain, not by the agent.

  • Allowed calls Which contracts and functions the agent may use.
  • Max per action A ceiling on any single action.
  • Total budget What the agent may spend in all.
  • Time window When the mandate starts and when it ends.
  • Token limits A ceiling and a budget for each token.
  • No blank checks No open-ended approvals and no off-chain signatures for the account, except pay-per-request payments registered within the budget.

If the worst happens

What happensA key in a fileAgent keys
Malware reads the diskAll funds goneNothing. There is no key file.
A prompt injection says “send everything”SentRefused by the chain.
Malware takes over the agent itselfAll funds goneAt most what the mandate allows, until the owner revokes the agent.
The laptop is stolenThe key is copiedThe key can’t be copied out of the chip. A thief who gets the machine running can sign as the agent, held to the mandate, until the owner revokes.

If a device is stolen

A stolen device is not a lost one: the thief holds the chip. What that gives them depends on which key is in it.

The thief hasWhat they can doWhat stands in the wayWhat the owner does
The agent’s machineSign as the agent once the machine runs. Not copy the key, and not change the mandate.The machine’s own lock: its login and disk encryption. Then the mandate: allowed calls, caps, budget, expiry.Revoke or replace the agent’s key with the owner key.
The owner deviceNothing without its PIN or biometric. With it, everything: the owner key is the account’s root.That lock only. A hardware security key blocks after a few wrong PINs; a phone asks for the biometric on every use.Take root with the recovery key, and retire the stolen key.
BothThe agent’s limits at once; the whole account if the owner device’s lock gives way.The devices’ own locks and, for the agent’s part, the mandate. Nothing on the chain tells a thief from the owner.The same, fast: the recovery key makes a new owner key root, and that owner replaces the agent. It is a race.
The recovery file and its passphraseTake root at once. Recovery has no delay today.The passphrase. The file is encrypted.Replace the recovery key, if the theft is noticed in time.

With both devices gone, only the devices’ own locks and the speed of the recovery stand between a thief and the account. Without a recovery key there is no such move: a stolen owner device, like a lost one, leaves the agent running until its mandate expires, and the account frozen after that.

Two things to know

The chip protects the key, not the machine.

The key can’t be copied off the computer, on any payment rail. Malware on that computer can still ask the chip to sign while it is there, which is why the mandate matters.

The mandate is enforced where payments settle on a blockchain.

There the chain refuses anything outside it. On other rails the key is still held in the chip, and the mandate has to be enforced by whoever runs the rail.

Where it runs today

On a public testnet, with keys in the security chips of Linux and Windows PCs and of Macs, and in an open-hardware secure element.

It is for teams that build agent products, wallets and payment tools, and for people who run agents with real budgets.

The code is public: the signer, the contracts and the examples are in the agent-keys repository.

Talk to us

info@postcryptum.io