본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

tokenoptimizer

smartpeopleconnected 제작

Coding Agents & IDEs
—아직 평가 없음
내 평가

요약

Reduce OpenClaw AI costs by 97%.

설명

이 스킬이 하는 일

Routes OpenClaw agent requests to Haiku by default, escalating to Sonnet or Opus only when needed. Offloads heartbeat checks to local providers like Ollama or free tiers like Groq, reduces session context from ~50KB to ~8KB, and caches repeated prompts at 10% of standard cost. All changes write to ~/.openclaw/ with automatic backups.

Every change runs in dry-run mode by default, creates timestamped backups before writing, and produces a verification report after applying, so there is no guesswork about what changed or whether it worked.

사용 시점

  • Cutting a $1,500/month AI bill down to under $50
  • Running heartbeat checks locally with Ollama instead of paying per token
  • Previewing config changes in dry-run mode before applying them to a live setup
  • Rolling back to a previous config after an optimization breaks agent behavior
  • Setting daily and monthly token budget caps to avoid unexpected charges

예시 워크플로

입력

User asks: optimize my OpenClaw setup to reduce API costs

에이전트
  1. 1

    Runs python cli.py analyze to inspect current model routing, heartbeat config, and context load

  2. 2

    Runs python cli.py optimize in dry-run mode to generate a diff of proposed changes

  3. 3

    User confirms and runs python cli.py optimize --apply to write the config

  4. 4

    Runs python cli.py setup-heartbeat --provider ollama --apply to route heartbeats to a local model

  5. 5

    Runs python cli.py verify to confirm the new config and view projected savings

출력

OpenClaw config updated with Haiku as default model, Ollama handling heartbeats, 8KB session context, and prompt caching enabled, with a backup created and a savings report generated

설치

clawhub install smartpeopleconnected/tokenoptimizer

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크