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 every issue in one command — and fixes most of them automatically.

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 that crash your gateway, duplicate fallback models wasting slots, missing cross-provider redundancy, and unknown config keys that cause silent failures.

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.

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. See every issue with specific fix instructions. Completely free, no license needed.

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 everything. Fleet license unlocks multi-host SSH auditing.

🦞

Install in 10 seconds

macOS, Linux, and Windows. Requires Node.js 20+.

Terminal
# Install
npm install -g @drakon-systems/agent-optimizer

# Run your first audit (free — no license needed)
agent-optimizer audit

# Preview optimizations (also free)
agent-optimizer optimize --dry-run

# Scan skills for malware and hidden billing (also free)
agent-optimizer scan
Full Command Reference
# FREE COMMANDS
agent-optimizer audit                        # Full config, token, security, and cache audit
agent-optimizer audit --json                  # Machine-readable output
agent-optimizer scan                         # Scan skills/plugins for malware and billing
agent-optimizer optimize --dry-run            # Preview optimization changes
agent-optimizer drift --name golden           # Compare config against snapshot

# LICENSED COMMANDS (Solo £29+)
agent-optimizer audit --fix                   # Auto-apply safe fixes
agent-optimizer optimize                     # Apply token-saving optimizations
agent-optimizer optimize --only heartbeat     # Selective optimization
agent-optimizer optimize --skip context       # Skip specific changes

# FLEET COMMANDS (Fleet £79+)
agent-optimizer fleet --hosts jarvis,edith,tars # SSH fleet audit

# UTILITY
agent-optimizer snapshot save --name golden   # Save config baseline
agent-optimizer snapshot list                 # List saved snapshots
agent-optimizer rollback                     # Restore pre-optimize backup
agent-optimizer update                       # Check for and install updates
agent-optimizer activate <key>                  # Activate license
agent-optimizer license                      # Show license status

No account. No sign-up. No credit card. Just install and audit.

🦞

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, compaction, heartbeat, pruning, dreaming, activeMemory
  • auth-profiles.json — token expiry, duplicates, provider coverage, placeholder credentials
  • models.json — legacy overrides, hardcoded keys, allowPrivateNetwork
  • ClawHub skills — billing integrations, malware, eval() calls
  • Plugin allowlist — stale installs, orphaned entries
  • Tool permissions — allow/deny conflicts, elevated config

🦞 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 5 AI agents across 4 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.

60+

Audit Checks

12

Auditor Modules

83

Tests Passing

0

Phone-Home Calls

Pricing

Simple, transparent pricing.

Free

£0

See every issue. No license, no sign-up, no limits on audits.

  • Full config audit — every check, every result
  • Token efficiency analysis with savings estimate
  • Security scanner for skills, plugins, and hooks
  • Legacy override detection
  • Optimize --dry-run (preview changes)
  • Unlimited runs, forever

Solo

£29

Auto-fix everything the free audit finds. One machine.

  • Everything in Free
  • audit --fix (auto-apply safe fixes)
  • optimize (apply token-saving profiles)
  • 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

One payment. Never pay again. Everything we build, forever.

  • Everything in Fleet
  • 12 months of updates included
  • Priority email support
  • Early access to new auditors
  • Future fleet dashboard (when released)

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 5 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.
Does it phone home or require an account?+
No. The license is an RSA-signed token verified entirely offline. No telemetry, no analytics, no account creation. The only network call is the one-time activation when you first enter your key.
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 works with OpenClaw 2026.2.x through 2026.4.12+. It reads openclaw.json, auth-profiles.json, and models.json — including v2026.4.12 features like LM Studio, bundled Codex provider, Active Memory, Dreaming, and allowPrivateNetwork.
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 specific fix instructions. The security scanner (agent-optimizer scan) and optimize preview (agent-optimizer optimize --dry-run) are also free. You only need a license to auto-apply fixes and run 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. Every misconfiguration, every security issue, every wasted token — found and fixed.