openclaw - 💡(How to fix) Fix [Feature]: Add Xiaomi MiMo Token Plan provider support / fix Token Plan connection

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Add first-class Xiaomi MiMo Token Plan support so OpenClaw can connect with a tp- API key, custom Token Plan Base URL, and clear provider validation.

Error Message

Current behavior is insufficient because there is no clear dedicated Token Plan provider setup, no obvious connection test, and no clear error explaining whether the problem is the Base URL, key type, provider name, or model configuration. This can work, but it is error-prone. Users may not know where the provider block goes, whether to use xiaomi or a custom provider name like xiaomi-coding, or whether an old Xiaomi auth profile is interfering.

Root Cause

Current behavior is insufficient because there is no clear dedicated Token Plan provider setup, no obvious connection test, and no clear error explaining whether the problem is the Base URL, key type, provider name, or model configuration.

Fix Action

Fix / Workaround

This is possible, but weaker because Xiaomi MiMo is already documented as OpenClaw-compatible. Users should not need to create a generic workaround when the platform could expose Token Plan as a proper provider option.

Code Example

{
  "models": {
    "mode": "merge",
    "providers": {
      "xiaomi-coding": {
        "baseUrl": "TOKEN_PLAN_BASE_URL",
        "apiKey": "tp-REDACTED",
        "api": "openai-completions",
        "models": [
          {
            "id": "mimo-v2.5-pro",
            "name": "mimo-v2.5-pro",
            "reasoning": true,
            "input": ["text"],
            "contextWindow": 1048576,
            "maxTokens": 32000
          }
        ]
      }
    }
  }
}

### Alternatives considered


## Alternatives considered
RAW_BUFFERClick to expand / collapse

Summary

Add first-class Xiaomi MiMo Token Plan support so OpenClaw can connect with a tp- API key, custom Token Plan Base URL, and clear provider validation.

Problem to solve

Xiaomi MiMo Token Plan / subscription API does not connect cleanly in OpenClaw.

The current Xiaomi provider flow appears to support the normal pay-as-you-go API key, but the Token Plan setup is different. Token Plan uses a tp-... key and a separate Token Plan Base URL from Xiaomi subscription management.

Right now, OpenClaw does not make it clear how to configure Token Plan correctly or verify that the subscription route is being used. This makes it easy to accidentally keep using the wrong Xiaomi provider/auth path or exhausted pay-as-you-go usage.

Current behavior is insufficient because there is no clear dedicated Token Plan provider setup, no obvious connection test, and no clear error explaining whether the problem is the Base URL, key type, provider name, or model configuration.

Proposed solution

Add first-class Xiaomi MiMo Token Plan support to OpenClaw.

Desired behavior:

  1. Add a separate provider option:

    • Xiaomi MiMo Pay-as-you-go
    • Xiaomi MiMo Token Plan
  2. For Token Plan setup, allow the user to enter:

    • Token Plan Base URL
    • Token Plan API key starting with tp-
    • model selection, such as mimo-v2.5-pro
  3. Validate the key type:

    • sk-... = pay-as-you-go
    • tp-... = Token Plan / subscription
  4. If a tp- key is entered into the normal Xiaomi provider, show a warning: “This looks like a Token Plan key. Please use Xiaomi MiMo Token Plan provider setup.”

  5. Add a connection test button:

    • checks Base URL
    • checks API key
    • checks model availability
    • confirms whether OpenClaw can send a simple test prompt
  6. Add a clear openclaw.json example for Token Plan.

Suggested provider shape:

{
  "models": {
    "mode": "merge",
    "providers": {
      "xiaomi-coding": {
        "baseUrl": "TOKEN_PLAN_BASE_URL",
        "apiKey": "tp-REDACTED",
        "api": "openai-completions",
        "models": [
          {
            "id": "mimo-v2.5-pro",
            "name": "mimo-v2.5-pro",
            "reasoning": true,
            "input": ["text"],
            "contextWindow": 1048576,
            "maxTokens": 32000
          }
        ]
      }
    }
  }
}

### Alternatives considered


## Alternatives considered

```markdown
1. Manually editing `~/.openclaw/openclaw.json`

This can work, but it is error-prone. Users may not know where the provider block goes, whether to use `xiaomi` or a custom provider name like `xiaomi-coding`, or whether an old Xiaomi auth profile is interfering.

2. Using the normal Xiaomi provider setup

This appears to work better for pay-as-you-go keys, but it is confusing for Token Plan keys. It can lead users to keep using the wrong billing/usage pool or fail connection entirely.

3. Using another OpenAI-compatible provider manually

This is possible, but weaker because Xiaomi MiMo is already documented as OpenClaw-compatible. Users should not need to create a generic workaround when the platform could expose Token Plan as a proper provider option.

4. Relying only on documentation

Docs help, but the app should detect key type and guide the user. A built-in provider option and test button would prevent many setup mistakes.

### Impact

Affected users/systems/channels:
- OpenClaw users trying to use Xiaomi MiMo Token Plan / subscription API
- Users who have both pay-as-you-go and Token Plan access
- Users running agents that need a cheaper or subscription-based fallback model
- OpenClaw provider setup and model routing

Severity:
Blocks workflow.

Frequency:
Always or often, whenever a user tries to configure Token Plan manually or accidentally uses the normal Xiaomi provider with a `tp-` key.

Practical consequences:
- Users cannot connect Xiaomi MiMo Token Plan reliably.
- Users may accidentally keep using exhausted pay-as-you-go usage.
- Users waste time debugging Base URL/key/provider-name issues.
- OpenClaw may show confusing provider failures.
- Users cannot use `mimo-v2.5-pro` as a working model fallback for agents.
- Extra manual editing of `openclaw.json` increases risk of breaking OpenClaw config.

### Evidence/examples

_No response_

### Additional information

_No response_

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature]: Add Xiaomi MiMo Token Plan provider support / fix Token Plan connection