openclaw - 💡(How to fix) Fix model-pricing-cache: TimeoutError on OpenRouter models [3 comments, 3 participants]

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…
GitHub stats
openclaw/openclaw#53639Fetched 2026-04-08 01:25:33
View on GitHub
Comments
3
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
commented ×3subscribed ×2renamed ×1unsubscribed ×1

[model-pricing] pricing bootstrap failed: TimeoutError occurs during startup when using OpenRouter models (such as moonshotai/kimi-k2.5).

Error Message

[model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

Root Cause

[model-pricing] pricing bootstrap failed: TimeoutError occurs during startup when using OpenRouter models (such as moonshotai/kimi-k2.5).

Code Example

{
  "agents": {
    "defaults": {
      "model": { 
        "primary": "openrouter/moonshotai/kimi-k2.5" 
      }
    }
  }
}

---

[model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout
RAW_BUFFERClick to expand / collapse

Summary

[model-pricing] pricing bootstrap failed: TimeoutError occurs during startup when using OpenRouter models (such as moonshotai/kimi-k2.5).

Versions

  • OpenClaw 2026.3.23

Config (relevant part)

{
  "agents": {
    "defaults": {
      "model": { 
        "primary": "openrouter/moonshotai/kimi-k2.5" 
      }
    }
  }
}

Log

[model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

Impact

  • Startup logs a warning error about the pricing bootstrap timing out.
  • Pricing cache remains unpopulated for these models.
  • There is currently no configuration option to disable the pricing feature to prevent this timeout/log.
  • Happens with multiple different OpenRouter models.
  • Delays the gateway startup process until the timeout is reached.

Repro

Configure agents.defaults.model.primary to openrouter/moonshotai/kimi-k2.5 (or other OpenRouter models) and start the gateway. The timeout error appears in the logs.

extent analysis

Fix Plan

To resolve the TimeoutError during startup, we will introduce a configuration option to increase the pricing bootstrap timeout.

Step-by-Step Solution

  • Update the configuration to include a pricingBootstrapTimeout option:
{
  "agents": {
    "defaults": {
      "model": { 
        "primary": "openrouter/moonshotai/kimi-k2.5",
        "pricingBootstrapTimeout": 300000 // 5 minutes in milliseconds
      }
    }
  }
}
  • Alternatively, consider implementing a retry mechanism with exponential backoff to handle temporary failures.

Verification

  • Restart the gateway and verify that the TimeoutError is no longer present in the logs.
  • Check the pricing cache to ensure it is populated correctly.

Extra Tips

  • Monitor the gateway startup process to ensure the increased timeout does not negatively impact performance.
  • Consider opening a feature request to add a configuration option to disable the pricing feature altogether.

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