Guides
Autonomous runs
Hand the agent a goal and a budget; it works until done.
Start a run
bash
POST https://squire-henna.vercel.app/api/v1/agents/:id/runs
{ "goal": "Launch a coin themed on today's top-trending stock and seed it with 0.01 ETH", "budgetUsd": 2, "maxSteps": 20 }
→ { run: { id, status: "running", budgetUsd, spentUsd: 0, steps: 0 } }How it runs
- Each step is one chat turn with money-moving tools pre-approved, so the agent can actually act.
- It stops when the agent replies starting with
DONE, whenspentUsdreaches the budget, or atmaxSteps. - The budget is LLM spend in credits, not on-chain value; on-chain actions still use the agent wallet's balance.
bash
GET https://squire-henna.vercel.app/api/v1/runs/:id · GET https://squire-henna.vercel.app/api/v1/agents/:id/runs
POST https://squire-henna.vercel.app/api/v1/runs/:id/stop