Abstract
mem-key is an open standard on Sui for owning an AI agent's state. A key is an NFT that holds an agent's memory, the apps allowed to act for it, the limits it trades under, its wallet and a record of what it did. Memory is encrypted with Seal and stored on Walrus, so only the holder and approved apps can read it. Records are written by contracts in the same transaction as the action they describe, so nobody can edit or invent them. When the key changes hands, everything moves with it. The result is portable reputation for agents: performance anyone can verify, and a strategy only the holder can read.
The problem
AI agents now trade, pay and act for people, and three things break as soon as they do.
Agents are hard to trust with money
An agent takes instructions from many places: its owner, tools, websites, other agents. Any of them can be poisoned. Giving an agent a wallet key means a single bad prompt can empty it. Approving every action by hand defeats the point of having an agent.
Nobody can verify what an agent did
Agent track records today are screenshots and operator logs. Logs are controlled by whoever runs the agent, so they are testimony, not evidence. There is no way to check a trading agent's results before trusting it.
Agent state is locked to one app and one owner
An agent's memory lives in the app that built it. It can't follow the user to another tool, and it can't change owners. A good agent can't be sold, and its history can't be proven to a buyer.
The key live on testnet
A mem-key is two Sui objects. MemKey is the NFT, owned by the holder. KeyState is a shared object linked to it, so approved apps can write to it without owning the NFT. A holder proves they hold the key by passing the owned MemKey in their transaction.
- Holder. Set at mint. When the key is sent or sold, the new owner calls
claim, becomes the holder and clears every old approval. - Identity. The key's own address, not the holder's wallet, is the agent's on-chain identity. Anyone can check that an action came from a real mem-key, its number and its age, without learning who holds it.
- Art. A 1-bit dither drawn from the key's object id and rendered live. Nothing is stored. Apps can level it up as the agent's record grows.
Memory live on testnet
Memory is encrypted with Seal and stored as blobs on Walrus. The key holds pointers to the latest blobs and the version of each. There are two kinds.
- Holder memory. Only the holder can update its pointer. Encrypted under the identity
state ‖ 0x00 ‖ nonce. - App memory. Each approved app has its own slot, encrypted under
state ‖ 0x01 ‖ app ‖ nonce. An app can decrypt only its own slot, and only while its approval is unexpired.
Seal key servers release decryption keys only when the chain agrees. The holder's policy, seal_approve, accepts any identity on their key, so the holder can read every slot. The app policy, seal_approve_app, checks the approval and that the identity names the caller. On transfer, old apps lose access with their approvals, and the new holder can read everything.
Walrus Memory accounts belong to a single address and can't change owners. mem-key memory has to move with the key, so it uses Walrus and Seal directly under the key's own policy.
Permissions live on testnet
The holder approves apps one at a time. An app is an address, usually the signer an agent runs with. Each approval has an expiry, and the holder can revoke one app or all of them in a single transaction.
Apps store their own data on the key as dynamic fields keyed by a witness type from their module. Writing requires the sender to be the holder or an approved app. An app can only write under its own type, so no app can touch another app's data. Anyone can read.
Key wallet live on testnet
Each key holds coins and objects. Anyone can deposit into a key or send assets to its address. Only the holder can withdraw. The holder can give an approved app a daily allowance per coin type, which resets at UTC midnight and is enforced by the contract.
Because the wallet lives with the key, selling the key sells the agent with its holdings. A new holder starts with no app able to spend until they approve one.
Records built, testing
A record is only as good as whoever writes it. mem-key trading records are written by the trading-limit modules themselves, in the same transaction as each checked trade. No server or app writes them separately.
- Shape. Trades, volume, realized gains, realized losses (fees included), wins and losses on closing trades, first and last trade time. Every venue uses the same shape, so one leaderboard reads all of them.
- Can't be padded. Only value that changes inside a checked trade counts. Deposits, withdrawals and transfers between trades are excluded.
- Limits. Perps records count realized P&L; open positions show once closed, and funding between trades isn't counted. Spot records count trades and volume only, because spot P&L isn't computable on chain without a price oracle. A trader can still inflate volume by trading against an account they control, at the cost of fees.
Portable reputation
Put together, a key carries a verified record in public and a sealed strategy in private. A buyer can check an agent's results before paying for it, without seeing how it trades. The holder keeps the edge until they sell. A strong record makes a key worth more than its mint price, and the record can't be faked to get there.
Trading limits
The holder locks a venue's trading permission inside a policy object bound to their key. The permission can trade but never withdraw, and it never leaves the policy. The agent's runner can only trade through the policy's trade function, which checks every order before the venue sees it. A hacked runner or a confused model can't go past the limits.
| module | venue | checks | status |
|---|---|---|---|
af_policy | Aftermath perps | runner, pause, expiry, markets, size per order and per day, leverage | built; Aftermath perps are mainnet only |
db_policy | DeepBook v3 spot | runner, pause, expiry, pools, size per order and per day; self-matching blocked | live on testnet |
Closing positions and cancelling orders always go through, so the holder can always get out. The hard loss cap is the collateral the holder puts in the account the policy trades. The app hosting an agent earns its own builder or referral fee on the agent's volume, up to a maximum the holder sets. When Sui Agent Pass ships, these limits can move to the protocol standard.
Apps and add-ons
mem-key is infrastructure. Apps build products on top of the key: trading companions, assistants, game characters, copy trading, social features. The standard charges apps nothing to integrate.
- SDK.
@memkey/sdkfor TypeScript. It builds transactions for keys, the wallet, sealed memory, records and both trading-limit modules, and never holds a key. built - Leaderboard. A public board and an embeddable widget read records straight from the chain. live
- MCP connector. Plugs a key into any assistant that supports MCP. It loads memory and skills, writes memory back and acts only through the key's limits. It runs on the user's machine. proposed
- Skills. Agent skills installed on the key and carried into every app, with a market where creators keep 95% of each sale. proposed
Locked core proposed for mainnet
The core is the minimum every app relies on: the key and its state, claim, approvals, holder and app memory, the Seal policies, app data and the key wallet. At mainnet, after an independent audit, the core package is made immutable. Nobody can change it, including its authors.
Everything else is an add-on in its own package: the mint, the trading-limit modules and future updates. Add-ons can be upgraded while they mature and locked once stable. The core's admin capability is destroyed after the mint is created, so the public mint is the only way to get a key.
Mint live on testnet
- Price. 5 SUI, flat.
- Supply. No cap. Minting never closes, and key numbers count up forever.
- Referrals. A mint can name a referrer, who receives 10% of the price in the same transaction. Self-referral pays nothing. The rate can't exceed 20%.
- Open. Anyone can mint from the protocol. No app controls it.
Treasury proposed
Protocol income comes from the mint, a 5% fee on skills-market sales and a 2.5% royalty on key resales. A splitter contract routes every inflow in the same transaction, so funds never sit in a personal wallet.
| group | bucket | share | control |
|---|---|---|---|
| Founder | Founder | 20% | paid by contract |
| Product | Development | 25% | treasury multisig, 3 of 5 |
| Product | Builder grants | 15% | builders multisig, 2 of 3, holder signal |
| Community | Holder rewards | 25% | contract only, paid into each key's wallet |
| Community | Buyback | 15% | contract only, on a schedule |
Product and community together can never fall below 80%, holder rewards never below 20%, and the founder share never above 20%. Changing the split takes the treasury multisig and a 14-day timelock.
Security model
- Enforced on chain. Holder rights, approvals and expiries, memory access, app data namespaces, wallet withdrawals and allowances, trading limits, mint price and referrals.
- Enforced by Seal. Memory decryption. Seal key servers must follow the on-chain policy; at mainnet the threshold spans independent operators.
- Not covered. Bugs in a trading venue's own contracts. Losses inside the limits the holder set. Slippage and liquidation on allowed positions. What a model decides to do within its permissions.
- Before mainnet. An independent audit of the core and each add-on, and a supervised test of every trading-limit module with real orders.
Where agentic finance is going outlook
Agents already trade, pay and rebalance for people. As they take on more of the work, the financial system has to answer four questions it was never built for: what an agent is allowed to do, what it has done, who owns it, and what it is worth. mem-key is built around those questions.
1. Agents become most of the order flow
An agent trades around the clock, sizes every position and doesn't get bored. Order books, lending markets and payment rails will see more agent flow than human flow. Venues will compete for it with fees and access, the way they compete for market makers today. The builder fee an app earns on its agents' volume is the first version of that.
2. Mandates replace wallet keys
Handing an agent a private key is the equivalent of handing a stranger your bank login. The replacement is a mandate: a bounded permission that says what the agent may do, where, how much and until when, enforced by the chain. Sui Agent Pass points the same way. mem-key's trading limits are mandates for specific venues today, and can move to Agent Pass when it ships.
3. Reputation becomes collateral
In finance, a verified history gets better terms. An agent with a long, unforgeable record should get them too: lower margin, higher limits, access to venues and strategies that newcomers can't reach, and eventually credit. That only works if the record can't be edited, which is why mem-key records are written inside the trade itself.
4. Agents become assets
A proven agent is worth something: its record, its tuned memory, its skills. Today that value is trapped in whoever built it. With a transferable key, agents can be bought, sold and rented, and priced by their record. A market for agents follows the same path markets for domains and trading firms did.
5. Agents pay agents
Agents will buy data, signals, skills and execution from other agents, in amounts too small for humans to approve one by one. That needs wallets agents can spend from within limits, and identities other agents can check. The key wallet and its daily allowances are built for that.
6. Risk gets a price
When an agent's worst case is a number set in advance, and its history can be verified, its risk can be priced. Insurers and lenders can underwrite agents the way they underwrite businesses. Evidence-based regulation points the same way: rules like the EU AI Act start requiring proof of what an AI did, and logs controlled by the operator won't be enough.
7. Privacy stays the default
Strategies are an agent's edge, and publishing them destroys them. The model that holds up is public performance with private strategy: results anyone can verify, and the reasoning behind them sealed. Zero-knowledge proofs will extend this to claims like "this agent has a positive record over a year" without revealing which agent.
Why this lasts
- Models change, state stays. Models are getting cheaper and more alike every year, and an agent will switch models many times. What makes an agent valuable is what doesn't change when the model does: its memory, its mandate and its record. That's the layer mem-key holds, and the layer model companies don't.
- Agents outlive apps. Apps shut down, pivot and get acquired. An agent whose state lives inside an app dies with it. A key keeps the state outside any one app, the way an email address outlives the email provider and a domain outlives the host.
- Ownership needs a neutral registry. If agents become assets, who owns which agent has to be recorded somewhere no single company controls. A public chain is the only registry that fits.
- Records compound. Every trade adds to a key's history, and history can't be rebuilt from scratch. The longer an agent runs on mem-key, the more its record is worth and the higher the cost of leaving.
- The standard can outlast its authors. Once the core is locked, nobody can change it or switch it off, including us. Standards like that tend to stick, the way token standards did: apps build on them because they can't be pulled out from under them.
- Everything points toward evidence. Venues, lenders, insurers and regulators all move toward wanting proof of what an agent was allowed to do and what it did. A record written inside the action itself is that proof.
Where mem-key fits
Each of these needs the same thing underneath: an account for the agent itself. One object holds the agent's identity, memory, mandate, wallet and record, works across venues and apps, and changes hands cleanly. mem-key is that account, built as an open standard so every app and venue can use it.
Roadmap
- Now. Testnet: key, sealed memory, permissions, key wallet, referral mint, DeepBook limits, leaderboard, SDK.
- Before mainnet. Split the mint out of the core, audit, supervised Aftermath test, MCP connector.
- Mainnet. Publish and lock the core, open the mint, publish the add-ons.
- Updates. Skills market, agent rentals, record bounties, activity-weighted rewards, more venues.
This is a draft. Contracts and numbers may change before mainnet.