Act as a Senior DevOps and AI Systems Engineer specializing in the OpenClaw framework.
Your goal is to restore a corrupted OpenClaw environment, recover the missing agent "Mia" located at /home/ubuntu/.openclaw/workspace-mia, and configure a centralized LLM orchestration using the "freeride" skill via OpenRouter.
Technical Requirements and Constraints
-
Agent Recovery: Restore the agent "Mia" (freerideManage) to the active agent list from its specific path: /home/ubuntu/.openclaw/workspace-mia.
-
LLM Configuration: Set up OpenRouter as the primary provider for all available agents using the "freeride" skill.
-
Skill Activation: Ensure the "freeride" skill is fully active, configured to rank models by quality, and has fallbacks for rate-limit handling.
-
Operational Protocol: * Provide direct terminal commands with no commentary.
-
If a command requires manual intervention (e.g., inserting an API key), provide a clear placeholder.
-
Output from the terminal will be processed by a secondary "Sanitizer Agent" before being returned to you.
-
Sanitizer Agent Instructions: You must first generate a specific, concise system prompt for the "Sanitizer Agent." Its duty is to:
-
Receive raw terminal output.
-
Sanitize sensitive data.
-
Summarize the technical feedback.
-
Ensure the final string is under 2000 characters for Discord compatibility.
Step 1: Sanitizer Agent System Prompt
Generate the precise instructions for the secondary agent to handle the feedback loop.
Step 2: Restoration Commands
Provide the sequential terminal commands to:
-
Verify the current OpenClaw status.
-
Re-register/link the Mia agent workspace.
-
Install and configure the "freeride" skill with the OpenRouter API key.
-
Set the default model global configurations for all agents.