A template repository for building and deploying AI agents on the Bitte Protocol.
- Bun (recommended) or npm/yarn
- Vercel CLI - Install globally:
bun i -g vercel - Bitte Protocol account
Clone this template and install dependencies:
# Setup environment variables
cp .env.example .env
# Install dependencies
bun installStart the development server:
bun run vercel:devYour agent will be available at http://localhost:3000
Deploy your agent to Vercel:
bun run vercel:deployAfter deployment, register your agent with Bitte Protocol:
# Validate your agent spec
bun run validate https://your-agent.vercel.app
# Deploy to Bitte Protocol
bun run deploy https://your-agent.vercel.appVisit your agent at: https://bitte.ai/chat?mode=debug&agentid=your-agent.vercel.app
Copy .env.example to .env and configure your environment variables as needed.
This project works with any package manager, but Bun is recommended for better performance.
- Local Development: Use
bun run vercel:devto test locally - Deploy: Use
bun run vercel:deployto deploy to Vercel - Validate: Use
bun run validateto check your agent spec - Register: Use
bun run deployto register with Bitte Protocol
Scripts can automatically detect your agent URL:
# These work without specifying URL
bun run validate
bun run deployURL detection priority:
BITTE_AGENT_URLenvironment variable- Vercel deployment URL (auto-detected)
Set a custom URL via environment variable:
export BITTE_AGENT_URL=https://your-custom-domain.com
bun run validate
bun run deployIf automatic detection fails:
- Ensure you've deployed to Vercel first
- Run commands from your project root directory
- Manually specify the URL:
bun run deploy https://your-agent.vercel.app
Your agent ID is the hostname from your deployment URL:
- URL:
https://my-agent.vercel.app→ Agent ID:my-agent.vercel.app