← 返回
未分类

Stop Burning Tokens — OpenClaw Cost Diagnostic Primer

Diagnostic framework to identify and reduce token waste in OpenClaw deployments, cutting costs by applying efficient data handling and model use practices.
诊断框架,用于识别并减少 OpenClaw 部署中的 token 浪费,通过高效的数据处理和模型使用实践降低成本。
thebrierfox
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 408
下载
💾 1
安装
1
版本
#latest

概述

SKILL: Token Cost Intelligence — Free Primer

Source: Production agent stack running at $0.91/day (down from $8–10/session)

Domain: Token cost optimization, OpenClaw deployments

Type: Free primer


THE CORE TRUTH

> The models are not expensive. Your habits are.

Most OpenClaw operators are spending 8–10x more than they need to. This primer gives you the diagnostic framework to find out where you're leaking.


THE "STUPID BUTTON" — 6 DIAGNOSTIC QUESTIONS

Run these before every session:

  1. Are you feeding raw PDFs/images when you only need text?

Screenshots are the worst offender. Copy-paste or convert to Markdown. A 4,500-word PDF = 100,000+ tokens raw. The same content in Markdown = 4,000–6,000 tokens. ~20x reduction.

  1. When did you last start a fresh conversation?

Every new turn re-sends the entire conversation history. 30-turn threads don't just feel inefficient — they are. 10–15 turn cap, then summarize and start fresh.

  1. Are you using the most expensive model for everything?

Opus for formatting and proofreading is a Ferrari to the grocery store. Haiku handles light tasks at 1/30th the cost.

  1. Do you know what's loading in context before you type?

Each loaded plugin = silent token tax per session. Documented case: 50,000 tokens consumed before the first keystroke. Audit your connectors. Disable what you don't use.

  1. Are you caching stable context? (API builders)

Cache hits on Opus: $0.50/M vs $5.00/M standard = 90% discount. System prompts, tool definitions, persona instructions → all cacheable. If you're not caching, you're paying full price for the same tokens every call.

  1. How are you handling web search?

Native model web search is token-heavy. MCP-routed alternatives return structured results at a fraction of the cost. Know what you're paying per search.


COST COMPARISON (CONCRETE)

Session TypeInput TokensOutput TokensCost (Opus pricing)
------------
Sloppy (raw PDFs, 30-turn sprawl, Opus-everything)800K–1M150K–200K$8–$10
Clean (markdown, 10-turn cap, tiered models)100K–150K50K–80K~$1
Reduction~8x~3x8–10x

Scaled to a team of 10 for one month:

  • Sloppy habits: ~$2,000/month
  • Clean habits: ~$250/month
  • Same output volume.

5 AGENT COMMANDMENTS

For anyone running OpenClaw agents at any scale:

  1. Index your references. Agents get relevant chunks, not raw document dumps. Dumping full documents per agent call is architectural waste.
  1. Pre-process context before it hits the window. Chunk, summarize, and clean before ingestion. If the model's first tokens are spent parsing your bad preprocessing, you failed.
  1. Cache your stable context. System prompts, tool definitions, persona instructions, reference material → all cacheable. Thousands of agent calls per day without caching is pouring money out.
  1. Scope each agent to minimum viable context. Planning agent doesn't need the full codebase. Editing agent doesn't need the project roadmap. Passing everything to every agent is measurable waste — and models perform worse drowning in irrelevant context.
  1. Measure what you burn. Instrument all agent calls: input tokens, output tokens, model mix, cost ratio. You cannot optimize what you don't measure.

Full framework with anti-patterns by tier, tiered model routing, and confirmed production delta available in Token Cost Intelligence on Claw Mart.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Free Compaction Primer

thebrierfox
学习识别并防止 OpenClaw 代理的上下文死亡螺旋,涵盖症状、根本原因、配置分类及多数默认设置...
★ 0 📥 434

OpenClaw Security Hardening Toolkit

thebrierfox
通过审计实例暴露、保护凭证、验证技能安全、执行网关令牌访问、启用会话沙箱,保障OpenClaw安全。
★ 0 📥 296

Free Bash Safety Primer

thebrierfox
了解 OpenClaw代理在自动执行 shell 命令时的攻击面,涵盖混淆、注入、编码攻击以及为何 C...
★ 0 📥 436