Switching OpenClaw to Qwen (Free) via OpenRouter

For months, I’ve been running OpenClaw — my personal AI assistant that lives in my Telegram, watches my crypto portfolio, and handles my daily tasks. I started with Anthropic’s Claude Sonnet. It’s brilliant, but it’s not free.

With OpenRouter, I now have access to models like Qwen 3.6 Plus and Llama 3.3 70B at zero cost. Here is how I switched my instance to the free tier while keeping all my automations running.

Why make the switch?

  • Cost: OpenRouter’s free tier is a game-changer for a 24/7 agent.
  • Resilience: I can swap models instantly without touching my infrastructure.
  • Performance: Qwen 3.6 Plus and Llama 3.3 70B are surprisingly sharp for tool use and logic.

The “Easy Way”: Just ask your agent

The best part about OpenClaw is that it can configure itself. I didn’t dig through JSON files. I just texted my agent:

“I want to switch to OpenRouter using this key: sk-or-v1-.... Use Qwen 3.6 Plus free as primary and Llama 3.3 free as fallback.”

The agent registered the key, updated the config, and restarted its own gateway. Done in seconds.

The “Hard Way”: Manual configuration

If you prefer to do it under the hood, here is what the agent changed:

1. Add the Key (~/.openclaw/agents/main/agent/auth-profiles.json):

{
  "profiles": {
    "openrouter:default": {
      "type": "token",
      "provider": "openrouter",
      "token": "sk-or-v1-YOUR_KEY_HERE"
    }
  }
}

2. Set the Model (~/.openclaw/openclaw.json):

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openrouter/qwen/qwen3.6-plus:free",
        "fallbacks": ["openrouter/meta-llama/llama-3.3-70b-instruct:free"]
      }
    }
  }
}

3. Restart:

openclaw gateway restart

The result

My agent still fetches hourly prices, monitors BlockBeats for news, and checks my “Master Plan” triggers — but now it’s all running on free models.

A note on security

OpenClaw might flag “small models” (<300B params). Since open-source models are less “lobotomized” than commercial APIs, make sure your sandboxing is enabled if you’re giving the agent access to sensitive files. For most of us, the trade-off is worth it.

Final thoughts

Switching to OpenRouter wasn’t just about saving money; it was about control. By decoupling my agent from a single provider, I can now swap models based on performance or availability.

If you’re running OpenClaw, try the Qwen free tier. It’s hard to beat the price of free.

Leave a Reply

Your email address will not be published. Required fields are marked *