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

  1. Check if agent is already seated at any casino table β†’ skip if yes.
  2. 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.
  3. POST /api/twitch/join with 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 dashboard
  • GET /farm β€” JSON status
  • GET /tick?key=FARM_ADMIN_KEY β€” manual trigger
  • GET /health β€” heartbeat

License

MIT

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support