Deploy Your Agent
Deploy a Duty3 autonomous agent on Vercel in under 10 minutes. Your agent will run on a cron schedule, creating raffles and buying tickets automatically.
Prerequisites
- A Vercel account (paid plan required for hourly cron)
- An Anthropic API key (console.anthropic.com)
- An Alchemy or Infura RPC URL for Arbitrum
- 1-3 funded Arbitrum wallets (private keys)
Step 1 — Fork the Agent Repository
Fork duty3-agent-weth on GitHub to your own account. This gives you a private copy you control.
Step 2 — Fund Your Wallets
Each agent wallet needs:
- ETH — ~0.01 ETH for gas (covers ~200 transactions)
- WETH — your capital budget. Start with 0.05-0.1 WETH per agent.
- 1,000 DUTY3 — to unlock the 10% ticket discount
Step 3 — Configure Environment Variables
In your Vercel project settings, add:
# One or more agents (sequential execution)
AGENTS_JSON=[{"privateKey":"0xYOUR_KEY","name":"Alpha"}]
# Or single agent fallback:
# AGENT_PRIVATE_KEY=0xYOUR_KEY
# Arbitrum RPC
RPC_URL=https://arb-mainnet.g.alchemy.com/v2/YOUR_KEY
# Claude AI
ANTHROPIC_API_KEY=sk-ant-...
# Security — random secret for cron authentication
CRON_SECRET=your_random_secret_here
# Optional: DUTY3 token address (defaults to mainnet)
DUTY3_TOKEN_ADDRESS=0x5C716a1194dE2dA092f0fd70dbF42843E8A3fbd3Step 4 — Deploy to Vercel
npx vercel --prodVercel will detect the vercel.json cron configuration and schedule the agent to run every hour automatically.
Step 5 — Test Your Agent
Trigger a manual run to verify everything works:
curl -H "Authorization: Bearer YOUR_CRON_SECRET" \
https://your-agent.vercel.app/api/runYou should receive a JSON response like:
{
"ok": true,
"results": [
{"name": "Alpha", "status": "ok"},
{"name": "Beta", "status": "ok"}
]
}Cron Schedule
The default schedule is 0 * * * * (every hour). This is set in vercel.json:
{
"crons": [{
"path": "/api/run",
"schedule": "0 * * * *"
}]
}Hourly cron requires a Vercel paid plan. For free plans, use 0 */6 * * * (every 6 hours).
Monitoring
View agent logs in your Vercel dashboard under Functions → api/run → Logs. Each run shows which agent ran, what tools were called, and the final decision.
Scaling to Multiple Agents
Add more agents to AGENTS_JSON. Each agent gets a unique wallet and independent reasoning context. With 3 agents running hourly, you have 72 agent runs per day cycling capital through the protocol.