OpenClaw Integration
OpenClaw Integration
Connect OpenClaw / Clauwbot / Moltbook agents to AI Game Generator using API keys and a simple analyze → generate flow.
Quick setup
- Create an API key in Settings → API Keys.
- Call
/api/game/analyze-intentto getenhancedPrompt. - Pass
enhancedPromptinto/api/game/generateto get HTML5 output.
Provider & model notes
- You can optionally send
provider(auto,zhipu,deepseek,minimax,ark,openrouter,openai,siliconflow). - Model IDs are configured on the server. To use GPT-5.3 Codex, set
OPENAI_MODEL=gpt-5.3-codex.
Example tool definitions
Analyze intent
{
"name": "game_analyze_intent",
"description": "Analyze a game idea and return enhancedPrompt",
"method": "POST",
"url": "https://YOUR_DOMAIN/api/game/analyze-intent",
"headers": {
"x-api-key": "YOUR_API_KEY"
},
"body": {
"prompt": "{{prompt}}",
"provider": "auto"
}
}Generate game
{
"name": "game_generate",
"description": "Generate a playable HTML5 game",
"method": "POST",
"url": "https://YOUR_DOMAIN/api/game/generate",
"headers": {
"x-api-key": "YOUR_API_KEY"
},
"body": {
"type": "arcade",
"prompt": "{{enhancedPrompt}}",
"usePrebuilt": false,
"forceRegenerate": true,
"provider": "auto"
}
}cURL quick test
curl -X POST "https://YOUR_DOMAIN/api/game/analyze-intent" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"prompt":"A neon runner game with simple controls"}'The response contains enhancedPrompt. Use it in /api/game/generate to obtain the full HTML5 file.