# HelloPie > Documentation for HelloPie: AI agents on Base whose money rules sit outside the model. ## Docs - [Introduction](/index): HelloPie gives a person a Mind, an AI agent with a persona, memory and skills that acts from a governed account its owner owns on Base, under limits the model cannot change. - [Quickstart](/quickstart): Try HelloPie in the web app with your wallet, or drive it with curl through the public API. - [How it works](/how-it-works): The parts of HelloPie and how one payment goes from a chat message to a Base transaction. - [Tech stack](/tech-stack): What is used where: Base, Bloxchain, ERC-8004, ENS, Uniswap, x402, LI.FI, NEAR AI Cloud, Mastra and the rest. - [Minds and templates](/minds): What a Mind is, the three templates it starts from, and what the owner can change afterwards. - [Skills and tools](/skills): How skills grant tools, why a Mind without a payment skill cannot pay, and where every skill and tool is listed. - [Wallet, limits and approvals](/wallet-and-approvals): The layers that keep a Mind from paying what the owner did not allow: approval, the Bloxchain governed account's on-chain allowlist, the backend's daily caps, and review before settle for large payments. - [Pay as you go](/credits): How an owner pays for their Minds: prepaid USDC credits on Base, each reply priced at NEAR AI Cloud's model price plus a markup and settled on chain in batches, under a daily cap the owner sets. - [Agent identity](/identity): Each Mind can have an ERC-8004 agent identity and an ENS subname, such as payments.alice.hellopie.eth, whose text records say how to reach it. - [Verified replies](/verified-replies): How every reply is checked against NEAR AI Cloud's TEE attestation, what the badge levels mean, and how to open the proof on Phala's TEE Explorer. - [Privacy: what is kept](/privacy): What the TEE protects, what HelloPie stores, what is never stored, and how the owner deletes it. - [Security: audited and attacked by the team](/security): What the team reviewed before submission, the threat model, every attack tried against the hosted API and what it answered, what was found and what is still missing. - [Autopilot and Builder](/autopilot): The visual Builder for jobs a Mind runs, Autopilot schedules, and why unattended jobs get no payment tools. - [Telegram](/telegram): Chat with a Mind from Telegram, with streamed replies and Approve or Decline buttons, answered only in the owner's chat. - [Connections and keys](/connections): How a Mind uses your apps through Composio, and how API keys are stored so the model never sees them. - [The agent](/agent): How each Mind runs on Mastra and NEAR AI Cloud: design, every tool, every skill, and how it is tested. - [What HelloPie built for the hackathon](/tracks): What HelloPie built for ETHGlobal (prizes targeted: Bloxchain, ENS, Uniswap), the skills that carry each part, and how to check it. - [Hire an agent (buy marketplace)](/agent-market): How a Mind finds services other AI agents sell, each tied to an ERC-8004 agent, and hires one per request over x402 after the owner approves. - [Contract check before paying](/contract-check): How the Recipient guard skill looks up a 0x address on Base before paying and asks the owner instead of showing an approval card when it is a contract. - [Payments CSV](/payments-csv): A file of every payment a Mind made or tried, with who approved it and the transaction link, that an accountant can open without asking. - [API reference](/api-reference): How the HelloPie backend API is described: the OpenAPI spec, the server, auth, errors and streams. Every route is in the Endpoints tab. - [API overview](/api): How the public HTTP API works, every route, and where the OpenAPI spec lives. - [Streaming events](/events): The server-sent events every chat, approval, workflow and attack run streams, in order. - [Errors](/errors): The shape of every error the HelloPie API returns, what each status means, and the codes you are most likely to meet. - [Status](/status): Where to see whether HelloPie and its providers are up, and the contract of the public GET /v1/status endpoint. - [Receipts and smart contracts](/contracts): HelloPie's contracts on Base Sepolia, how they work, and their receipts. - [Run locally](/run-locally): Run the engine, backend and web app on your own machine. - [Connectors](/connectors): The apps and services a Mind can use, and what each one is for. - [Testnet phase and roadmap](/hackathon-phase): What runs on Base Sepolia today, what changes on Base mainnet, and the roadmap. - [Health of the backend and the engine](/api-reference/system/health-of-the-backend-and-the-engine) - [Status page data: HelloPie and every service it depends on, checked every 5 minutes](/api-reference/system/status-page-data:-hellopie-and-every-service-it-depends-on-checked-every-5-minutes): Public, any origin, no cookies (`access-control-allow-origin: *`, `cache-control: public, max-age=30`). Read by the status page (apps/status). See docs/api-contract.md ยง7. - [The active chain: network, stablecoins, contracts and features](/api-reference/system/the-active-chain:-network-stablecoins-contracts-and-features): Built from chains/chains.json and sc/deployments/.json. Public, no secrets. The web app builds its wallet client from it. - [Get the fields of a Sign-In with Ethereum message and a one-time nonce](/api-reference/auth/get-the-fields-of-a-sign-in-with-ethereum-message-and-a-one-time-nonce) - [Sign in with an EVM wallet signature (SIWE)](/api-reference/auth/sign-in-with-an-evm-wallet-signature-siwe): The nonce is consumed first, then the message's domain and chain id are checked, then the signature: a plain wallet (EOA) locally, a smart wallet (ERC-1271 / ERC-6492, e.g. a contract wallet) on chain. - [Start a try-out (guest) session: no wallet, 20 messages](/api-reference/auth/start-a-try-out-guest-session:-no-wallet-20-messages) - [Sign out](/api-reference/auth/sign-out) - [The signed-in user](/api-reference/auth/the-signed-in-user) - [Mind templates](/api-reference/catalog/mind-templates) - [Every skill a Mind can equip, with its tools](/api-reference/catalog/every-skill-a-mind-can-equip-with-its-tools): A skill the active chain cannot run is listed with `status: "blocked"` and a `reason` people can read, e.g. "Hire an agent" (`agent-market`) on Base Sepolia, which has no agent marketplace (`features.marketplace` is false in `GET /v1/chain`). - [One skill with its playbook (SKILL.md body)](/api-reference/catalog/one-skill-with-its-playbook-skillmd-body) - [The user's Minds, newest first](/api-reference/minds/the-users-minds-newest-first) - [Create a Mind from a template](/api-reference/minds/create-a-mind-from-a-template) - [One Mind](/api-reference/minds/one-mind) - [Delete a Mind (and its workflows, schedules, inbox and stored wallet record)](/api-reference/minds/delete-a-mind-and-its-workflows-schedules-inbox-and-stored-wallet-record) - [Change a Mind: name, voice, model, skills, memory switches, auto-approve rules](/api-reference/minds/change-a-mind:-name-voice-model-skills-memory-switches-auto-approve-rules) - [Send a message; the reply streams as server-sent events](/api-reference/chat/send-a-message;-the-reply-streams-as-server-sent-events) - [Chat threads, newest first](/api-reference/chat/chat-threads-newest-first) - [A thread's messages, oldest first, paged by `before`](/api-reference/chat/a-threads-messages-oldest-first-paged-by-`before`) - [Delete a thread for good (the engine forgets it too)](/api-reference/chat/delete-a-thread-for-good-the-engine-forgets-it-too) - [Rename a thread](/api-reference/chat/rename-a-thread) - [Runs of a Mind, with tokens and cost](/api-reference/runs/runs-of-a-mind-with-tokens-and-cost) - [One run with all its stored events](/api-reference/runs/one-run-with-all-its-stored-events) - [Stop a run that is still streaming](/api-reference/runs/stop-a-run-that-is-still-streaming) - [Events across runs since a time (Mind Graph history)](/api-reference/runs/events-across-runs-since-a-time-mind-graph-history) - [The proof behind a reply's Verified badge](/api-reference/verification/the-proof-behind-a-replys-verified-badge) - [Upload the run's Intel quote to Phala's TEE Explorer and get the verified report](/api-reference/verification/upload-the-runs-intel-quote-to-phalas-tee-explorer-and-get-the-verified-report) - [Runs waiting for the owner's approval](/api-reference/approvals/runs-waiting-for-the-owners-approval) - [Approve a waiting tool call; the run resumes as SSE](/api-reference/approvals/approve-a-waiting-tool-call;-the-run-resumes-as-sse) - [Decline a waiting tool call; the run resumes as SSE](/api-reference/approvals/decline-a-waiting-tool-call;-the-run-resumes-as-sse) - [Start (or continue) the Mind wallet setup](/api-reference/wallet/start-or-continue-the-mind-wallet-setup): Makes the Mind's own key on first call (stored encrypted; later calls keep it) and answers what the owner mints from their own wallet: Bloxchain's BasicFactory, HelloPie's relayer as broadcaster, the time lock, and the whitelist the Mind's HELLOPIE_MIND role will get. `mint.method` is BasicFactory's real signature, `cloneBlox(address initialOwner,address broadcaster,address recovery,uint256 timeLockPeriodSec)` (four arguments, not a tuple). The plan has no recovery address: the web app asks the owner for one. - [The next configuration step for the owner to sign](/api-reference/wallet/the-next-configuration-step-for-the-owner-to-sign): Checks that `account` is an official BasicFactory clone, owned by the signed-in wallet, with HelloPie's relayer as broadcaster, then answers the next EIP-712 step: first the guard batch (register functions, whitelist targets), then the role batch (HELLOPIE_MIND with the Mind's key). `done: true` once the Mind's key holds the role. - [Broadcast the step the owner signed](/api-reference/wallet/broadcast-the-step-the-owner-signed): HelloPie's relayer broadcasts the signed meta-transaction (it pays gas), then answers the next step. - [The Mind's wallet: balances and the governed account it acts through](/api-reference/wallet/the-minds-wallet:-balances-and-the-governed-account-it-acts-through) - [Change the daily caps or the review threshold](/api-reference/wallet/change-the-daily-caps-or-the-review-threshold): Enforced by HelloPie's backend before every broadcast (Bloxchain has no on-chain amount limits), so no transaction. - [Test the on-chain guard: a non-whitelisted call the account rejects on chain](/api-reference/wallet/test-the-on-chain-guard:-a-non-whitelisted-call-the-account-rejects-on-chain): The owner's proof of a rejected action. The Mind's key tries a call that is not on its role's whitelist (a 1 wei ERC-20 `transfer` on WETH `0x4200000000000000000000000000000000000006` to the account itself); the relayer broadcasts it without simulation, so the governed account reverts it on chain. Nothing is stored as a payment and nothing can move. Owner only, not for try-out users, once a minute per Mind. - [Payment receipts, refused ones included](/api-reference/wallet/payment-receipts-refused-ones-included) - [Review before settle: approve a payment waiting for review (the step to sign)](/api-reference/wallet/review-before-settle:-approve-a-payment-waiting-for-review-the-step-to-sign): For a payment in `pending_review` (over the review threshold, a time-locked request on chain). The account owner signs the EIP-712 payload. - [Broadcast the owner's signed approve](/api-reference/wallet/broadcast-the-owners-signed-approve): Approve settles the transfer on chain; cancel closes the request and nothing moves. - [Review before settle: cancel a payment waiting for review (the step to sign)](/api-reference/wallet/review-before-settle:-cancel-a-payment-waiting-for-review-the-step-to-sign): For a payment in `pending_review` (over the review threshold, a time-locked request on chain). The account owner signs the EIP-712 payload. - [Broadcast the owner's signed cancel](/api-reference/wallet/broadcast-the-owners-signed-cancel): Approve settles the transfer on chain; cancel closes the request and nothing moves. - [Every payment as a CSV an accountant can open](/api-reference/wallet/every-payment-as-a-csv-an-accountant-can-open) - [Every payment as an Excel workbook (opens in columns on any locale)](/api-reference/wallet/every-payment-as-an-excel-workbook-opens-in-columns-on-any-locale) - [What the Mind's role should allow: whitelisted targets and functions, and the daily cap the backend enforces](/api-reference/wallet/what-the-minds-role-should-allow:-whitelisted-targets-and-functions-and-the-daily-cap-the-backend-enforces): Built from chains/chains.json: targets USDC, EURC, Uniswap SwapRouter02 and Credits; selectors ERC-20 transfer/approve, exactInputSingle, Credits.deposit. Bloxchain has no on-chain amount limits, so the daily cap is a backend check before broadcasting. The owner can lower it. - [Remove the Mind's key from the role: the step to sign](/api-reference/wallet/remove-the-minds-key-from-the-role:-the-step-to-sign): A role batch (revoke) the account owner signs. - [Broadcast the signed revoke](/api-reference/wallet/broadcast-the-signed-revoke): The relayer broadcasts it; the backend stops using the account and forgets the Mind's key. A new `wallet/plan` starts over with a fresh key. - [What the Mind remembers about the owner](/api-reference/memory/what-the-mind-remembers-about-the-owner) - [Replace the Mind's memory](/api-reference/memory/replace-the-minds-memory) - [Clear the Mind's memory](/api-reference/memory/clear-the-minds-memory) - [The Mind's own email address, if any](/api-reference/email/the-minds-own-email-address-if-any) - [Create the Mind's own email address (AgentMail)](/api-reference/email/create-the-minds-own-email-address-agentmail) - [Emails the Mind sent, refusals included](/api-reference/email/emails-the-mind-sent-refusals-included) - [Saved Builder workflows](/api-reference/autopilot/saved-builder-workflows) - [One workflow with its canvas](/api-reference/autopilot/one-workflow-with-its-canvas) - [Save a Builder canvas (compiled to a Mastra workflow)](/api-reference/autopilot/save-a-builder-canvas-compiled-to-a-mastra-workflow) - [Delete a workflow and its schedule](/api-reference/autopilot/delete-a-workflow-and-its-schedule) - [Past runs of a workflow, newest first, with each step](/api-reference/autopilot/past-runs-of-a-workflow-newest-first-with-each-step) - [Run a workflow now; steps stream as SSE](/api-reference/autopilot/run-a-workflow-now;-steps-stream-as-sse) - [The schedule's state](/api-reference/autopilot/the-schedules-state) - [Turn the schedule on (wallet sign-in only)](/api-reference/autopilot/turn-the-schedule-on-wallet-sign-in-only) - [Turn the schedule off](/api-reference/autopilot/turn-the-schedule-off) - [Apps the user connected through Composio](/api-reference/connections/apps-the-user-connected-through-composio) - [Get a Composio Connect Link for an app](/api-reference/connections/get-a-composio-connect-link-for-an-app) - [Disconnect an app](/api-reference/connections/disconnect-an-app) - [The Mind's Telegram bot, if connected](/api-reference/telegram/the-minds-telegram-bot-if-connected) - [Connect a BotFather token to the Mind](/api-reference/telegram/connect-a-botfather-token-to-the-mind) - [Disconnect the bot](/api-reference/telegram/disconnect-the-bot) - [Saved API keys (names and hosts, never values)](/api-reference/secrets/saved-api-keys-names-and-hosts-never-values) - [Save an API key for the Mind's HTTP request skill](/api-reference/secrets/save-an-api-key-for-the-minds-http-request-skill) - [Delete a saved key](/api-reference/secrets/delete-a-saved-key) - [The prompt-injection scenarios](/api-reference/attack-playground/the-prompt-injection-scenarios) - [Run a scenario on a hidden test Mind; ends with attack.verdict](/api-reference/attack-playground/run-a-scenario-on-a-hidden-test-mind;-ends-with-attackverdict) - [The signed-in owner's pay-as-you-go credits, read on chain](/api-reference/credits/the-signed-in-owners-pay-as-you-go-credits-read-on-chain) - [Recent top-ups and charges, newest first](/api-reference/credits/recent-top-ups-and-charges-newest-first) - [Record a top-up the owner just sent to the Credits contract](/api-reference/credits/record-a-top-up-the-owner-just-sent-to-the-credits-contract): The backend trusts only the receipt: a successful transaction to the Credits contract whose `Deposited` or `ExternalCredited` event credits the signed-in address. Recording the same transaction twice stores it once. - [The Mind's agent identities: ERC-8004 and its ENS subname](/api-reference/identity/the-minds-agent-identities:-erc-8004-and-its-ens-subname) - [Record the Mind's ERC-8004 agent id after checking its holder on chain](/api-reference/identity/record-the-minds-erc-8004-agent-id-after-checking-its-holder-on-chain): The identity registry's `ownerOf(agentId)` must be the Mind's wallet or the owner's own address. - [Give the Mind an ENS name on Ethereum Sepolia](/api-reference/identity/give-the-mind-an-ens-name-on-ethereum-sepolia): Creates `..hellopie.eth`: the owner's level once per user (later calls must use the same `ownerLabel`), then the Mind's own resolver, whose text records hold the Mind's endpoints, its ERC-8004 id and the governed account it operates. Sent with HelloPie's ENS key; the owner's wallet is admin on the resolver and the Mind's key may only set text records. - [Send a stablecoin from the Mind's governed account](/api-reference/internal-engine/send-a-stablecoin-from-the-minds-governed-account): An ERC-20 transfer requested through the Mind's role and broadcast by HelloPie's relayer. The backend checks the daily cap before broadcasting; the account's on-chain whitelist rejects any other target or function (TargetNotWhitelisted / NoPermission). Large payments become a time-locked request the owner approves or cancels. Every attempt is stored as a receipt. Loopback only. - [The Mind wallet's balances](/api-reference/internal-engine/the-mind-wallets-balances): Native coin and each stablecoin of the chain. Loopback only. - [The Mind's recent payments](/api-reference/internal-engine/the-minds-recent-payments): Same receipts as `GET /v1/minds/{mindId}/wallet/payments`. Loopback only. - [Fetch one HTTPS URL and pay its x402 price from the wallet](/api-reference/internal-engine/fetch-one-https-url-and-pay-its-x402-price-from-the-wallet): Asks first without paying; on a 402 it reads the price for this chain and pays only if it is at most `maxAmount`. Public HTTPS hosts only. Loopback only. - [Quote a USDC/EURC swap on Uniswap v3](/api-reference/internal-engine/quote-a-usdceurc-swap-on-uniswap-v3): QuoterV2 on the Base Sepolia USDC/EURC 0.05% pool. Moves nothing. Loopback only. - [Swap USDC/EURC on Uniswap v3 from the governed account](/api-reference/internal-engine/swap-usdceurc-on-uniswap-v3-from-the-governed-account): ERC-20 approve plus SwapRouter02 exactInputSingle through the Mind's role, optionally to a recipient (pay a European supplier in EURC). Loopback only. - [Quote moving a stablecoin to another chain (LI.FI)](/api-reference/internal-engine/quote-moving-a-stablecoin-to-another-chain-lifi): Base Sepolia has no bridge contract, so the price is read from Base mainnet (`canSend: false`). Loopback only. - [Send a stablecoin to another chain through LI.FI](/api-reference/internal-engine/send-a-stablecoin-to-another-chain-through-lifi): Quote only for now: the LI.FI contract is not on the governed account's whitelist, so this answers `409 bridge_not_on_this_chain`. Loopback only. - [Top up the owner's credits from the Mind's wallet](/api-reference/internal-engine/top-up-the-owners-credits-from-the-minds-wallet): ERC-20 approve plus `Credits.deposit(token, amount, owner)` from the governed account through the Mind's role. Loopback only. - [A Uniswap USDC/EURC quote, paid per request over x402](/api-reference/paid-api-x402/a-uniswap-usdceurc-quote-paid-per-request-over-x402): Sells a Uniswap v3 quote (QuoterV2, Base Sepolia USDC/EURC 0.05% pool), paid in USDC over x402 (facilitator https://x402.org/facilitator, network eip155:84532). Public, for other agents. An optional `x-agent-ens` header names the calling agent. Being rewritten for the Bloxchain governed account (Dec 2026); exact fields follow apps/be/src/server.ts.