openclaw - 💡(How to fix) Fix [Feature]: Add option to disable model pricing bootstrap to avoid startup timeout [1 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#59348Fetched 2026-04-08 02:25:39
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Add configuration to disable external model pricing data fetching during Gateway startup.

Error Message

  • Users see confusing error messages even though core functionality works Ignore the error - Works but leaves confusing error messages in logs Confusing error messages in logs Extra time spent investigating the error

Root Cause

Gateway startup sometimes fails or appears to hang with TimeoutError when trying to fetch external model pricing information: [model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout Current behavior is insufficient because:

  • Users see confusing error messages even though core functionality works
  • No way to disable this behavior via configuration
  • Startup delay or apparent "hang" frustrates users
  • Users in regions with slower external API access are disproportionately affected
RAW_BUFFERClick to expand / collapse

Summary

Add configuration to disable external model pricing data fetching during Gateway startup.

Problem to solve

Gateway startup sometimes fails or appears to hang with TimeoutError when trying to fetch external model pricing information: [model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout Current behavior is insufficient because:

  • Users see confusing error messages even though core functionality works
  • No way to disable this behavior via configuration
  • Startup delay or apparent "hang" frustrates users
  • Users in regions with slower external API access are disproportionately affected

Proposed solution

Add a configuration option under agents.defaults to disable pricing bootstrap:

{
  "agents": {
    "defaults": {
      "pricing": {
        "enabled": false
      }
    }
  }
}
Alternative: Increase the default timeout or make pricing bootstrap failures silent (since they don't affect core functionality).


### Alternatives considered

Ignore the error - Works but leaves confusing error messages in logs
Wait for network improvement - Not feasible for users in regions with consistently slow external API access
Manual config editing - Risky and not user-friendly
The proposed config option is the cleanest solution as it gives users explicit control.

### Impact

Affected users/systems:

All OpenClaw users who experience network latency to external pricing APIs
Particularly users in regions with slower external API access (e.g., mainland China)
Severity: Medium (annoying, causes confusion but doesn't block core functionality)

Frequency: Every Gateway startup (if pricing bootstrap is enabled)

Consequences:

Confusing error messages in logs
Perceived startup delay or "hang"
Users may think something is broken when it's not
Extra time spent investigating the error

### Evidence/examples

openclaw-gateway | 2026-04-02T09:52:21.592+08:00 [model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

### Additional information

This is a quality-of-life improvement rather than a critical bug fix. The feature would:

Reduce confusion for new users
Speed up startup for users with slow external API access
Give users explicit control over this behavior
Related: Similar timeout issues may occur with other external data fetching (model catalogs, pricing updates, etc.)

extent analysis

TL;DR

Add a configuration option to disable external model pricing data fetching during Gateway startup to prevent timeouts and confusing error messages.

Guidance

  • To fix the issue, add a configuration option under agents.defaults to disable pricing bootstrap, as proposed in the solution: set "pricing": { "enabled": false } in the configuration file.
  • Verify that the fix worked by checking the Gateway startup logs for the absence of TimeoutError messages related to pricing bootstrap.
  • Consider increasing the default timeout or making pricing bootstrap failures silent as alternative solutions, but these may not provide the same level of user control as the proposed configuration option.
  • Be aware that this fix may not address similar timeout issues that may occur with other external data fetching, such as model catalogs or pricing updates.

Example

{
  "agents": {
    "defaults": {
      "pricing": {
        "enabled": false
      }
    }
  }
}

This configuration snippet demonstrates how to disable pricing bootstrap.

Notes

The proposed solution is a quality-of-life improvement rather than a critical bug fix, and it may not be applicable to all users or regions.

Recommendation

Apply the workaround by adding the proposed configuration option to disable external model pricing data fetching during Gateway startup, as it provides explicit control over this behavior and reduces confusion for users.

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