bailian-maxperf

Patch OpenClaw runtime files to map Bailian token fields and update eight models to 2026 specs.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Arry8/openclaw-edge --skill bailian-maxperf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bailian-maxperf
Source: https://github.com/Arry8/openclaw-edge/tree/main/skills/bailian-maxperf
Command: npx skills add https://github.com/Arry8/openclaw-edge --skill bailian-maxperf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sed, python3, and includes scripts (resource) components.

What problem does it solve?

OpenClaw users relying on Alibaba Bailian sometimes see incorrect token usage statistics and outdated model window settings, which leads to inaccurate usage data and unstable model performance.

Core Features & Use Cases

  • Token Usage Compatibility Fix: maps Bailian token fields to OpenClaw's format to yield accurate token counts
  • Model Window Update: updates eight Bailian models to official 2026 contextWindow and maxTokens specs
  • Auto Validation & Safe-runtime Patch: patches runtime files and validates configuration after changes

Quick Start

Run the maxperf.sh script to apply optimizations and restart the OpenClaw gateway.

Frequently Asked Questions about bailian-maxperf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix incorrect Bailian token usage statistics in OpenClaw?

Run the maxperf.sh script to apply optimizations and restart the OpenClaw gateway. This patches runtime files, maps Bailian token fields, and automatically validates the configuration to ensure accurate usage data.

Why does my Bailian model show outdated context window settings in OpenClaw?

Bailian models display outdated context windows because the runtime lacks the official 2026 specs. Applying the maxperf patch updates eight Bailian models to the correct contextWindow and maxTokens limits to stabilize performance.

Can I use python3 to patch OpenClaw runtime files for Bailian compatibility?

Yes, python3 is a required dependency for patching OpenClaw runtime files for Bailian compatibility. The optimization process uses python3 alongside sed to map token fields and enable automatic configuration validation.

What is the best way to update Bailian models to 2026 contextWindow and maxTokens specs?

The best way to update Bailian models to 2026 contextWindow and maxTokens specs is to run a dedicated runtime patch. This automatically updates eight models and validates the configuration to ensure up-to-date context windows.

Do I need to restart the OpenClaw gateway after applying Bailian token field patches?

Yes, you need to restart the OpenClaw gateway after applying Bailian token field patches. Running the optimization script and restarting the gateway ensures the runtime files are correctly loaded and configuration validation succeeds.