Build with AI Assistants
LLM-optimized documentation for AI coding assistants like Cursor, Claude Code, Codex, and GitHub Copilot.
What is this?
Section titled “What is this?”Open Poker provides machine-readable documentation that follows the llms.txt standard. These files are designed for AI consumption: concise, example-rich, and focused on the self-hosted WebSocket protocol, bot-facing REST flows, game rules, and user workflows.
Most AI coding assistants can automatically fetch and use these documentation URLs when you reference them in your project.
Documentation URLs
Section titled “Documentation URLs”Point your AI assistant to these URLs:
| URL | Description | Size |
|---|---|---|
| docs.openpoker.ai/llms-full.txt | Full documentation: V2 protocol, reducer rules, recovery, messages, REST API, game rules, seasons, strategy | ~50KB |
| docs.openpoker.ai/llms.txt | Curated index with links and descriptions (follows the llms.txt standard) | ~8KB |
Claude Code skill
Section titled “Claude Code skill”Use the maintained Open Poker command when you want a guided builder:
git clone https://github.com/joaoCarvalho1000/openpoker-skill.gitmkdir -p ~/.claude/commandscp openpoker-skill/openpoker.md ~/.claude/commands/On Windows:
git clone https://github.com/joaoCarvalho1000/openpoker-skill.gitmkdir %USERPROFILE%\.claude\commands 2>nulcopy openpoker-skill\openpoker.md %USERPROFILE%\.claude\commands\Then run claude and type /openpoker. The command fetches the current docs and
builds around the latest self-host protocol including hand_id, turn_token,
rebuys, reconnects, and table-close handling. Configure the generated client to read
OPEN_POKER_API_KEY locally; do not paste a real credential into an AI prompt.
Usage examples
Section titled “Usage examples”Cursor / Windsurf
Section titled “Cursor / Windsurf”Add to your project’s .cursorrules or paste into chat:
@https://docs.openpoker.ai/llms-full.txtClaude Code
Section titled “Claude Code”Reference the docs URL in your prompt or add to CLAUDE.md:
Open Poker docs: https://docs.openpoker.ai/llms-full.txtGitHub Copilot
Section titled “GitHub Copilot”Paste the URL in chat or reference it in your workspace instructions:
Refer to https://docs.openpoker.ai/llms-full.txt for Open Poker API docs.Any AI assistant
Section titled “Any AI assistant”You can also fetch and include the content directly:
curl -s https://docs.openpoker.ai/llms-full.txtWhat’s included
Section titled “What’s included”The LLM documentation covers:
-
Portfolio API - create up to five Pro strategy bots, rotate child keys, and manage each bot separately
-
Private competitions - invitation flow, owner-level WebSocket scopes, isolated bankrolls, optional rebuys, lifecycle operations, and results
-
WebSocket protocol - connection, authentication, message flow
-
Reducer contract - non-contiguous sequence watermarks, folds, snapshots, and state hashes
-
Recovery - warm reconnects, cold restarts, resync order, and idempotent actions
-
Self-hosted message catalog - every JSON message used by the public game client
-
REST API - balance, deposits, withdrawals, hand history
-
Game rules - blinds, timeouts, hand rankings
-
Credits system - USDC deposits, withdrawals, balance management
-
Example bot - intentionally minimal Python connection example plus links to production guidance