@alharlow111

ToggleLogic

Free-tier model routing for OpenClaw — sticky owner overrides, static routes, a deliberately-simple cheapest-default, and a structured audit stream. Bring your own provider credentials; no benchmark engine or model registry included. PATENT PENDING. An optional, separately-licensed ToggleLogic Intelligence layer adds benchmark-driven automatic selection.

当前版本
v1.0.0
code-plugin社区source-linked

ToggleLogic (Free Tier) — model routing for OpenClaw

PATENT PENDING. Source-available under the ToggleLogic Free-Tier License (see LICENSE) — free, limited, revocable use; all rights reserved. Not open-source; not MIT/Apache. © 2026 Motherboard, Inc. · https://togglelogic.ai/

ToggleLogic routes each OpenClaw request to a model you control — bring your own provider credentials, declare intent, and let the plugin apply your choices. This free tier gives you:

  • Owner overrides (sticky, learnable). Tell your assistant "use Opus for this" and a deployment-side switch writes a sticky override the plugin applies above everything else — until you switch back. ToggleLogic is the generic mechanism; your deployment owns the "remember it / prompt to switch back" workflow.
  • Static / intent routes. Map tasks to models in configuredRoutes.
  • A deliberately-simple cheapest-default. Name the cheap model you want as the default; the plugin defaults to it unless an override or route says otherwise.
  • A structured audit stream of every routing decision (NIST 800-53 AU-2/AU-3/AU-12 schema bar).

It does not include — and never ships — the patented ToggleLogic Intelligence engine (benchmark-driven automatic model selection) or the Toggle Registry. The free cheapest-default is a dumb static preference: it never inspects your request, never consults a model registry or benchmark, and embeds no model names or prices. Automatic benchmark-driven selection is the separately-licensed Intelligence layer; if installed, this plugin detects it and defers to it (see intelligence config). To license it: https://togglelogic.ai/

Install (from ClawHub)

openclaw plugins install clawhub:togglelogic

Enable routing (opt-in) in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "togglelogic": {
        "enabled": true,
        "hooks": { "allowConversationAccess": true },
        "config": {
          "mode": "cheap",
          "cheapHeuristic": { "default": "anthropic/claude-haiku-4-5" },
          "features": { "routing": { "enabled": true } }
        }
      }
    }
  }
}

Modes

ModeBehavior
autoLicensed Intelligence layer if present → else the cheap default if configured → else passthrough
passthroughDefer every selection to OpenClaw's default (log only)
configuredApply configuredRoutes (static task→model map)
cheapApply the deployment-declared cheapest default (dumb, static)
intelligenceDefer to the separately-licensed Intelligence layer (not included)

Owner overrides apply above the mode in all cases.

Config reference

See openclaw.plugin.json configSchema for every field: mode, logging, configuredRoutes, cheapHeuristic, intelligence, ownerOverride, features, audit.

License

Use of this Software is governed by the ToggleLogic Free-Tier License (LICENSE). It is free to use but revocable, reserves all of Motherboard, Inc.'s rights including its pending patents, and prohibits redistribution and competing use. It is not an open-source license.

源码与版本

源码仓库

alharlow111/togglelogic-free

打开仓库

源码提交

21bc779632

查看提交

安装命令

openclaw plugins install clawhub:togglelogic

元数据

  • 包名: togglelogic
  • 创建时间: 2026/06/18
  • 更新时间: 2026/06/18
  • 执行代码:
  • 源码标签: 21bc779632

兼容性

  • 构建于 OpenClaw: 2026.6.5
  • 插件 API 范围: >=2026.5.2
  • 标签: latest
  • 文件数: 19