Skip to main content
For OpenClaw 🦞

Agent Optimizer

Stop burning money on misconfigured AI agents

Your OpenClaw 🦞 agents are leaking tokens, running stale configs, and loading skills that phone home to billing APIs. You just don't know it yet. Agent Optimizer finds and reports issues in one command — use audit --fix to auto-apply a limited set of safe fixes, leaving judgement calls to you.

agent-optimizer

Features

What it does.

Cost Estimator

See your estimated monthly spend in £/$ based on your model, context window, and heartbeat. Recognises subscription models (Claude CLI, Codex), self-hosted models (LM Studio, Ollama), and flags expensive fallback models that could spike costs.

Config Audit

Catches invalid thinkingDefault values, legacy model aliases (gpt-5.4-codex), thinking mode incompatibilities (xhigh on unsupported models), duplicate fallbacks, and unknown config keys that crash the gateway.

Cache Efficiency

Detects heartbeats in the Anthropic 5-minute cache dead zone, missing cacheRetention settings, frequent heartbeats without lightContext, and expensive compaction models burning tokens on summarization.

Security Scanner

Per-skill risk scoring (clean/suspicious/dangerous). Detects hidden billing, eval(), obfuscated code, risky npm dependencies, suspicious URLs, and unexpected executable files. Checks provenance — ClawHub vs local.

Bootstrap File Analysis

Checks every workspace file (SOUL.md, TOOLS.md, MEMORY.md, IDENTITY.md) against the 20K per-file and 150K total budget. Catches files that will be silently truncated or dropped from context entirely.

Channel Security

Audits DM and group policies across Telegram, WhatsApp, Discord, Slack, and more. Flags open DM policies, empty allowlists, mutable ID risks, and missing default security policies.

Token Efficiency

Flags context windows burning 5x more tokens than needed, heartbeats firing 24 times a day for no reason, and subagent concurrency eating your API budget.

Legacy Override Detection

Finds Codex transport overrides that shadow your OAuth path, hardcoded API keys in models.json, stale model API entries, allowPrivateNetwork misuse, and placeholder gateway credentials that crash v2026.4.12+.

Fleet Audit via SSH

Audit every OpenClaw instance in your fleet with one command. SSH into your agents wherever they live. Per-host status, config drift detection, gateway health.

Auto-Fix with Profiles

Three optimization profiles — minimal, balanced, aggressive — that automatically apply token-saving changes with a config backup. One command to go from bleeding money to running lean.

Memory Search Audit

Validates your embedding provider config, hybrid search weights, embedding cache settings, sqlite-vec acceleration, Dreaming schedule, Active Memory plugin, and QMD backend limits.

Local Model Tuning

Running LM Studio or Ollama? Recommends localModelLean mode, catches context windows larger than your model supports, detects compaction reserve overflow, and warns on aggressive heartbeats and subagent concurrency.

Security Advisories

Auto-detects your OpenClaw version and checks against 72 known security advisories, with advisory data current to OpenClaw 2026.9.8. Tells you which version to upgrade to.

How it works

4 simple steps.

1

Install (free)

npm install -g @drakon-systems/agent-optimizer — works on macOS, Linux, and Windows. Node 20+ required. No account, no sign-up.

2

Audit (free)

Run agent-optimizer audit — full config scan, token analysis, security check, legacy override detection. Every issue detected and shown, with all fix instructions shown free. No license needed to audit.

3

See what you'd save (free)

Run agent-optimizer optimize --dry-run to preview exactly what would change and how much you'd save. No changes applied, no license required.

4

Activate & fix

Buy a license, run agent-optimizer activate, then agent-optimizer audit --fix to auto-apply a limited set of safe fixes — judgement calls stay with you. Fleet license unlocks multi-host SSH auditing.

🦞

Install in 10 seconds

macOS, Linux, and Windows. Node.js 20+. No account needed.

npm install -g @drakon-systems/agent-optimizer
agent-optimizer audit
agent-optimizer scan
agent-optimizer optimize --dry-run

All three commands are free — no license needed

Full command reference+
# FREE
agent-optimizer audit             # Full 70+ check audit
agent-optimizer audit --json      # Machine-readable
agent-optimizer scan              # Malware + billing scan
agent-optimizer optimize --dry-run # Preview changes
agent-optimizer drift --name golden # Config drift

# LICENSED (Solo £29+)
agent-optimizer audit --fix       # Auto-fix
agent-optimizer optimize          # Apply optimizations
agent-optimizer optimize --only heartbeat
agent-optimizer optimize --skip context

# FLEET (£79+)
agent-optimizer fleet --hosts a,b,c # SSH fleet audit

# UTILITY
agent-optimizer snapshot save --name golden
agent-optimizer rollback
agent-optimizer update
agent-optimizer activate <key>
agent-optimizer license
🦞

Purpose-built for OpenClaw

Agent Optimizer isn't a generic config linter. Every check, every scanner, every optimization profile is built specifically for OpenClaw's config format, auth system, plugin architecture, and ClawHub skill ecosystem.

🦞 What we audit

  • openclaw.json — model config, memory search, compaction, heartbeat, local model tuning
  • auth-profiles.json — token expiry, duplicates, provider coverage, placeholder credentials
  • models.json — legacy overrides, model aliases, hardcoded keys, allowPrivateNetwork
  • ClawHub skills — billing integrations, malware, eval() calls
  • OpenClaw version — 72 known security advisories from v2026.4.12–2026.9.6
  • Plugin allowlist — stale installs, bundled plugin recognition, orphaned entries

🦞 What we've caught

  • ClawHub skill charging 0.001 USDT per call via hidden SkillPay.me
  • thinkingDefault: "auto" crashing gateways on startup
  • 1M context tokens burning £150/month when 200K would do
  • Legacy Codex transport overrides shadowing OAuth paths
  • Stale API keys from credential exposures still in auth profiles
  • Heartbeats firing 24x/day burning tokens on idle agents

Built from production fleet management

Every check in Agent Optimizer exists because we hit that problem ourselves — running 8 AI agents across our own servers, managing auth profiles, rotating keys, catching skills with hidden billing, and fixing config drift after every update.

Real fleet. Real problems.

Jarvis, Edith, TARS, CASE, Friday — each running OpenClaw on different hardware with different models, different auth, and different failure modes. Every auditor catches something we actually broke.

Security-first scanning

We found a ClawHub skill charging 0.001 USDT per API call through a hidden SkillPay.me integration. That's why the scanner exists. Your agents deserve better than trust-by-default.

CLI-native. No dashboard tax.

No web UI to maintain. No SaaS subscription. No account. Install, activate, run. Results in your terminal in under 2 seconds. Because operators live in terminals.

70+

Audit Checks

3

Supported Agents

851

Tests Passing

0

Network calls during audit

Pricing

Simple, transparent pricing.

Free

£0

See every issue and every fix instruction.

  • ✓Full 70+ check audit — every issue detected
  • ✓All fix instructions shown, free
  • ✓Security scanner for skills, plugins, and hooks
  • ✓Optimize --dry-run (preview changes)
  • ✓Rollback to any config backup (rollback --list, --to <id>)
  • ✓Health score and savings estimate
  • ✓Unlimited runs, forever

Solo

£29

Let the CLI apply the fixes for you. One machine.

  • ✓audit --fix (auto-apply safe fixes)
  • ✓optimize (apply token-saving profiles)
  • ✓optimize --apply-plan (apply only the changes you pick)
  • ✓Config backup before every change
  • ✓Offline license (RSA-signed, no phone-home)
Recommended

Fleet

£79

Audit and fix your entire agent fleet from one terminal.

  • ✓Everything in Solo
  • ✓Fleet audit via SSH (unlimited hosts)
  • ✓Per-host config comparison
  • ✓Config drift detection across agents
  • ✓Gateway status monitoring

Lifetime

£149

Lifetime license + 12 months of updates included.

  • ✓Everything in Fleet
  • ✓Lifetime license — never expires
  • ✓12 months of updates included
  • ✓Priority email support
  • ✓Early access to new auditors

Frequently Asked Questions

What is Agent Optimizer?+
A CLI tool that audits your OpenClaw configuration, finds token waste, catches security issues in installed skills/plugins, detects legacy overrides, and applies optimizations automatically. Built by the team that runs a fleet of 8 AI agents in production.
How much can I actually save?+
Typical savings are 3-5x on token costs. The most common win is reducing contextTokens from 1M to 200K — most conversations don't need a million tokens of context, but OpenClaw defaults to it. A single agent burning 1M tokens per turn at $15/MTok costs roughly £150/month. At 200K, that drops to £30.
What's new in the v0.16.3 release?+
v0.16.3 fixes agent-optimizer --help so it lists rollback under FREE instead of LICENSED, matching the README, and a help-text regression test now pins it. The README clarifies command-triggered network use, including opt-in monitoring payloads, scheduling and disable instructions, and SKILL.md network disclosures now match the CLI and README: configured-registry update queries and global installs, reactivation, monitor run and disable POSTs (disable is best-effort), browser purchases, and fleet SSH. v0.16.2 flags OpenClaw's retired GitHub Copilot discovery switch whenever the key is present, including an explicit null, matching OpenClaw's own migration. Releases now publish to npm automatically from GitHub Actions with npm trusted publishing, which publishes the exact tarball its build, test and package checks ran on. v0.16.1 tightened the buy command: --tier accepts only solo, fleet or lifetime, and the purchase page opens without going through a shell. Prices, checkout and licensing are unchanged. v0.16.0 brought audits for OpenClaw 2026.9.8, including more retired settings that OpenClaw's own doctor would migrate, such as old Code Mode, Tool Search and silent-reply options, and conflicting tool allow-lists, plus the Rustls security fix shipped in OpenClaw 2026.9.6. v0.16.3 is on npm and GitHub; the ClawHub update is subject to its security scan.
Does it phone home or require an account?+
No account is required, and licenses are verified offline. activate contacts Drakon, including on reactivation; update queries the npm registry and installs the latest version if it differs. Opt-in monitoring contacts Drakon on enrolment, daily runs and disable, sending enrolment details, summary counts and check metadata, never config contents or finding messages. Audit, scan and optimize stay offline; fleet uses SSH to your hosts, and buy opens the purchase page in your browser.
What does the security scanner catch?+
Hidden billing integrations (like SkillPay.me charging per API call), eval() usage, shell command injection patterns, suspicious HTTP calls to non-standard endpoints, and payment/cryptocurrency references. We built this after finding a ClawHub skill that was silently charging 0.001 USDT per call.
Can I use this on a server I don't have local access to?+
Yes. The Fleet license includes SSH-based auditing. Point it at any host in your SSH config and it reads the remote OpenClaw config over SSH. No installation needed on the remote machine.
What OpenClaw versions are supported?+
Agent Optimizer v0.16.3 includes audits for OpenClaw 2026.9.8 and Hermes Agent 0.21.2, alongside Claude Code checks. It reads local agent configuration and flags security advisories, legacy settings, and misconfigurations.
What if I lose my license key?+
Go to the license retrieval page and enter the email you used to purchase. Your activation key will be shown instantly. You can also run agent-optimizer license to check your current status, or email support@drakonsystems.com.
Is there a free version?+
Yes. Install it and run agent-optimizer audit — you get the full audit, every check, every result, with all fix instructions shown free. The security scanner (agent-optimizer scan) and optimize preview (agent-optimizer optimize --dry-run) are also free. A license lets the CLI apply fixes for you (audit --fix and optimize), and Fleet or Lifetime adds fleet-wide SSH audits.
How do I install and activate it?+
Three steps: (1) Install: npm install -g @drakon-systems/agent-optimizer — works on macOS, Linux, and Windows with Node.js 20+. (2) Run the free audit: agent-optimizer audit — no license needed. (3) If you buy a license, you'll get an activation key (like AO-FLEE-A1B2C3D4-E5F6G7H8) on screen and by email. Activate it with: agent-optimizer activate YOUR-KEY. That's it — one command, stored locally, no account needed.

🦞 Your agents are bleeding tokens. Find out where.

One install, one command, one report. Find misconfigurations, security issues, and token waste — then use audit --fix for a limited set of safe fixes, with judgement calls left to you.