Skip to main content
Build an AI agent that spends from a contract vault with on-chain limits today, using the hand-written AI agent guides, while the AI agent template is in development.
In development. This template is not published yet and details may change. Follow progress on GitHub. Until it ships, use the hand-written guide linked on this page.

What it will do

The AI agent template is listed as Planned in uzolabs/templates. The planned design is an agent that can pay and swap on BOT Chain, but only from a vault contract that enforces the rules:
  • A vault holds the funds. The agent’s own key holds none.
  • The owner sets the rules. A daily spending limit, an allowlist of recipients and an allowlist of tokens. The owner can also pause the vault and withdraw.
  • The agent acts as an operator. It can only pay and swap inside those rules. Anything else reverts on chain.
  • A person approves larger actions. The agent asks in the terminal before it sends, and simulates every transaction first.
These details come from work in progress and may change before release. There’s no install command yet.

How it will work

The limits live in the contract, not in the prompt, so a confused or manipulated model still can’t spend more than one day’s limit. Security model explains the roles.

Do it today

Each part of the planned template has a hand-written guide that runs on testnet now:
1

Understand the approach

AI agents on BOT Chain explains why limits belong in a contract.
2

Deploy a vault

Agent vaults and Spending limits build the owner, operator and daily limit.
3

Give the agent tools

Tool calling connects an AI SDK agent to BOT Chain and simulates before sending.
4

Keep a person in the loop

Human approval adds approvals above a threshold.
5

Check it

Go through the security checklist before you fund anything.

Walkthrough

The agent flow step by step, using the guides.

Customize

Ideas for making it your own.

Security model

Owner, operator and the worst case.

Agent vaults

Build the vault by hand today.

Templates on GitHub

Follow progress.

Templates overview

The templates you can use now.

AI agent security model

How the AI agent template keeps funds safe with an owner, an operator and limits enforced by the vault.

AI agent template walkthrough

A file-by-file tour of the contracts and scripts in the AI agent template.

Customize the AI agent template

Ideas and steps for turning the AI agent template into your own project.
Last modified on October 3, 2026