Skip to content

Getting a MiMo API Key

import { Aside, Steps } from ‘@astrojs/starlight/components’;

mimo-tui doesn’t bundle any API key — every user uses their own. This is standard practice (Claude Code requires your own ANTHROPIC_API_KEY too).

  1. Sign up

    Open platform.xiaomimimo.com and create an account.

  2. Claim free tier (optional)

    Xiaomi runs a “Creator Incentive Program” that grants new accounts 1.6 billion free tokens. Enough to run mimo-tui heavily for about half a month.

  3. Create the key

    After login → Console → API Keys → Create

    A tp- prefixed token is generated. Copy it.

  4. Paste into mimo-tui

    Terminal window
    mimo # the first-run wizard will prompt you

    Or just export it:

    Terminal window
    export MIMO_API_KEY=tp-xxxxx

Plan tiers

MiMo Token Plan has several tiers (subject to change — check the official page):

TierPriceTokens
Creator IncentiveFree1.6 billion
ProMonthlyTBD
Max~¥583 / monthTBD

mimo-v2.5-pro uses roughly 40–60% fewer tokens than Claude Opus on equivalent tasks, so the plan stretches further.

Validate the key without mimo-tui

Want to test outside the CLI?

Terminal window
curl https://token-plan-sgp.xiaomimimo.com/anthropic/v1/messages \
-H "x-api-key: tp-xxxxx" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "mimo-v2.5-pro",
"max_tokens": 50,
"messages": [{"role":"user","content":"hi"}]
}'

JSON response means valid. 401 means regenerate.

Security tips

  • The key is your money — never commit it to git
  • Don’t paste it into chat groups, forums, or GitHub issues
  • If you suspect a leak, revoke and regenerate in the console immediately
  • mimo-tui stores it in ~/.mimo/auth.json with mode 0600 (owner-only)

Compared to a Claude API key

AspectClaude (ANTHROPIC_API_KEY)MiMo (MIMO_API_KEY)
Prefixsk-ant-tp-
Domainapi.anthropic.comtoken-plan-*.xiaomimimo.com
ProtocolAnthropic Messages APIAnthropic Messages API ✓
Consoleconsole.anthropic.complatform.xiaomimimo.com

Protocols are identical — mimo-tui uses the same standard Anthropic SDK shape, just a different base URL.

Next