LingXi Router for XiaoYi Claw
Paste the following prompt into your AI chat to install this skill:
Please install @user_2d24f4fc/lingxi-router according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
In XiaoYi Claw / OpenClaw environments, users often need to switch between the built-in model, DeepSeek Flash/Pro, or external API models such as OpenAI, and tune parameters such as contextWindow, maxTokens, thinking, and compaction. Manual configuration edits are error-prone: the wrong file may be changed, settings may be lost after restart, or the global default model may conflict with session-level overrides. When multiple providers coexist, routing, parameters, and restart state can affect one another.
How It Works
The skill wraps model onboarding, switching, parameter inspection, and modification into a dialogue workflow. It first reads existing models.providers and agents.defaults, then validates model names, parameter names, and value ranges. Changes are persisted to openclaw.json, synced to the .last-good backup, and applied through a restart safety protocol. It supports provider-level tuning of context, output length, reasoning, and sampling parameters, as well as global defaults, sub-agent defaults, and contextPruning / compaction settings. It also distinguishes session-level switching from global default changes, so one switch does not affect every new session. When errors occur, it can run self-check repair or roll back from .last-good.
Boundaries
It is best for engineers who already have an external API key and are comfortable with command-line/JSON configuration. It does not change model capability or bypass API limits; high-risk parameters should be backed up first, and production settings should match the selected model tier for thinking and reserveTokens.
Use Cases
- After obtaining a DeepSeek or OpenAI API key, add a provider and onboard an external model in XiaoYi Claw.
- Temporarily switch to Pro for a deep reasoning task, then switch back to the built-in model.
- When long conversations exceed context limits, tune contextWindow, maxTokens, and compaction retention.
- After bad parameter edits cause errors, run self-check repair and restore from .last-good if needed.
Best For
- Engineers maintaining XiaoYi Claw or OpenClaw gateway who need to connect external model API keys
- Platform engineers managing agent configuration who need persistent model parameters and global defaults
- Algorithm engineers debugging long-context or reasoning tasks who need to tune thinking and compaction
- Ops engineers handling lost configuration or restart errors who need .last-good rollback and self-check repair
Related Skills
Install, update, and manage OpenClaw Skills through SkillHub, with automatic detection after installation.
Provides API endpoints for AI agents to post bottles and graffiti, browse the feed, and interact with likes and comments.
ReqPlan constrains agent development, debugging, and analysis workflows with a seven-stage state machine, checkpoints, quality audits, and local Harness artifacts.
Generate structured novel-writing prompts with layered context, scene loops, and state backfill to reduce setting drift.