← All Guides
🤖

OpenRouter API Key

Required ~3 minutes

OpenRouter is an API gateway that gives you access to models from Google, Anthropic, OpenAI, and more — all through one API key. OpenMind uses it to power the AI conversation.

What you'll need

  • - A Google or GitHub account (for sign-up)
  • - No credit card required — free credits available
1

Create an Account

Go to openrouter.ai and sign up with Google or GitHub.

It takes 30 seconds. No credit card needed.

2

Generate an API Key

Go to openrouter.ai/keys.

Click Create Key.

Name it something like OpenMind and click Create.

Your key will look something like:

sk-or-v1-abc123def456...

Copy it immediately — you can't view it again after leaving the page.

3

Choose a Model

During OpenMind setup, you'll pick your LLM model:

Choose your LLM model
All models below support tool calling (required for OpenMind)
1  xiaomi/mimo-v2-pro — reliable + affordable, $1/$3 per 1M (default)
2  anthropic/claude-sonnet-4-6 — best reasoning, $3/$15 per 1M
3  openai/gpt-5.4 — GPT ecosystem, $2.50/$15 per 1M
4  google/gemini-2.5-pro — 1M context, $1.25/$10 per 1M
 Or type any OpenRouter model ID
Enter 1-4 or a model ID (1): 1

Recommendation: Start with xiaomi/mimo-v2-pro (default). Reliable and affordable. You can always switch later with /setup model.

4

Add Credits (Optional)

New accounts often come with free credits. If you run out, you can add more at openrouter.ai/credits.

Typical costs for a study session:

MiMo V2 Pro (default)
~$0.005–0.02 / session
Claude Sonnet 4.6
~$0.02–0.10 / session
🔒

Security

Your API key is stored locally at ~/.openmind/config.json with restricted permissions. It is sent only to openrouter.ai for model requests. Your conversations pass through OpenRouter to the model provider — see the OpenRouter privacy policy for details.