# Send OpenClaw Token Optimizer to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-token-save",
    "name": "OpenClaw Token Optimizer",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/ccjingeth/openclaw-token-save",
    "canonicalUrl": "https://clawhub.ai/ccjingeth/openclaw-token-save",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-token-save",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-token-save",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/openclaw-token-optimization.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-token-save",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T17:15:27.126Z",
      "expiresAt": "2026-05-07T17:15:27.126Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-token-save",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-token-save",
        "contentDisposition": "attachment; filename=\"openclaw-token-save-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-token-save"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-token-save"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-token-save",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-token-save",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-token-save/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-token-save/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-token-save/agent.md"
  }
}
```
## Documentation

### Overview

Deliver a practical audit and configuration plan that cuts input tokens and unnecessary calls while keeping answer quality. Provide concrete config edits, workspace file trimming guidance, and a prioritized rollout plan.

### 1) Scope and locate configuration

Identify the OpenClaw config file location (common paths include ~/.openclaw/openclaw.json, .openclaw/openclaw.json, or project root config).
List injected workspace files in scope (e.g., AGENTS.md, SOUL.md, TOOLS.md, IDENTITY.md, USER.md, HEARTBEAT.md, MEMORY.md, and memory/YYYY-MM-DD.md).
Confirm provider and model support for prompt caching and memory search to avoid proposing unsupported keys.

### 2) Baseline token sources

Break input cost into buckets: system prompt, tool schema, workspace files, memory files, and conversation history.
Use a rough sizing method if exact token counts are unavailable (e.g., characters/4 as a quick estimate) and call out that the estimate is approximate.

### 3) Input reduction (highest ROI)

Trim workspace files first. Target budgets:

AGENTS.md: keep only essential agent rules and policies.
SOUL.md: reduce to short persona bullets.
MEMORY.md: keep durable facts only; archive the rest.
memory/YYYY-MM-DD.md: prune or rotate daily logs.


Remove unused workspace injections in config (e.g., if TOOLS.md or IDENTITY.md is unused).
Prefer memory search over full-file injection for large memories. If using qmd, index only needed paths.

### 4) Cache and context control

Enable prompt caching for the primary model when supported. Set cacheRetention to a long window and keep a consistent system prompt to maximize cache hits.
Configure heartbeat to keep the cache warm (e.g., ~55 minutes), using a low-cost model and a minimal heartbeat prompt.
Enable context pruning with a TTL that matches the cache window to prevent unbounded history growth.
Add compaction with memory flush so long sessions preserve durable decisions while clearing history.

### 5) Call reduction

Audit cron and scheduled tasks. Consolidate overlapping checks, reduce frequency, and move non-creative tasks to cheaper models.
Configure delivery to be on-demand or only on change to avoid no-op calls.

### 6) Model strategy

Default to a cost-effective model for routine work and provide aliases for manual upgrades to premium models.
Use subagents for parallel, isolated tasks with cheaper models to avoid bloating the main context.

### 7) Deliverables

Provide:

A short audit summary and estimated savings.
A concrete config patch or JSON snippet for openclaw.json.
A list of files to trim, with before/after size targets.
A phased rollout plan (quick wins first, then advanced options).

### References

Use references/openclaw-token-optimization.md for configuration snippets, checklists, and qmd guidance.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ccjingeth
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T17:15:27.126Z
- Expires at: 2026-05-07T17:15:27.126Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-token-save)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-token-save/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-token-save/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-token-save/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-token-save)