# Send Switch Modes to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "switch-modes",
    "name": "Switch Modes",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/serudda/switch-modes",
    "canonicalUrl": "https://clawhub.ai/serudda/switch-modes",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/switch-modes",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=switch-modes",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "REFERENCE.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "switch-modes",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T00:01:23.359Z",
      "expiresAt": "2026-05-11T00:01:23.359Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=switch-modes",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=switch-modes",
        "contentDisposition": "attachment; filename=\"switch-modes-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "switch-modes"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/switch-modes"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/switch-modes",
    "downloadUrl": "https://openagent3.xyz/downloads/switch-modes",
    "agentUrl": "https://openagent3.xyz/skills/switch-modes/agent",
    "manifestUrl": "https://openagent3.xyz/skills/switch-modes/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/switch-modes/agent.md"
  }
}
```
## Documentation

### Switch Modes

Dynamically switch between AI models to optimize costs and performance.

### When to Use This Skill

Activate this skill when the user mentions:

Mode switching commands: eco mode, balanced mode, smart mode, max mode
Status check: /modes status
Configuration: /modes setup

### How It Works

The skill manages 4 predefined modes, each mapped to a specific model:

eco → Cheapest model (for summaries, quick questions)
balanced → Daily driver model (for general work)
smart → Powerful model (for complex reasoning)
max → Most powerful model (for critical tasks)

Configuration is stored in ~/.openclaw/workspace/switch-modes.json.

### 1. Detect Mode Commands

When the user message contains any of these patterns:

eco mode or eco (standalone)
balanced mode or balanced
smart mode or smart
max mode or max
/modes status
/modes setup

### 2. Handle Setup Command (/modes setup)

If the configuration file doesn't exist or user requests setup:

Use AskUserQuestion to gather model preferences for each mode:

ECO mode: Recommend anthropic/claude-3.5-haiku
BALANCED mode: Recommend anthropic/claude-sonnet-4-5
SMART mode: Recommend anthropic/claude-opus-4-5
MAX mode: Recommend anthropic/claude-opus-4-6 or openai/o1-pro



Create/update ~/.openclaw/workspace/switch-modes.json with the structure:

{
	"eco": "model-id",
	"balanced": "model-id",
	"smart": "model-id",
	"max": "model-id"
}

Confirm setup completion to the user.

### 3. Handle Status Command (/modes status)

Read the OpenClaw config at ~/.openclaw/openclaw.json to get current model
Read ~/.openclaw/workspace/switch-modes.json to get mode mappings
Determine which mode is currently active by matching the current model
Display: ✅ Currently in [MODE] mode using [MODEL_ID]

### 4. Handle Mode Switch Commands

When user requests a mode switch:

Read configuration:
cat ~/.openclaw/workspace/switch-modes.json

If file doesn't exist, prompt user to run /modes setup first.


Get the target model from the config based on requested mode (eco/balanced/smart/max)


Update OpenClaw config:

Read current config: ~/.openclaw/openclaw.json
Update the model field with the new model ID
Write back to ~/.openclaw/openclaw.json



Confirm to user:
✅ [MODE] mode activated
Now using: [MODEL_ID]

### Example 1: Mode Switch

User: eco mode
Agent: [reads switch-modes.json, gets model for "eco"]
Agent: [updates openclaw.json with new model]
Agent: ✅ ECO mode activated
      Now using: anthropic/claude-3.5-haiku

### Example 2: Status Check

User: /modes status
Agent: [reads openclaw.json for current model]
Agent: [reads switch-modes.json for mode mappings]
Agent: ✅ Currently in BALANCED mode using anthropic/claude-sonnet-4-5

### Example 3: First Time Setup

User: /modes setup
Agent: [uses AskUserQuestion for each mode]
Agent: [creates ~/.openclaw/workspace/switch-modes.json]
Agent: ✅ Setup complete! You can now use:
      - eco mode
      - balanced mode
      - smart mode
      - max mode

### File Locations

Configuration: ~/.openclaw/workspace/switch-modes.json
OpenClaw Config: ~/.openclaw/openclaw.json
Example Config: See example-config.json in skill directory

### Common Edge Cases

Config file missing: Prompt user to run /modes setup
Invalid model ID: Show error and ask user to reconfigure that mode
Model not available: Suggest checking API keys and model access in OpenClaw
Ambiguous input: If just "eco" or "smart" without "mode", still treat as mode switch command
Case insensitive: Accept "ECO MODE", "Eco Mode", "eco mode" all the same

### Important Notes

Mode switching is instant - no restart required
Changes only affect the current session's default model
Preserve all other settings in openclaw.json when updating model
Always validate JSON before writing config files
Use absolute paths: ~/.openclaw/... not relative paths

### Reference

For detailed troubleshooting, supported models list, and FAQ, see ./REFERENCE.md.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: serudda
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T00:01:23.359Z
- Expires at: 2026-05-11T00:01:23.359Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/switch-modes)
- [Send to Agent page](https://openagent3.xyz/skills/switch-modes/agent)
- [JSON manifest](https://openagent3.xyz/skills/switch-modes/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/switch-modes/agent.md)
- [Download page](https://openagent3.xyz/downloads/switch-modes)