# Send Lemnos Cost Guard 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": "lemnos-cost-guard",
    "name": "Lemnos Cost Guard",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/getlemnos32/lemnos-cost-guard",
    "canonicalUrl": "https://clawhub.ai/getlemnos32/lemnos-cost-guard",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lemnos-cost-guard",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lemnos-cost-guard",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/model_pricing.md",
      "scripts/auto_cost_report.py",
      "scripts/context_analyzer.py",
      "scripts/cost_report.py",
      "scripts/task_cost_report.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lemnos-cost-guard"
    },
    "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/lemnos-cost-guard",
    "downloadUrl": "https://openagent3.xyz/downloads/lemnos-cost-guard",
    "agentUrl": "https://openagent3.xyz/skills/lemnos-cost-guard/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lemnos-cost-guard/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lemnos-cost-guard/agent.md"
  }
}
```
## Documentation

### Lemnos Cost Guard

Zero-config API cost tracking for OpenClaw agents. Reads your session files directly — no manual logging required.

Built by Lemnos AI — the AI operations company.
GitHub: getlemnos32/cost-guard

### Scripts

ScriptPurposescripts/auto_cost_report.pyZero-config — reads OpenClaw session JSONL files directly. No setup.scripts/task_logger.pyLog cost by task type for granular attributionscripts/task_cost_report.pyBreakdown by task typescripts/cost_report.pyReport from manually logged entriesscripts/context_analyzer.pyScan workspace for context bloatscripts/track_cost.pyLog a single cost entry manually

Model pricing and routing rules: references/model_pricing.md

### Quickstart (30 seconds)

# Daily cost check — no setup required
python3 skills/lemnos-cost-guard/scripts/auto_cost_report.py --budget 10.00 --format brief

Output:

💰 COST (today 09:14 UTC): $3.42 / $10.00 (34%) ✅ OK
   47 calls | 1,243,800 in + 18,400 out + 892,100 cached

### Morning Briefing — Cost Section

Run both reports before sending briefing:

# Auto report (reads sessions directly)
python3 skills/lemnos-cost-guard/scripts/auto_cost_report.py --budget 10.00 --format brief

# Task-level breakdown
python3 skills/lemnos-cost-guard/scripts/task_cost_report.py --format brief

Include output verbatim. Flag anything over 80% of budget.

### Log Per-Task Costs

python3 skills/lemnos-cost-guard/scripts/task_logger.py log "briefing" "Daily briefing 2026-03-16" --cost 2.14 --calls 38

Logs to: task-log.jsonl (readable by task_cost_report.py)

### Context Bloat Check (weekly or when costs spike)

python3 skills/lemnos-cost-guard/scripts/context_analyzer.py --workspace /root/.openclaw/workspace

### Budget Rules

ThresholdAction≥80% of daily budgetWarn user, flag in briefing≥100% of daily budgetHard stop all non-revenue tasks. Notify immediately.Single call >500K input tokensImmediate alert — context bloat riskI/O ratio >50:1 on any callContext bloat warning — recommend compaction

Recommended budgets:

Scrape days (Mon/Wed/Fri): $15/day
Standard days: $10/day

### Context Loading Rules

Load ONLY what the current task requires. Never load all files by default.

TaskLoadMorning briefingSOUL.md, USER.md, MEMORY.md, HEARTBEAT.md, today's memoryEmail outreachMEMORY.md (relevant section), sent-log.mdResearch taskReference files for that vertical onlyHeartbeat (nothing to do)HEARTBEAT.md only

### Model Routing

See references/model_pricing.md for full pricing table.

Task TypeModelCostFormat, classify, status checkHaiku$0.80/M inputResearch, drafting, analysisSonnet$3.00/M inputComplex reasoningSonnet + thinking~$3.00/M inputOpusNever (unless explicitly requested)$15/M input

### Auto Report: How It Works

auto_cost_report.py reads OpenClaw's native session JSONL files at:

/root/.openclaw/agents/main/sessions/*.jsonl

Each API call writes message.usage.cost.total to the session file automatically. This script aggregates by date, model, and session — no manual tracking needed.

# Today's cost
python3 auto_cost_report.py --budget 10.00

# Specific date
python3 auto_cost_report.py --date 2026-03-15 --budget 10.00

# Last 7 days, full breakdown
python3 auto_cost_report.py --days 7 --budget 70.00 --format full

### Cost Log Format (manual entries)

{
  "ts": "2026-03-16T14:00:00Z",
  "task": "email_send",
  "model": "claude-sonnet-4-6",
  "input_tokens": 45000,
  "output_tokens": 1200,
  "ratio": 37.5,
  "cost_usd": 0.153,
  "notes": "Day 7 breakup batch — 7 emails"
}

### ⭐ If This Saves You Money

Star it on ClawHub — it helps others find it.

192+ downloads. Built for production. Zero marketing.

By Lemnos AI — we deploy AI employees that cut admin overhead by 85%.
GitHub: getlemnos32/cost-guard
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: getlemnos32
- Version: 1.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lemnos-cost-guard)
- [Send to Agent page](https://openagent3.xyz/skills/lemnos-cost-guard/agent)
- [JSON manifest](https://openagent3.xyz/skills/lemnos-cost-guard/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lemnos-cost-guard/agent.md)
- [Download page](https://openagent3.xyz/downloads/lemnos-cost-guard)