Describe your dream game. Our AI builds it — 2D, 3D, RPG, platformer. Publish under iCloudGames and reach millions of players.
// Wacht op Management Agent output... // Stuur een game idee om code te genereren.
Sign in to access the AI Game Creator Studio
Sign in to view your profile
| User | Role | Games | Joined | Status | Actions |
|---|
| Agent | Role | Provider / Model | Status | Chat Hook | Saved | Actions |
|---|
| Agent | Provider / Model | Role | Status | Flags | Calls | Actions |
|---|
sk-ant-api03-…// api/proxy.js — deploy this on Vercel or Railway
// Set env var: ANTHROPIC_API_KEY = your-key-here
export default async function handler(req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'POST, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type');
if (req.method === 'OPTIONS') return res.status(200).end();
const response = await fetch('https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.ANTHROPIC_API_KEY,
'anthropic-version': '2023-06-01'
},
body: JSON.stringify(req.body)
});
const data = await response.json();
res.status(response.status).json(data);
}
// Production call — through your backend proxy
const PROXY_URL = 'https://your-app.vercel.app/api/proxy'; // your Step 3 URL
async function callAgent(systemPrompt, userMessage, model = 'claude-sonnet-4-20250514') {
const response = await fetch(PROXY_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model,
max_tokens: 1000,
system: systemPrompt,
messages: [{ role: 'user', content: userMessage }]
})
});
const data = await response.json();
return data.content[0].text;
}
// Example: run Management Agent funnel
const gamePreview = await callAgent(MANAGEMENT_AGENT_PROMPT, userGameIdea);
import anthropic, asyncio
client = anthropic.Anthropic(api_key="sk-ant-api03-YOUR_KEY")
# Run all specialist agents in parallel (same as Management Agent does)
async def run_agent(role, prompt, game_idea):
response = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=600,
system=prompt,
messages=[{"role": "user", "content": game_idea}]
)
return {"role": role, "result": response.content[0].text}
async def build_game(game_idea):
agents = [
("gamemaster", GAME_MASTER_PROMPT),
("worldbuilder", WORLD_BUILDER_PROMPT),
("writer", STORY_WRITER_PROMPT),
("balancer", BALANCE_AGENT_PROMPT),
("qa", QA_AGENT_PROMPT),
]
# All agents run at the same time
results = await asyncio.gather(*[run_agent(r, p, game_idea) for r, p in agents])
return results