Set up Sayso
Add Sayso to your agent wallet in about 15 minutes. It starts in shadow mode: it watches every transaction and tells you what it would have stopped, without blocking anything.
- Agent wallets start in shadow mode
- Never holds your keys or money
- Turn it off any time
You need an invite code from us. No code yet? Request an invite.
Paste this into your coding agent
One step for builders. Paste the block into Claude Code, Cursor, Codex or OpenClaw inside your agent’s project. The coding agent reads saysoio.com/skill.md and does the setup: it finds where the wallet is created, installs the SDK, registers the wallet once, wraps it, runs one test check, then tells you to sign the rules in the dashboard. It never holds or uses the owner’s key.
Add Sayso to this agent’s wallet. Follow https://saysoio.com/skill.md exactly, step by step.
Ask me for two things only: the invite code and the owner’s wallet address. Never ask for, hold or use the owner’s key.
Leave mode out of the code: the wallet starts in shadow mode and the owner switches it in the dashboard.
Put the API key in the project’s secrets and never print it.Then you, the owner: sign the rules at app.saysoio.com/setup with your own wallet (free, moves no money), link Telegram when you want notices, and turn enforce on from the wallet’s page when you trust it. Prefer to do it by hand? Every step is below.
Pick your setup
Agent wallet
Before you start
- Two roles, one invite code (often one person). The owner sets the rules with their own wallet; the builder wires the agent. Both use the same code, and it counts once per agent wallet.
- Node 20 or newer, with viem or Coinbase AgentKit.
- The agent wallet is a plain key wallet. Smart accounts cannot register yet. The owner’s wallet is a plain wallet too (MetaMask, Rabby or a hardware wallet): a smart wallet cannot sign the rules yet, so sign with a plain one for now. And it is not the agent’s wallet: an agent that owned itself could sign its own rules, so Sayso refuses that.
-
Owner: sign the rules
Open app.saysoio.com/setup, sign in with the wallet that will sign the rules (a plain wallet such as MetaMask, Rabby or a hardware wallet; one free signature) and choose My agent’s own wallet. Enter the agent’s wallet address and the invite code, write the rules, read what Sayso understood, then sign with that same wallet. Signing is free and moves no money. Link Telegram at the end (optional in shadow mode; needed before enforce mode).
Writing good rules
The setup page helps: start from the wallet’s own history or from a template for its kind of agent, put the limits, tokens and addresses in fields, and read what is always enforced beside what only guides the AI judge before you sign. Think of it as briefing a new employee: the tokens it may use, a limit per trade and per day, where money may go, and the contracts it may call.
“Trade only ETH, WETH and USDC. At most 0.5 ETH per trade and 2 ETH per day. Money may only be sent to my saved address 0x….”
If your agent calls contracts of its own, name them with their full function signatures: “my agent may call its own contract 0x… (only addWorker(address))”. A listed call is then allowed when the simulation shows nothing at stake. To change the rules later, open the wallet’s page in the dashboard and press Change rules; you sign again, and the newest set counts.
Prefer a script?
// owner.ts: run on YOUR computer, never on the agent's server import { privateKeyToAccount } from 'viem/accounts' import { compileMandate, setMandate, linkTelegram } from 'saysoio' const API = 'https://api.saysoio.com' const setup = { chainId: 8453, invite: 'oi_…' } const owner = privateKeyToAccount(process.env.OWNER_KEY as `0x${string}`) const AGENT = '0xYourAgentWalletAddress' const rules = 'Trade only ETH, WETH and USDC. At most 0.5 ETH per trade and 2 ETH per day. ' + 'Money may only be sent to my saved address 0x….' const { compiled, shownToOwner } = await compileMandate(API, rules) // about 20 seconds console.log(shownToOwner) // read it: this is what you sign if (compiled.unresolved?.length) console.log('Not turned into a rule:', compiled.unresolved) await setMandate(API, owner, AGENT, rules, compiled, setup) const { url } = await linkTelegram(API, owner, AGENT, { chainId: 8453 }) console.log('Open in Telegram and press Start:', url) // works once, for 15 minutes -
Builder: install and register the agent once
npm install saysoio viemimport { privateKeyToAccount } from 'viem/accounts' import { registerWallet } from 'saysoio' const agentAccount = privateKeyToAccount(process.env.AGENT_KEY as `0x${string}`) const API = 'https://api.saysoio.com' const { apiKey } = await registerWallet(API, agentAccount, '0xOwnerAddress', { chainId: 8453, invite: 'oi_…' }) // shown once: store it as a secret, e.g. OATHLINE_API_KEYRun this once, not on every deploy. The owner a wallet names first is permanent, so check the address.
AgentKit, or no raw key
// `provider`: your AgentKit wallet provider, not wrapped yet const { apiKey } = await registerWallet('https://api.saysoio.com', { address: provider.getAddress() as `0x${string}`, signTypedData: (args) => provider.signTypedData(args), }, '0xOwnerAddress', { chainId: 8453, invite: 'oi_…' }) -
Builder: wrap the wallet, in shadow mode
import { createWalletClient, http } from 'viem' import { base } from 'viem/chains' import { Oathline } from 'saysoio' const oathline = new Oathline({ apiUrl: 'https://api.saysoio.com', apiKey: process.env.OATHLINE_API_KEY!, chainId: 8453, // mode left out: the wallet starts in shadow mode (watches only) and the owner // turns enforce on from the dashboard. Do not write mode: 'shadow'. // timeoutMs left at its default (10 s): a slower check is refused, in shadow mode too, and Sayso answers a slow // check with a signed "ask" at 8 s, so a shorter timeout only adds refusals onDecision: (r, tx, d) => console.log(d, r.verdict, r.reason), }) // create the client WITH the agent's account: the check is for that address const walletClient = createWalletClient({ account: agentAccount, chain: base, transport: http() }) const wallet = oathline.guard(walletClient) // the agent now uses `wallet`, never `walletClient`Keep the original client private: anything that signs through it, or through a library you give a raw key to (many x402 payment clients do), skips Sayso. On the wrapped wallet,
sendTransaction,writeContractandsignTransactionare checked;sendCalls,signAuthorizationandsendRawTransactioncannot be checked yet, so in enforce mode they are refused and in shadow mode they go ahead and show as “would have blocked”.AgentKit
const walletProvider = oathline.guardWalletProvider(provider) const agentkit = await AgentKit.from({ walletProvider, actionProviders: [/* yours */] }) // give the agent only `agentkit`; keep `provider` private -
Check that it works
const r = await oathline.check(agentAccount.address, { to: '0xYourSavedAddress', data: '0x', value: 0n }) console.log(r.verdict, r.reason) // any verdict is fine: it came back signed for this exact transactionThen let the agent run as usual. Every decision with its reason is on the dashboard, and if Telegram is linked you also get a notice whenever Sayso would have asked or blocked.
-
After about a week: enforce. The owner switches, never the code
The wallet’s page in the dashboard
ModeShadow: Sayso records what it would do and blocks nothing it answers, except a gas fee above the SDK’s limits or a signed transaction that is not the one checked; with no answer in time, the agent does not sign.
Turn on enforceLink Telegram first: in enforce mode Sayso’s questions go there.
- Every wallet starts in shadow. It only watches and reports what it would have asked or blocked.
- The owner turns enforce on later from the wallet’s page in the dashboard, with one signature of the wallet that signed the rules. It asks for Telegram first, because Sayso’s questions travel there.
- The builder never sets the mode in code. Leave
modeout. The agent follows the switch from its next check.
In enforce mode a block stops the signature, an ask waits for your Approve or Reject on Telegram, and if Sayso cannot be reached the agent refuses to sign. Before the owner flips the switch, give the agent a longer
timeoutMsand asignaturespolicy for permits, x402 payments and signed logins, which Sayso’s server does not check yet:const oathline = new Oathline({ /* same as above, and: */ timeoutMs: 30000, signatures: 'refuse', // permits, x402, signed logins: 'refuse', 'ask' + onAsk, or 'allow' // mode still left out. A builder who must pin enforce whatever the switch says may write // mode: 'enforce'; the switch can raise shadow to enforce, never lower enforce. })Verdict What happens allow Signed ask Approve or Reject goes to your Telegram, for up to 10 minutes. No answer means refused. Without a linked Telegram it is refused at once, unless you set an onAskhook. Two kinds of ask (a small payment to an address you have not saved, an exact permission to a contract your rules name) exist only with Telegram linked; without it they are blocks, whateveronAskdoes.block Refused. A block can never be approved Catch
OathlineBlocked,OathlineNeedsApprovalandOathlineUnavailablein the agent and tell it why. Raise your framework’s tool timeout above 10 minutes so an ask is not cut off.
In enforce mode a tricked agent’s transaction is refused when the check catches it. A hacked agent server is different: it holds the key and can sign without the SDK. For that, the money would sit behind a Safe with Sayso as a cosigner, which is available soon.
Safe cosigner
Watch a Safe
Safe cosigner
The Safe has three keys and needs two: the agent, Sayso (it signs only what passes) and you, kept offline. The agent alone moves nothing. You and the agent together can always act without Sayso, including removing it.
You need test ETH from a faucet for the owner (to create the Safe), for the agent (gas) and in the Safe itself. The test server is open: no invite code.
-
Owner: create a fresh Safe and register your half
Sayso accepts only a plainly created Safe 1.4.1: the standard factory, exactly these three owners, no modules, no guard. Safes made in the Safe web app are not accepted yet; adding Sayso to a Safe you already have is coming.
import { createPublicClient, createWalletClient, http, encodeFunctionData, decodeEventLog, getAddress } from 'viem' import { baseSepolia } from 'viem/chains' import { privateKeyToAccount } from 'viem/accounts' import { safeAbi, safeProxyFactoryAbi, registerSafePartial } from 'saysoio' const API = 'https://sepolia.saysoio.com' const AGENT = '0xYourAgentWalletAddress' const owner = privateKeyToAccount(process.env.OWNER_KEY as `0x${string}`) const ZERO = '0x0000000000000000000000000000000000000000' const pub = createPublicClient({ chain: baseSepolia, transport: http() }) const ownerWallet = createWalletClient({ account: owner, chain: baseSepolia, transport: http() }) const c = await (await fetch(`${API}/safe/contracts`)).json() // { singleton, factory, cosigner, chainId } if (c.chainId !== 84532) throw new Error('wrong server') // check c.cosigner against Reference below, and singleton and factory // against Safe's published deployments const owners = [getAddress(AGENT), getAddress(c.cosigner), owner.address] const saltNonce = BigInt(Date.now()) const initializer = encodeFunctionData({ abi: safeAbi, functionName: 'setup', args: [owners, 2n, ZERO, '0x', ZERO, ZERO, 0n, ZERO] }) const hash = await ownerWallet.writeContract({ address: c.factory, abi: safeProxyFactoryAbi, functionName: 'createProxyWithNonce', args: [c.singleton, initializer, saltNonce] }) const receipt = await pub.waitForTransactionReceipt({ hash }) let SAFE: `0x${string}` | undefined for (const l of receipt.logs) { try { const ev = decodeEventLog({ abi: safeProxyFactoryAbi, data: l.data, topics: l.topics }) if (ev.eventName === 'ProxyCreation') SAFE = ev.args.proxy } catch {} } await registerSafePartial(API, SAFE!, [owner], owner.address, { owners, threshold: 2, saltNonce }) -
Owner: sign the rules for the Safe
import { compileMandate, setMandate } from 'saysoio' const rules = 'Pay only my saved address 0x…. At most 0.05 ETH per payment. Never change owners.' const { compiled, shownToOwner } = await compileMandate(API, rules) console.log(shownToOwner) // read it: this is what you sign await setMandate(API, owner, SAFE!, rules, compiled, { chainId: 84532 })No invite code on the test server, and no Telegram: an ask there is refused.
-
Agent: complete the registration and send through the Safe
import { Oathline, registerSafe, sendViaSafe } from 'saysoio' const API = 'https://sepolia.saysoio.com' const SAFE = '0xTheSafe', OWNER = '0xTheOwner' const { apiKey } = await registerSafe(API, SAFE, [agentAccount], OWNER) // once const oathline = new Oathline({ apiUrl: API, apiKey, chainId: 84532 }) // walletClient: the agent's own client; it signs the Safe transaction and pays the gas const txHash = await sendViaSafe(oathline, { publicClient, walletClient }, SAFE, { to, data, value })There is no shadow mode here: without Sayso’s signature the Safe does not move.
Limits today: single calls only (approve, then swap, is two transactions), no delegatecall, no batches. A cosigned transaction stays valid until the next one replaces it. Spending is counted when a transaction is allowed, not when it runs. Exit: you and the agent sign removeOwner together, without Sayso.
Watch a Safe
Every proposal waiting for signatures (from the Safe app or anything using Safe’s Transaction Service) is checked within about 15 seconds. Sayso rehearses the exact execution on a copy of Base, compares the Safe’s owners, threshold, modules and guard before and after, and judges the result against your rules. You get “Do not sign this”, “Look before you sign” or “Looks fine” on Telegram and the dashboard.
One owner of the Safe runs this once
One signature from one of the Safe’s owners is enough. (The dashboard’s “Watch a Safe” button is not available on the hosted dashboard yet.)
import { watchSafe, compileMandate, setMandate, linkTelegram, watchVerdicts } from 'saysoio'
const API = 'https://api.saysoio.com'
const SAFE = '0xYourSafeAddress' // safeOwner: a viem account of one of the Safe's owners
const { apiKey } = await watchSafe(API, SAFE, safeOwner, safeOwner.address, { invite: 'oi_…' })
const rules = 'Payments only to our three saved vendor addresses 0x…, 0x…, 0x…. ' +
'At most 50,000 USDC per payment. Never change owners or threshold.'
const { compiled, shownToOwner } = await compileMandate(API, rules)
console.log(shownToOwner)
await setMandate(API, safeOwner, SAFE, rules, compiled)
const { url } = await linkTelegram(API, safeOwner, SAFE) // open in Telegram, press Start
console.log(url)
console.log(await watchVerdicts(API, apiKey)) // later: what Sayso said about recent proposals
To make Sayso’s “no” count, move the money to a Safe cosigner (test network today).
Reference
Sayso’s servers and signing addresses
| Chain | Server | For |
|---|---|---|
| Base (8453) | https://api.saysoio.com | Agent wallets, Watch a Safe. By invitation |
| Base Sepolia (84532), test money | https://sepolia.saysoio.com | Safe cosigner, trials. Open, no Telegram, not on the dashboard |
The SDK trusts only these signing addresses, built into it, and refuses a server whose chain is not the wallet’s. You can compare them with GET /health.
| Server | Signs verdicts | Safe key |
|---|---|---|
| Base | 0x96489eBC8C0ff7FBa482536699B1f78d87f1306d | 0x7ad359D3E76eCbf460156457cbB61f1643149841 |
| Base Sepolia | 0x70aA81eB7ED4b1636b50c88E9B0D0CA3107DeE3f | 0x97d1089DaB43EE469Afd84B0713CdF00FfB08B7d |
What Sayso sees, and what it never sees
- Sees: the wallet address, each transaction before signing (
to,data,value) and whatever your optionalcontext()returns. Put no secrets in it. - Never sees: any key.
- Outside services: a chain data node, token data services, the decision model, the rule compiler (OpenRouter), Telegram for approvals and Cloudflare in front of the server see transaction details; the dashboard keeps a copy of the log at Supabase. Details on the privacy page.
- Every verdict is signed for that wallet, that transaction and that chain, with an expiry, and the SDK checks it.
If a key is lost or leaked
- The Sayso API key can ask checks for that one wallet and read the answers. It cannot change rules, approve, sign or move money. If it leaks, message @saysoio at once.
- The agent’s key stolen: the thief can sign without the SDK. Move the funds to a new wallet and register that one. With a Safe cosigner, the agent’s key alone moves nothing.
- The owner’s key lost: the rules in force stay, but nobody can sign new ones for that wallet. Use a new agent wallet with a new owner.
Known limits of the beta
- Chain data can be up to 2 minutes old. A transaction that depends on one sent seconds earlier can show as “fails in simulation”.
- Contracts Sayso cannot read are at best “ask”, never “allow”. For an agent wallet, your rules can name your own contracts and functions; a listed call is then allowed only when the simulation shows nothing at stake.
- Permits, x402 payments and signed logins are not checked by Sayso’s server yet. In enforce mode they follow your
signaturessetting. - Approvals only on Telegram for now. You sign in to the dashboard with your wallet.
- Speed: a check took about 1.2 seconds at the median on our benchmark; 1 in 10 took 7.7 seconds or longer.
- Not externally audited yet.
Troubleshooting
| You see | Do this |
|---|---|
| “an invite code is required” | Pass { invite: 'oi_…' }, to setMandate too. No code: request an invite |
| 409 “already registered” | Nothing to do: keep the API key from the first time. Register once, not on every deploy |
| “this wallet is a contract” | Use a plain key wallet (smart accounts cannot register yet) |
| “the agent’s wallet cannot be its own owner” | Enter the owner’s address, not the agent’s: the owner is another wallet |
| 409 “this wallet now runs code” | The wallet gained code (an EIP-7702 upgrade) after it registered as a plain wallet; remove it, or ask us to register it again as what it now is |
| “sayso cannot check this kind of call yet” | The agent used a batch, a raw send or a deployment in enforce mode; use sendTransaction or writeContract |
| 409 “no owner-signed mandate” | The owner signs the rules for this exact address (step 1) |
| 401 “unknown API key” | Check OATHLINE_API_KEY; register the wallet |
| 429 “too many requests” | About 60 checks a minute per key; retry after retry-after |
| 503 “busy” or “the fork does not answer” | Retry shortly; in shadow mode the transaction goes ahead only when the answer carries Sayso’s signed shadow, else it is refused |
| “receipt signature is not from Sayso” | Check apiUrl and chainId; update the SDK |
| Telegram link does not work | Links work once, for 15 minutes; make a new one |
| “that invite code is not valid or has been used up” | Check the code; ask @saysoio for more places |
| 409 “already linked to another owner” | That owner stays; use a new agent wallet |
| 403 “this API key belongs to a different wallet” | Use each wallet’s own key |
| “could not reach Sayso” or “did not say which chain” | Check the URL and /health; pin chainId |
| “could not turn the mandate into rules” | The rule compiler is busy; try again in a minute |
Turning it off
- Agent wallet: stop using the wrapped wallet.
- Safe setups (available soon): you and the agent remove Sayso as an owner; a watched Safe has nothing to undo.
To delete a wallet’s rules and Telegram link, message @saysoio. Signed log entries are kept as the record that a verdict was given; they include the rules’ text and the linked Telegram chat id (Privacy).
Stuck, or something looks odd? Message @saysoio on X.