Skip to content

Repository files navigation

AgentStart.-.From.zero.crypto.to.your.first.AI.agent.-.13.August.2026.mp4

AgentStart

From zero crypto to your first useful AI agent.

AgentStart onboards ordinary users into the Agent Economy. No wallets, no gas, no seed phrases. Users pick a useful AI agent, set a weekly budget, and get results β€” while every payment is a real on-chain transaction executed by KeeperHub on Base Sepolia.

πŸ† Built for the KeeperHub β€” Agents Onchain Hackathon


The Problem

AI agents are powerful, but inaccessible to ordinary people:

  • ❌ No crypto wallet
  • ❌ Don't understand gas fees
  • ❌ Can't verify what agents actually did
  • ❌ No control over spending

The Solution

AgentStart hides all blockchain complexity behind a simple flow:

User: "I want today's crypto market summary"
        ↓
AgentStart: shows agents with clear prices
        ↓
User: picks Research Agent ($0.05) β†’ sets $1/week budget
        ↓
AgentStart: charges via KeeperHub (real on-chain tx)
        ↓
Agent: executes with real-time data (CoinGecko)
        ↓
User: gets result + on-chain receipt (BaseScan link)

The user never sees: wallets, gas, RPC endpoints, approvals. The user always sees: prices, results, receipts, remaining budget.


Demo Agents

Agent Price What it does
πŸ” Research Agent $0.05 Crypto market summary: top coins, global market cap, Fear & Greed, trending
πŸ“° News Agent $0.03 Market-moving analysis: top gainer/loser, trending coins, sentiment
πŸ”” Price Alert Agent $0.02 Price alerts with live CoinGecko prices and parsed targets

All agents use real-time data (CoinGecko + Alternative.me). No mocks.


Key Features

1. Zero-Crypto Onboarding

Users don't need wallets or crypto. KeeperHub manages a Turnkey EOA wallet. Users just pick an agent and pay per request.

2. Real On-Chain Payments

Every request is charged via KeeperHub POST /execute/transfer on Base Sepolia (84532). Users get the transaction hash and a BaseScan link β€” full proof of payment.

3. Safety by Design

  • Simulation first: simulate: true dry-run before every broadcast
  • Idempotency-Key on all POSTs (no double charges)
  • Polling with X-Poll-Interval-Hint respect
  • Rate limiting on the execute endpoint
  • Zod validation on all API inputs

4. Spending Control & Transparency

  • Weekly budget (default $1/week), enforced before every execution (HTTP 402)
  • Spending dashboard: spent / remaining / progress bar
  • Analytics: spending by agent (pie) + timeline (bar) via Recharts
  • Transaction history with on-chain receipts (shareable pages)
  • CSV export of all transactions

5. Production Quality

  • 100% TypeScript, Next.js 14 App Router
  • Unit tests (Vitest) + GitHub Actions CI (typecheck, lint, format, test, build)
  • Structured logging (Pino), HTTP client with retry (ky)
  • React Query caching, Framer Motion live price ticker
  • Accessibility (skip link, focus rings), Inter font, OG image
  • 404 / error pages, skeletons, toasts, step-by-step payment indicator

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     AgentStart UI                         β”‚
β”‚        Next.js 14 + Tailwind + Recharts + Framer          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                      API Routes                           β”‚
β”‚   /api/agents  /api/execute  /api/budget  /api/prices    β”‚
β”‚                      /api/health                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                   AgentStart Core                         β”‚
β”‚  Agent Registry β†’ Budget Check β†’ KeeperHub Charge β†’ Exec β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                    KeeperHub API                          β”‚
β”‚   POST /execute/transfer (simulate first)                β”‚
β”‚   GET  /execute/{id}/status (X-Poll-Interval-Hint)       β”‚
β”‚   GET  /user/wallet (Turnkey EOA)                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚             Base Sepolia (chainId: 84532)                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

External data: CoinGecko API + Alternative.me Fear & Greed Index
Client persistence: localStorage (budget + receipts)

Tech Stack

Layer Technology
Frontend Next.js 14 (App Router), React 18, Tailwind CSS
Charts / Motion Recharts, Framer Motion
State / Data @tanstack/react-query, sonner
Backend Next.js API Routes (TypeScript)
On-chain KeeperHub Direct Execution API β†’ Base Sepolia
Wallet Turnkey EOA (managed by KeeperHub)
Validation Zod
HTTP ky (retry + timeout)
Logging Pino
Tests Vitest
Quality ESLint + Prettier (+ tailwind plugin), GitHub Actions
Deploy Vercel

Getting Started

Prerequisites

  • Node.js 18+
  • KeeperHub account + organization API key (kh_...)

Setup

git clone https://github.com/YOUR_USERNAME/agentstart.git
cd agentstart
npm install

cp .env.example .env
# add your KEEPERHUB_API_KEY to .env

npm run dev

Open http://localhost:3000

Scripts

npm run dev            # development server
npm run build          # production build
npm run start          # production server
npm run test           # unit tests (Vitest)
npm run check          # typecheck + lint + format check
npm run m0             # M0 proof: KeeperHub transfer (simulation + broadcast)
npm run m0:simulate    # M0 proof: simulation only
npm run m1             # M1 proof: Research Agent + payment E2E

Environment

Variable Description Default
KEEPERHUB_API_KEY KeeperHub organization API key required
KEEPERHUB_BASE_URL KeeperHub API base https://app.keeperhub.com/api
CHAIN_ID Target chain 84532 (Base Sepolia)

Project Structure

agentstart/
β”œβ”€β”€ app/                      # Next.js App Router
β”‚   β”œβ”€β”€ page.tsx              # homepage (hero + how it works)
β”‚   β”œβ”€β”€ agents/               # catalog + agent detail (pay & run)
β”‚   β”œβ”€β”€ budget/               # spending dashboard + analytics
β”‚   β”œβ”€β”€ receipt/[id]/         # shareable on-chain receipts
β”‚   └── api/                  # agents / execute / budget / prices / health
β”œβ”€β”€ components/               # providers, PriceTicker, SpendingChart, ShareButton
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ agents/               # Research / News / PriceAlert agents + registry
β”‚   β”œβ”€β”€ budget/               # server budget store + tests
β”‚   β”œβ”€β”€ payments/             # KeeperHub payment module
β”‚   β”œβ”€β”€ core/                 # AgentStart orchestration
β”‚   └── lib/                  # utils, errors, logger, schemas, crypto-api,
β”‚                             # rate-limit, csv, budget-client (localStorage)
β”œβ”€β”€ scripts/                  # m0.ts / m1.ts proof scripts
β”œβ”€β”€ docs/                     # demo-script.md, submission.md
β”œβ”€β”€ context/ + tasks/         # project docs & milestone tracking
└── .github/workflows/ci.yml  # CI: typecheck, lint, format, test, build

KeeperHub Integration (hackathon requirement)

AgentStart uses KeeperHub as its onchain execution layer:

  • GET /user/wallet β€” resolve the org's Turnkey EOA address
  • POST /execute/transfer β€” charge the user per request
    • always simulate first (simulate: true), then broadcast the same body
    • Idempotency-Key header prevents double execution
  • GET /execute/{executionId}/status β€” poll until completed
    • respects X-Poll-Interval-Hint
  • All transactions on Base Sepolia (chainId 84532), verifiable on BaseScan

Milestones

# Milestone Status
M0 KeeperHub on-chain proof (zero-value self-transfer) βœ… Closed
M1 Research Agent + payment flow βœ… Closed
M2 AgentStart onboarding UI (Next.js) βœ… Closed
M3 Spending budget + transparency βœ… Closed
M4 Production polish / demo / submission βœ… Closed

Testing

npm run test     # unit tests: budget store, utils, csv
npm run check    # typecheck + lint + format

CI runs the full quality gate on every push (see .github/workflows/ci.yml).


Deployment

Deployed on Vercel. Required env var: KEEPERHUB_API_KEY.

The budget & receipts persist in the browser (localStorage), so the demo works without a database. The on-chain source of truth is Base Sepolia via KeeperHub.


Future Plans

  • More agents (trading, portfolio, news digests via LLM)
  • KeeperHub spending caps integration (on-chain budget enforcement)
  • Multi-chain support
  • User accounts + persistent database
  • Mobile app

License

MIT

About

AgentStart onboards ordinary users into the Agent Economy.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages