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

token-optimizer

smartpeopleconnected 제작

Coding Agents & IDEs
5.5kclawskills.sh가 보고한 다운로드 수
21스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Reduce OpenClaw AI costs by 97%.

설명

이 스킬이 하는 일

Reduces OpenClaw AI API costs by routing most requests to Claude Haiku, offloading heartbeats to local or alternative providers, enabling prompt caching, and trimming loaded context size. All changes preview before writing, and backups are created automatically before any modification.

Combines model routing, multi-provider heartbeat offloading, prompt caching, and config rollback into a single CLI with dry-run preview, rather than requiring manual edits across multiple config files.

사용 시점

  • Switching routine coding tasks from Sonnet to Haiku to cut token spend
  • Routing OpenClaw heartbeats to a local Ollama instance instead of paid API
  • Previewing config diffs before applying changes in a CI pipeline
  • Setting daily and monthly spend caps to prevent runaway API bills
  • Rolling back to a previous config after an optimization produces unexpected behavior

예시 워크플로

입력

User asks: reduce my OpenClaw API costs

에이전트
  1. 1

    Run python cli.py analyze to inspect current model routing and heartbeat configuration

  2. 2

    Run python cli.py optimize to generate a diff preview of proposed changes

  3. 3

    Review the diff showing Haiku as default model, caching enabled, and budget limits added

  4. 4

    Run python cli.py optimize --apply to write changes to ~/.openclaw/

  5. 5

    Run python cli.py verify to confirm the new configuration is active

출력

OpenClaw configured with Haiku as default model, prompt caching enabled, and daily/monthly budget limits set, with a timestamped backup of the previous config saved to ~/.openclaw/backups/

설치

clawhub install smartpeopleconnected/token-optimizer

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

링크