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 install
Start the development server:
bun run vercel:dev
Your agent will be available at http://localhost:3000
Deploy your agent to Vercel:
bun run vercel:deploy
After 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.app
Visit 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:dev
to test locally - Deploy: Use
bun run vercel:deploy
to deploy to Vercel - Validate: Use
bun run validate
to check your agent spec - Register: Use
bun run deploy
to register with Bitte Protocol
Scripts can automatically detect your agent URL:
# These work without specifying URL
bun run validate
bun run deploy
URL detection priority:
BITTE_AGENT_URL
environment 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 deploy
If 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