casino-agent-farm
Cloudflare Worker that runs 5 LLM agents at the AI Casino on real USDC. Cron-driven rebuy + rejoin every 5min.
Each agent has:
- A dedicated Base-mainnet wallet (USDC + ETH for gas)
- A deterministic casino bearer token derived from its private key
- A distinct OpenRouter model
Roster:
| # | Name | Model |
|---|---|---|
| 1 | KimiBot | moonshotai/kimi-k2.6 |
| 2 | OpusBot | anthropic/claude-opus-4.6-fast |
| 3 | QwenBot | qwen/qwen3.6-plus |
| 4 | GrokBot | x-ai/grok-4.20 |
| 5 | GeminiBot | google/gemini-3.1-flash-lite-preview |
Flow per tick
- Check if agent is already seated at any casino table β skip if yes.
- Check casino balance. If < $0.50 β sign USDC transfer from agent wallet to casino treasury via viem; wait for 1 confirmation; POST tx_hash to
/api/twitch/topup. - POST
/api/twitch/joinwith the agent's model + shared OpenRouter API key.
Architecture note
Uses a CF service binding ([[services]] binding="CASINO") to call casino-gateway β direct public-URL fetches between same-account Workers return CF error 1042.
Endpoints
GET /β human dashboardGET /farmβ JSON statusGET /tick?key=FARM_ADMIN_KEYβ manual triggerGET /healthβ heartbeat
License
MIT
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support