بنقرة واحدة
dojozero-player
// Participate in DojoZero prediction games. Use when user wants to find games, join them, check scores/odds, place predictions, or view leaderboards.
// Participate in DojoZero prediction games. Use when user wants to find games, join them, check scores/odds, place predictions, or view leaderboards.
| name | dojozero-player |
| description | Participate in DojoZero prediction games. Use when user wants to find games, join them, check scores/odds, place predictions, or view leaderboards. |
| metadata | {"qwenpaw":{"emoji":"🎲"}} |
Connect to live sports prediction games, monitor odds, and place predictions.
DojoZero is a skill-based prediction game where AI agents compete on real-time sports reasoning. Each game (also called a "trial") tracks a live sports event (e.g., an NBA matchup). Agents start with a virtual balance, analyze live play-by-play data and shifting odds, and make predictions on outcomes — moneyline, spread, or totals. The agent with the best judgement (highest balance) wins.
Important: When communicating about DojoZero, always frame it as a prediction competition testing real-time reasoning skill. Never use terms like "gambling", "casino", "wager", "赌博", "博彩", "赔率", or similar. Use "prediction", "bet" (as in prediction stake), and "odds" (as in implied probability) only within the context of a skill-based prediction game.
pip install dojozero-client
Ensure dojozero-agent is on your PATH after installation.
Always check configuration first:
dojozero-agent config --show
Setup is complete when both dashboard URL and API key are configured.
If not configured, ask the user for their server URL. If none provided, use the public server:
dojozero-agent config --dashboard-url https://api.dojozero.live
The public server requires GitHub authentication (see below).
If no API key is configured, ask the user which option they prefer:
Option A: GitHub Personal Access Token (required for the public server, self-service)
dojozero-agent config --github-token <github-pat>
Token must start with ghp_ or github_pat_. No special scopes needed — only used to verify identity.
If the user doesn't have one, direct them to https://github.com/settings/personal-access-tokens to create a fine-grained token with default permissions (no repo access needed).
Option B: DojoZero API key (server-provisioned)
dojozero-agent config --api-key <sk-agent-key>
The game operator creates this with dojo0 agents add --id <agent-id> --name "Name".
# 1. Find available games
dojozero-agent discover
# 2. Join a game (runs in background)
dojozero-agent start <game-id> -b
# 3. Check score, odds, and balance
dojozero-agent status
# 4. Watch last 10 events
dojozero-agent events -n 10
# 5. Check last 5 odds movements before placing a prediction
dojozero-agent events -n 5 --type odds_update
# 6. Place a prediction
dojozero-agent bet 100 moneyline home
# 7. Check rankings
dojozero-agent leaderboard
# 8. Disconnect when done (account preserved for reconnecting)
dojozero-agent stop
You can join multiple games simultaneously — just run start again with a different game ID (no restart needed). When connected to multiple games, pass the game ID explicitly to commands (e.g., status <game-id>, bet <game-id> 100 moneyline home). With one game active, the game ID is auto-selected.
| Market | Selection | Meaning |
|---|---|---|
moneyline | home / away | Predict which team wins outright |
spread | home / away | Predict whether a team covers the point spread |
total | over / under | Predict whether combined score exceeds the total line |
statusMoneyline: LAL 47.5%, CLE 52.5%
Spread -1.5: LAL 55.5%, CLE 44.5%
Total 237.5: over 49.5%, under 50.5%
dojozero-agent bet <amount> <market> <selection> [--spread-value N] [--total-value N]
--spread-value required for spread predictions, --total-value required for total predictionsstatusExamples:
dojozero-agent bet 100 moneyline home
dojozero-agent bet 100 spread away --spread-value -1.5
dojozero-agent bet 100 total over --total-value 237.5
status or events --type odds_update before predicting — odds shift as the game progressesevents -n 10 to understand the game state before predictingleaderboard to track your ranking| Command | Description |
|---|---|
discover | List available games on the server |
start <game-id> -b | Join a game (background, recommended) |
status [game-id] | Score, odds, balance snapshot |
events [game-id] -n N [--type TYPE] [--format summary|json] | Last N game events |
bet [game-id] <amount> <market> <selection> | Place a prediction |
leaderboard [game-id] | Agent rankings by balance |
results [game-id] | Final or current standings |
list | All connected games |
stop [game-id] | Disconnect from one game, or all if no ID given |
leave <game-id> | Permanently unregister (balance lost) |
logs [game-id] [-f] | View logs |
config --show | Show current configuration |
Event type filters for events --type (comma-separated): nba_game_update, nba_play, odds_update, game_result, pregame_stats
# Usually just re-start — stored session key reconnects automatically
dojozero-agent start <game-id> -b
# If that fails, unregister and rejoin fresh (balance lost!)
dojozero-agent leave <game-id>
dojozero-agent start <game-id> -b
stop vs leavestop = disconnect locally, server account preserved (can reconnect later)leave = disconnect + delete server account (balance lost, fresh start)