PayPerQ Logo

PayPerQ

Blog
AutoClaw Smart Routing — Automatically pick the best model for your OpenClaw
AutoClaw Smart Routing — Automatically pick the best model for your OpenClaw

AutoClaw Smart Routing — Automatically pick the best model for your OpenClaw

Matt Ahlborg

AutoClaw is a smart routing model that analyzes your OpenClaw prompts and automatically picks the right AI model — cutting costs by up to 70%.

What is AutoClaw?

AutoClaw is our intelligent model router designed for OpenClaw users. It solves a simple problem: why pay $25 per million tokens for a top-tier model when your question is "what is 2+2?"

Instead of forcing you to choose a single model or build your own system, AutoClaw analyzes your prompt in under 1 millisecond and routes it to the best model for the job. Simple questions go to fast, cheap models. Complex reasoning tasks go to powerful ones. You get the right model for the right job, every time.

How It Works

AutoClaw scores your prompt across 15 weighted dimensions — including code detection, reasoning complexity, technical vocabulary, multi-step patterns, and more — then classifies it into one of four tiers:

  • Simple — factual questions, translations, definitions → routed to fast, affordable models
  • Medium — general coding, writing, moderate tasks → routed to capable all-rounders
  • Complex — architecture design, multi-step analysis, advanced coding → routed to top-tier models
  • Reasoning — mathematical proofs, formal logic, step-by-step derivations → routed to specialized reasoning models

The entire classification runs on PPQ servers with zero external API calls — it adds no latency to your requests. Prompts with multiple reasoning keywords (like "prove" and "step by step") are automatically escalated to the Reasoning tier with high confidence.

Current Model Assignments (February 2026)

TierAutoEcoPremium
SimpleMiniMax M2.5MiniMax M2.5Claude Sonnet 4.6
MediumKimi K2.5Kimi K2.5Claude Sonnet 4.6
ComplexClaude Sonnet 4.6Kimi K2.5Claude Opus 4.6
ReasoningClaude Opus 4.6Kimi K2.5Claude Opus 4.6

These assignments are updated by PayPerQ as new models are released — you always get the latest and best without changing your configuration.

Key Capabilities

  • 15-dimension prompt analysis covering code, reasoning, technical depth, creativity, constraints, and more
  • Sub-millisecond routing — no latency added to your requests
  • Multilingual support — keyword detection in English, Chinese, Japanese, Russian, and German
  • Three routing profiles — auto (balanced), eco (cheapest), and premium (best quality)
  • Agentic mode detection — automatically identifies multi-step agent tasks and routes accordingly
  • Always up to date — PayPerQ keeps the tier model assignments current with the latest and best models, so you don't have to worry about updating your configuration as new models launch

How to Use on PayPerQ

How to use AutoClaw on PayPerQ

AutoClaw is available through the PayPerQ API. Set your model to autoclaw in any OpenAI-compatible request:

curl https://api.ppq.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -d '{
    "model": "autoclaw",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'

Routing Profiles

ProfileModel IDBest For
Autoautoclaw or autoclaw/autoBalanced quality and cost (default)
Ecoautoclaw/ecoMaximum cost savings
Premiumautoclaw/premiumBest quality for every tier

Using with OpenClaw

If you're using OpenClaw, add the following to your ~/.openclaw/openclaw.json:

{
  "env": {
    "PPQ_API_KEY": "sk-YOUR_API_KEY_HERE"
  },
  "models": {
    "mode": "merge",
    "providers": {
      "ppq": {
        "baseUrl": "https://api.ppq.ai",
        "apiKey": "${PPQ_API_KEY}",
        "api": "openai-completions",
        "models": [
          {
            "id": "autoclaw",
            "name": "autoclaw"
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "ppq/autoclaw"
      }
    }
  }
}

Important: Replace sk-YOUR_API_KEY_HERE with your actual PayPerQ API key from ppq.ai/api-docs. If you already have an openclaw.json with other settings, merge these fields into your existing config rather than replacing it.

Then restart the gateway:

openclaw gateway restart

New to OpenClaw?

If you haven't set up OpenClaw with PayPerQ yet, check out our guide: Using OpenClaw with PayPerQ. It walks you through downloading OpenClaw, getting your API key, and configuring it to use PayPerQ's hundreds of AI models — all in just a few minutes.

What is PayPerQ?

PayPerQ

PayPerQ is a pay-per-query AI service that gives you instant access to hundreds of chat, image, video, and audio AI models in one place. Unlike traditional ChatGPT subscription that charges $20+ per month, PPQ users pay only for what they use—averaging just $4 a month.

Account registration optional. No monthly commitments. Privacy focused. Credit cards and all major cryptos accepted. Just top up with as little as 10 cents and start using premium AI immediately.

Why Use PayPerQ?

  • Access hundreds of AI models from all major providers in one place
  • Pay per use - no subscriptions, no wasted money on unused credits
  • No registration required - start using AI in seconds
  • Start small - top up with as little as 10 cents
  • Privacy-first - conversational data stored locally by default
  • Average cost: ~1 cent per query

Getting Started

  1. Visit ppq.ai
  2. Top up your balance (crypto or credit card, as little as 10 cents)
  3. Select your model and start chatting

No account creation needed—just fund and go.

Credits

AutoClaw's routing engine is based on ClawRouter, an open-source smart LLM router, with additional tweaks and model configurations tailored for the PayPerQ platform and its users.

Features
twitter logotelegram
nostr logo
email