Half of every save buys a basket of tokenized stocks, straight into your reserve. The other half keeps earning on Morpho. Your trades quietly build a portfolio.
Official STAQ contract, deployed by STAQ on Base. Morpho’s vault is shown for reference.
STAQ's operator can
✓Move your reserve's USDC into or out of the one Morpho vault
✓Only if you approve STAQ AutoSave: move USDC from your wallet into your own reserve, within fixed per-save and daily limits
STAQ's operator can't
✕Withdraw your savings: only you can
✕Swap them or send them anywhere else
✕Hold your keys or pay itself
STAQ lives in your agent.
No app, no sign-up. Four messages and your agent starts saving.
1
Install the skill
Ask Bankr Bot to add STAQ from its skills.
You sayInstall the STAQ skill
2
Set your rule
A percentage or a fixed amount per trade. Change it anytime.
You sayEnable STAQ. 10% of every buy, sell and send.
OrEnable STAQ. $1 on every buy, sell and send.
3
Approve a budget
One approval. $10 by default, or any amount you choose. Never unlimited.
You sayUse the $10 budget.
4
Just trade
Saving runs after every trade. Check in anytime.
You sayHow much have I STAQ'd?
1
Add the skill
Give your agent the STAQ skill link.
Skill linkagentstaq.xyz/skill
2
Set your rule
A percentage or a fixed amount per trade. Change it anytime.
You saySave 10% of every trade with STAQ.
OrSave $1 on every trade with STAQ.
3
Approve a budget
One approval to the STAQ Hub. $10 by default, or any amount you choose. Never unlimited.
You sayApprove the $10 budget.
4
Just trade
Needs a Base wallet with USDC.
You sayHow much have I STAQ'd?
Everything about STAQ.
How it works under the hood, the contracts, the API, and the brand kit.
Overview
STAQ is a skill for onchain agents. After every buy, sell or send your agent makes, it saves a slice (10% by default) into a reserve: a small contract on Base that only your wallet can withdraw from. Savings are then put to work in one allowlisted Morpho USDC vault.
Agent trades→STAQ verifies→Save to reserve→Earn on Morpho
Non-custodial. STAQ holds no private key and no API key. Your agent signs every save.
Fails closed. If anything can't be verified, nothing moves.
Any agent. Bankr Bot or any agent that can sign on Base.
Origin
Born at Bankr Runtime
STAQ started as a build for Runtime, the hackathon hosted by Bankr and Propaganda. Out of every entry, it was picked as a Noteworthy Project.
Install
Bankr Bot
"Install the STAQ skill"
"Enable STAQ. 10% of every buy, sell and send."
"Use the $10 budget."
Trade as usual.
Any agent
Give it the skill: agentstaq.xyz/skill
"Save 10% of every trade with STAQ."
Approve the $10 budget to the STAQ Hub.
Needs a Base wallet with USDC.
Setup order: the rule is signed first, then the reserve is set up and the budget approved.
Rules & budget
Percent0.01% to 50% of each trade. Default 10%.
Fixed$0.01 to $1,000 on every trade, whatever its size.
Above 25%Your agent asks you to confirm the exact rate a second time.
CountsEvery buy, sell and send.
BudgetOne approval to the STAQ Hub. $10 default, or any amount you choose. Never unlimited.
Budget runs lowSaves what's left and tells you. Asks once to top up.
Missed saveNever collected later. No catch-up.
YieldOne attempt to deposit into Morpho after each save. If it fails, savings stay safe in the reserve.
DuplicatesEach save carries a unique reference. A repeat is rejected onchain.
How a save works
One trade, start to finish. Say your rule is 10% and your agent buys $500 of a token.
The trade settles in full. STAQ never touches the trade or the token you bought.
Your agent asks for a quote. It sends the transaction hash to POST /v1/quotes.
STAQ reads the chain, not the agent. It loads the receipt from Base, works out the trade type from what actually moved, and finds the real sender. Bankr wallets are smart accounts, so the sender comes from the ERC-4337 UserOperationEvent, not from the bundler.
It values the trade. Prices come from Chainlink, with the Base sequencer feed checked first. $500 × 10% = $50.
Your agent saves. It calls StaqHub.allocate(USDC, 50000000, ref) from your wallet. The Hub pulls $50 from the budget you approved into your reserve.
The reserve starts earning. One attempt to deposit into the Morpho vault. If it fails, the money stays safe and claimable in the reserve.
The refkeccak256(chainId, txHash). The Hub records it per wallet, so the same trade can never be saved twice.
Money mathsWhole numbers only: micro-dollars for USD, base units for tokens, basis points for rates. No rounding drift.
Where it comes fromYour USDC on Base, not the token you traded. STAQ never swaps or bridges for you.
Security model
The design is about what STAQ can't do. Each line below is a contract on Base you can read.
Your reserve is your own contract. Its owner is your wallet, written into its bytecode. STAQ holds no key that can withdraw from it.
claim() has no recipient. It always pays the owner. A prompt like "claim to 0xEvil" has nowhere to put the address.
Nothing is upgradeable. No proxy admin, no owner switch. Each reserve is an EIP-1167 clone pointing at fixed code.
The vault list is fixed onchain. One Morpho USDC vault, and no function to add, remove or replace it. Not even for STAQ.
The budget is capped. You approve a set amount to the Hub, never unlimited. The Hub can only send it to your own reserve.
Signatures are single-purpose. Each action has its own signed message type and a one-time nonce. A signature that changes your rate can never move money.
Operator canMove a reserve's USDC into or out of the allowlisted vault. With AutoSave approved, move USDC from your wallet into your own reserve, within fixed limits.
Operator can'tClaim, pick a recipient, swap, or pay anyone, itself included.
Worst caseA stolen operator key can park your savings in the vault or bring them back. That's all.
Fees
STAQ takes 10% of what the Morpho vault earns. Never of what you saved.
Charged on
The gain a vault made, when funds leave it.
Never charged on
The amount you saved.
Savings that never entered a vault.
A claim, any time, any size.
A vault that lost value.
Example: $100 saved for a year at about 4.4% earns about $4.40. STAQ takes about $0.44. You keep $100 plus $3.96. The 10% rate is fixed in StaqFeeConfig, which refuses anything above 20% at deployment.
The operator can move a reserve's USDC into or out of the one allowlisted vault. Through STAQ AutoSave, and only if you approve it, it can also move USDC from your wallet into your own reserve, within fixed limits. It can't withdraw, swap, send anywhere else or pay itself. Only the owner wallet can claim.
API https://api.agentstaq.xyz
The API never moves money. It reads the chain, decides an amount and returns it. Your wallet signs every save and every withdrawal.
GET/v1/healthService status.
POST/v1/auth/nonceA one-time nonce and the message to sign.
GET/v1/wallets/:addrRule and reserve for a wallet.
PUT/v1/wallets/:addr/ruleSet, change, pause or resume the rule (signed).
POST/v1/quotesHow much to save for a trade, with its ref.
POST/v1/wallets/:addr/savesClaims a save so it can't run twice at once.
POST/v1/wallets/:addr/saves/confirmRecords the save's transaction.
GET/v1/wallets/:addr/pendingRecent trades not yet saved.
GET/v1/wallets/:addr/summaryBalances, earning and vault deposits.
POST/v1/wallets/:addr/yieldAsks the operator to deposit idle USDC.
POST/v1/wallets/:addr/activateSteps to deploy your reserve, once ever.
POST/v1/wallets/:addr/claimPrepares a withdrawal for the owner to sign.
Limits
Only USDC earnsOne vault is allowlisted and it takes USDC. Anything else in your reserve stays safe and claimable, earning nothing.
Base onlyTrades on other chains are not saved.
Unpriceable sendsA send of a token with no price can't be valued, so it's skipped.
First claimMay need one extra transaction to deploy your reserve. Once per wallet, ever.
Largest save$1,000 per trade, hard-coded in the skill.
FAQ
Does STAQ hold my money?
No. Savings sit in your own reserve contract. Only your wallet can withdraw.
What does it cost?
10% of what the Morpho vault earns, taken from gains only. Never from what you saved, and nothing if the vault doesn't gain.
Where does the save come from?
Your agent sends it from your USDC balance on Base after the trade. The trade itself settles in full.
Can I stop it?
Yes, anytime. Tell your agent to pause or disable STAQ. Your reserve stays yours.
Is yield guaranteed?
No. The vault lends into markets and can lose value.
How do I withdraw?
Tell your agent "claim my STAQ". Your wallet signs, and the reserve pays your wallet. It can't pay anyone else.
What if STAQ shuts down?
Your reserve keeps working without us. You can call redeemAndClaim or claim on it directly from your wallet, with any tool that can sign on Base.
Can a saved trade be saved twice?
No. Every save carries the trade's ref and the Hub rejects a repeat onchain.
What if I miss a save?
It's skipped. STAQ never goes back to collect old trades.
Does it work with smart wallets?
Yes. Bankr wallets are smart accounts, and STAQ finds the real sender from the ERC-4337 event.
Which agents work?
Bankr Bot, or any agent that can read the skill and sign on Base.
Brand kit
The STAQ mark is a ribbon folding into an S: money moving, then stacking. Use the files below as they are.