Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

optimoclaw-skill最佳利爪技能

Agent Skill

optimoclaw-skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,745

周安装

153

GitHub Stars

1

下载量

1,550
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:optimoclaw-skill(最佳利爪技能)
来源仓库:https://github.com/marc4211/optimoclaw-skill
安装命令:
openclaw skills install optimoclaw-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install optimoclaw-skill

简介

分析 OpenClaw 配置和会话数据,以推荐具体的、经济高效的令牌使用和模型调整更改,并提供明确的权衡和解释。

SKILL.md

OptimoClaw Token Optimizer

Token optimization advisor for OpenClaw agents. Reads your live config and session data, identifies where tokens are being wasted, and recommends specific changes with rate card math, cost trade-offs, and the exact commands to apply them.

Source: https://github.com/Marc4211/optimoclaw | Author: Marc Scibelli | License: MIT

Requirements

  • OpenClaw CLI (openclaw) must be installed and available in PATH on the machine where this skill runs.
  • This skill reads configuration and session data via the OpenClaw CLI. The outputs may contain profile names, model identifiers, and gateway connection details. No API keys are exposed in the commands used below — config get 'agents' returns agent configuration (models, heartbeat settings, thresholds), and status --usage returns token counts and session metadata.
  • This skill does not automatically apply changes. All openclaw config set commands are presented as recommendations for the user to review and execute.

What you do

You help users understand and reduce their OpenClaw token spend by:

  • Reading their live configuration and session data via the openclaw CLI
  • Identifying which settings are costing the most
  • Recommending specific config changes with clear trade-offs
  • Explaining *why* a change helps, not just *what* to change

How to gather data

Before making recommendations, collect the user's actual configuration:

# Get the full agents config (models, heartbeat, defaults)
openclaw config get 'agents' --json

# Get live session data (token usage, cache ratios, context utilization)
openclaw status --usage --json

If the user has a named profile, use openclaw --profile '<name>' before each command.

Read both outputs carefully before advising. Never guess — use the real numbers.

What these commands return: Agent names, assigned models, heartbeat frequency, compaction settings, session token counts, cache ratios, and context utilization percentages. They do not return API keys, billing credentials, or authentication tokens.

Rate card ($/million tokens)

Use these rates to calculate costs. All prices are per million tokens.

Anthropic

ModelInputCache ReadOutput
Claude Opus 4.6$5.00$0.50$25.00
Claude Opus 4.5$5.00$0.50$25.00
Claude Opus 4.1$15.00$1.50$75.00
Claude Opus 4$15.00$1.50$75.00
Claude Sonnet 4.6$3.00$0.30$15.00
Claude Sonnet 4.5$3.00$0.30$15.00
Claude Sonnet 4$3.00$0.30$15.00
Claude Haiku 4.5$1.00$0.10$5.00
Claude 3.5 Haiku$0.80$0.08$4.00
Claude 3 Haiku$0.25$0.03$1.25

OpenAI

ModelInputCache ReadOutput
GPT-5.4$2.50$0.25$15.00
GPT-5.4 Mini$0.75$0.075$4.50
GPT-5.4 Nano$0.20$0.02$1.25
GPT-5.4 Pro$30.00$30.00$180.00
GPT-4.1$2.00$0.50$8.00
GPT-5.3 Codex$1.75$0.175$14.00

Local (Ollama)

All local models: $0 for all token types.

The 10 optimization levers

These are the settings you can recommend changing. Each has a config path for openclaw config set.

Model Routing (which models handle what)

1. Default Modelagents.defaults.model.primary The fallback model for all tasks. This is the baseline cost driver.

  • Sonnet is a good default for most setups
  • Haiku if most work is routine
  • Reserve Opus for specific tasks, not as a default
  • Also determines maximum context window size (Haiku caps at 200K, Sonnet/Opus support larger)

2. Heartbeat Modelagents.defaults.heartbeat.model Model for routine check-ins. Heartbeats run frequently and don't need to be smart.

  • One of the highest single-lever cost wins available
  • A local or cheap model here can save $5–15/month depending on frequency
  • Only use a stronger model if heartbeat logic makes real judgment calls

3. Compaction Modelplugins.entries.lossless-claw.config.summaryModel Model that compresses conversation history into summaries. Runs in the background.

  • Doesn't need to be your best model — just needs to summarize accurately
  • Haiku or a local model works well for most setups

Frequency & Volume (how often and how much)

4. Heartbeat Frequencyagents.defaults.heartbeat.every How often agents check in. Options: off, 15m, 30m, 60m

  • Direct multiplier on heartbeat cost — halving frequency roughly halves heartbeat spend
  • 30 minutes is the sweet spot for most setups
  • Go lower (15m) for time-sensitive workflows, higher (60m) if cost is priority

5. Subagent Concurrencyagents.defaults.subagents.maxConcurrent How many subagents run simultaneously. Range: 1–10.

  • Higher = faster parallel work but more simultaneous API calls
  • Can cause cost spikes or rate limit errors if too high
  • Raise for research-heavy parallel workflows, lower if hitting rate limits

6. Search Batch Limitagents.defaults.searchBatchLimit Max web searches per batch before a cooldown. Range: 1–20.

  • Uncapped search is one of the easiest ways to run up a bill
  • 5 searches per batch works well for most research tasks

7. Rate Limit Delayagents.defaults.rateLimitDelay Minimum seconds between consecutive API calls. Range: 1–15.

  • 5 seconds is a safe default
  • Reduce to 2–3 for time-sensitive work with a higher-tier API plan
  • Increase if hitting 429 errors

Context & Memory (how much gets loaded)

8. Session Context Loadingagents.defaults.sessionContextLoading Which files load at session start. Options: lean, standard, full

  • One of the largest hidden cost drivers in OpenClaw
  • Full loading can 3–5× your input token cost per call vs lean
  • Lean (identity, soul, today's memory) works for most sessions
  • Full only needed when agents need deep historical context

9. Memory File Scopeagents.defaults.memoryFileScope Days of daily memory files loaded per session. Range: 1–30.

  • Direct multiplier on input token cost (~3K tokens per day of memory files)
  • 7 days is a good default
  • 3 days if cost is priority
  • 30+ only for agents that reference historical decisions regularly

10. Compaction Thresholdagents.defaults.compaction.threshold Token count before conversation history gets compressed. Range: 20K–200K.

  • Lower = more aggressive compaction = smaller context = lower cost
  • Higher = more history preserved = richer context = higher cost
  • If agents forget things mid-session, raise it
  • If costs are high and context quality isn't a concern, lower it
  • Works with LosslessClaw plugin for intelligent summarization

Optimization profiles

When the user wants a quick preset, recommend one of these:

Lean (minimize cost)

  • Heartbeat Frequency: Every 60 min
  • Compaction Threshold: 50K tokens
  • Subagent Concurrency: 1
  • Session Context Loading: Lean
  • Memory File Scope: 3 days
  • Rate Limit Delay: 8 sec
  • Search Batch Limit: 3

Balanced (cost and quality)

  • Heartbeat Frequency: Every 30 min
  • Compaction Threshold: 100K tokens
  • Subagent Concurrency: 2
  • Session Context Loading: Standard
  • Memory File Scope: 7 days
  • Rate Limit Delay: 5 sec
  • Search Batch Limit: 5

Quality (maximize capability)

  • Heartbeat Frequency: Every 15 min
  • Compaction Threshold: 150K tokens
  • Subagent Concurrency: 4
  • Session Context Loading: Full
  • Memory File Scope: 30 days
  • Rate Limit Delay: 2 sec
  • Search Batch Limit: 10

How to analyze session data

When you have openclaw status --usage --json output, look at:

Cache efficiency

  • Cache reads (cheapest — 10% of input cost): Higher is better
  • Cache writes (1.25× input cost): High ratio is normal for new sessions, concerning if persistent
  • >90% cache reads: Excellent, nothing to change
  • 60–90% reads: Good, improves naturally as sessions stay alive
  • >20% writes: Likely transient if sessions are new. If persistent, Session Context Loading and Memory File Scope control how much gets written per session start, and Heartbeat Frequency controls restart frequency
  • <40% reads: Normal right after session starts, shifts toward reads as conversations mature

Context utilization

  • <15% used: Normal for new/short sessions, nothing to change
  • 15–40%: Optimal — healthy headroom for growth
  • 40–75%: Good — can tune Compaction Threshold if needed
  • 75–90%: Lower the Compaction Threshold to summarize earlier
  • 90%+: Lower Compaction Threshold AND reduce Heartbeat Frequency to slow context accumulation
  • Large windows barely used: The model determines window size. If sessions don't need extended context, switching to Haiku caps the window at 200K and reduces per-write cost

How to give recommendations

Always follow this pattern:

  1. State what you see — cite the actual numbers from their config/sessions
  2. Explain the cost impact — use the rate card to show what it costs
  3. Recommend a specific change — name the exact setting and the new value
  4. Explain the trade-off — what improves and what might be affected
  5. Give the command — provide the exact openclaw config set command to make the change

Example:

Your heartbeat model is set to Claude Opus 4.6 ($5/MTok input, $25/MTok output) running every 15 minutes across 3 agents. That's roughly 288 heartbeat calls per day at ~2K tokens each — about $4.32/day just on heartbeats. Switching to Haiku 4.5 ($1/$5) drops that to $0.86/day — saving ~$100/month. Heartbeats just check task queues; they don't need Opus-level reasoning. ``bash openclaw config set 'agents.defaults.heartbeat.model' 'anthropic/claude-haiku-4-5' `` Trade-off: If your heartbeat logic does complex analysis, quality may drop slightly. For standard check-ins, you won't notice a difference.

Rules

  • Never fabricate numbers. If you don't have session data, ask the user to run the status command.
  • Always show your math when estimating costs.
  • Be honest about trade-offs — cheaper isn't always better.
  • If a setting is already optimal, say so. Don't recommend changes for the sake of it.
  • If there's no lever for something (e.g., context window size is model-determined), say that clearly instead of leaving the user without an answer.
  • Local/Ollama models are always $0 — recommend them for heartbeat and compaction when available.
  • Per-agent overrides exist. If a specific agent has different settings from the defaults, note that and address both levels.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.25%
按下载量换算1,135

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills