Intermediate · 10 minutes

How to Connect Space Bunny Alpha in Cline and Cursor via OpenRouter

Step-by-step developer guide to configuring OpenRouter endpoints, setting reasoning token headers, and generating 3D and full-stack code using Space Bunny Alpha 512K context.

Step 1: Generate an OpenRouter API Key

Log in to openrouter.ai, navigate to Keys, and create an API key with adequate credits. Ensure your credit balance covers token usage ($0.80 per 1M input, $3.20 per 1M output).

export OPENROUTER_API_KEY="sk-or-v1-xxxxxxxxxxxxxxxxxxxx"

Step 2: Configure Model Identification in Cline or Cursor

Open VS Code or Cursor settings. Select OpenRouter as the API provider, input your API key, and specify the model identifier: minimax/space-bunny-alpha:free or minimax/space-bunny-alpha.

{
  "cline.apiProvider": "openrouter",
  "cline.openRouterModelId": "minimax/space-bunny-alpha",
  "cline.openRouterApiKey": "sk-or-v1-...",
  "cline.customHeaders": {
    "HTTP-Referer": "https://localhost:3000",
    "X-Title": "Local Engineering Workspace"
  }
}

Step 3: Set Max Output Tokens and Reasoning Effort

Space Bunny Alpha supports up to 524,288 output tokens. Set max_tokens to 65536 for general tasks or 131072 for massive refactoring tasks to prevent premature truncation.

curl https://openrouter.ai/api/v1/chat/completions -H "Authorization: Bearer $OPENROUTER_API_KEY" -d '{"model":"minimax/space-bunny-alpha","messages":[{"role":"user","content":"Ping"}],"max_tokens":4096}'

Step 4: Execute Multi-File Code Synthesis

Issue a prompt specifying full component architectures with parametric SVG or Three.js scene graphs. Inspect the generated files in your diff viewer before accepting changes.