[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M776SP6ER34FD8ER5Z87WJHF":3,"skill-same:01M776SP6ER34FD8ER5Z87WJHF":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M776SP6ER34FD8ER5Z87WJHF","token-watch",null,"javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvedantsingh60\u002Ftoken-watch\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# TokenWatch\n\n**Track, analyze, and optimize token usage and costs across AI providers. Set budgets, get alerts, compare models, and reduce your spend.**\n\nFree and open-source (MIT License) • Zero dependencies • Works locally • No API keys required\n\n---\n\n## Why This Skill?\n\nAfter OpenAI's acquisition of OpenClaw, token costs are the #1 concern for power users. This skill gives you full visibility into what you're spending, where it's going, and exactly how to reduce it.\n\n### Problems it solves:\n- You don't know how much you're spending until the bill arrives\n- No way to compare costs across providers before choosing a model\n- No alerts when you're approaching your budget\n- No actionable suggestions for reducing spend\n\n---\n\n## Features\n\n### 1. Record Usage & Auto-Calculate Costs\n\n```python\nfrom tokenwatch import TokenWatch\n\nmonitor = TokenWatch()\n\nmonitor.record_usage(\n    model=\"claude-haiku-4-5-20251001\",\n    input_tokens=1200,\n    output_tokens=400,\n    task_label=\"summarize article\"\n)\n# ✅ Recorded: $0.00192\n```\n\n### 2. Auto-Record from API Responses\n\n```python\nfrom tokenwatch import record_from_anthropic_response, record_from_openai_response\n\n# Anthropic\nresponse = client.messages.create(model=\"claude-haiku-4-5-20251001\", ...)\nrecord_from_anthropic_response(monitor, response, task_label=\"my task\")\n\n# OpenAI\nresponse = client.chat.completions.create(model=\"gpt-4o-mini\", ...)\nrecord_from_openai_response(monitor, response, task_label=\"my task\")\n```\n\n### 3. Set Budgets with Alerts\n\n```python\nmonitor.set_budget(\n    daily_usd=1.00,\n    weekly_usd=5.00,\n    monthly_usd=15.00,\n    per_call_usd=0.10,\n    alert_at_percent=80.0   # Alert at 80% of budget\n)\n# ✅ Budget set: daily=$1.0, weekly=$5.0, monthly=$15.0\n# 🚨 BUDGET ALERT fires automatically when threshold is crossed\n```\n\n### 4. Dashboard\n\n```python\nprint(monitor.format_dashboard())\n```\n\n```\n💰 SPENDING SUMMARY\n  Today:   $0.0042  (4 calls, 13,600 tokens)\n  Week:    $0.0231  (18 calls, 67,200 tokens)\n  Month:   $0.1847  (92 calls, 438,000 tokens)\n\n📋 BUDGET STATUS\n  Daily:   [████░░░░░░░░░░░░░░░░] 42% $0.0042 \u002F $1.00 ✅\n  Monthly: [███████░░░░░░░░░░░░░] 37% $0.1847 \u002F $0.50 ⚠️\n\n💡 OPTIMIZATION TIPS\n  🔴 Swap Opus → Sonnet for non-reasoning tasks (save ~$8.20\u002Fmo)\n  🟡 High avg cost\u002Fcall on gpt-4o — reduce prompt length\n```\n\n### 5. Compare Models Before Calling\n\n```python\n# For 2000 input + 500 output tokens:\nfor m in monitor.compare_models(2000, 500)[:6]:\n    print(f\"{m['model']:\u003C42} ${m['cost_usd']:.6f}\")\n```\n\n```\ngemini-2.5-flash                           $0.000300\ngpt-4o-mini                                $0.000600\nmistral-small-2501                         $0.000350\nclaude-haiku-4-5-20251001                  $0.003600\nmistral-large-2501                         $0.007000\ngemini-2.5-pro                             $0.007500\n```\n\n### 6. Estimate Before You Call\n\n```python\nestimate = monitor.estimate_cost(\"claude-sonnet-4-5-20250929\", input_tokens=5000, output_tokens=1000)\nprint(f\"Estimated cost: ${estimate['estimated_cost_usd']:.6f}\")\n```\n\n### 7. Optimization Suggestions\n\n```python\nsuggestions = monitor.get_optimization_suggestions()\nfor s in suggestions:\n    savings = s.get(\"estimated_monthly_savings_usd\", 0)\n    print(f\"[{s['priority'].upper()}] {s['message']}\")\n    if savings:\n        print(f\"  → Save ~${savings:.2f}\u002Fmonth\")\n```\n\n### 8. Export Reports\n\n```python\nmonitor.export_report(\"monthly_report.json\", period=\"month\")\n```\n\n---\n\n## Supported Models (Feb 2026)\n\n**41 models across 10 providers** — updated Feb 16, 2026.\n\n| Provider | Model | Input\u002F1M | Output\u002F1M |\n|----------|-------|----------|-----------|\n| Anthropic | claude-opus-4-6 | $5.00 | $25.00 |\n| Anthropic | claude-opus-4-5 | $5.00 | $25.00 |\n| Anthropic | claude-sonnet-4-5-20250929 | $3.00 | $15.00 |\n| Anthropic | claude-haiku-4-5-20251001 | $1.00 | $5.00 |\n| OpenAI | gpt-5.2-pro | $21.00 | $168.00 |\n| OpenAI | gpt-5.2 | $1.75 | $14.00 |\n| OpenAI | gpt-5 | $1.25 | $10.00 |\n| OpenAI | gpt-4.1 | $2.00 | $8.00 |\n| OpenAI | gpt-4.1-mini | $0.40 | $1.60 |\n| OpenAI | gpt-4.1-nano | $0.10 | $0.40 |\n| OpenAI | o3 | $10.00 | $40.00 |\n| OpenAI | o4-mini | $1.10 | $4.40 |\n| Google | gemini-3-pro | $2.00 | $12.00 |\n| Google | gemini-3-flash | $0.50 | $3.00 |\n| Google | gemini-2.5-pro | $1.25 | $10.00 |\n| Google | gemini-2.5-flash | $0.30 | $2.50 |\n| Google | gemini-2.5-flash-lite | $0.10 | $0.40 |\n| Google | gemini-2.0-flash | $0.10 | $0.40 |\n| Mistral | mistral-large-2411 | $2.00 | $6.00 |\n| Mistral | mistral-medium-3 | $0.40 | $2.00 |\n| Mistral | mistral-small | $0.10 | $0.30 |\n| Mistral | mistral-nemo | $0.02 | $0.10 |\n| Mistral | devstral-2 | $0.40 | $2.00 |\n| xAI | grok-4 | $3.00 | $15.00 |\n| xAI | grok-3 | $3.00 | $15.00 |\n| xAI | grok-4.1-fast | $0.20 | $0.50 |\n| Kimi | kimi-k2.5 | $0.60 | $3.00 |\n| Kimi | kimi-k2 | $0.60 | $2.50 |\n| Kimi | kimi-k2-turbo | $1.15 | $8.00 |\n| Qwen | qwen3.5-plus | $0.11 | $0.44 |\n| Qwen | qwen3-max | $0.40 | $1.60 |\n| Qwen | qwen3-vl-32b | $0.91 | $3.64 |\n| DeepSeek | deepseek-v3.2 | $0.14 | $0.28 |\n| DeepSeek | deepseek-r1 | $0.55 | $2.19 |\n| DeepSeek | deepseek-v3 | $0.27 | $1.10 |\n| Meta | llama-4-maverick | $0.27 | $0.85 |\n| Meta | llama-4-scout | $0.18 | $0.59 |\n| Meta | llama-3.3-70b | $0.23 | $0.40 |\n| MiniMax | minimax-m2.5 | $0.30 | $1.20 |\n| MiniMax | minimax-m1 | $0.43 | $1.93 |\n| MiniMax | minimax-text-01 | $0.20 | $1.10 |\n\n> To add a custom model: add it to `PROVIDER_PRICING` dict at the top of `tokenwatch.py`.\n\n---\n\n## API Reference\n\n### `TokenWatch(storage_path)`\nInitialize monitor. Data stored in `.tokenwatch\u002F` by default.\n\n### `record_usage(model, input_tokens, output_tokens, task_label, session_id)`\nRecord a single API call. Returns `TokenUsageRecord` with calculated cost.\n\n### `set_budget(daily_usd, weekly_usd, monthly_usd, per_call_usd, alert_at_percent)`\nConfigure spending limits. Alerts fire automatically when thresholds are crossed.\n\n### `get_spend(period)`\nGet aggregated spend. Period: `\"today\"`, `\"week\"`, `\"month\"`, `\"all\"`, or `\"YYYY-MM-DD\"`.\n\n### `get_spend_by_model(period)`\nSpending breakdown by model, sorted by cost descending.\n\n### `get_spend_by_provider(period)`\nSpending breakdown by provider.\n\n### `compare_models(input_tokens, output_tokens)`\nCompare costs across all known models. Returns list sorted cheapest first.\n\n### `estimate_cost(model, input_tokens, output_tokens)`\nEstimate cost before making a call.\n\n### `get_optimization_suggestions()`\nAnalyze usage and return ranked suggestions with estimated monthly savings.\n\n### `format_dashboard()`\nHuman-readable spending dashboard with budget bars and tips.\n\n### `export_report(output_file, period)`\nExport full report to JSON.\n\n### `record_from_anthropic_response(monitor, response, task_label)`\nHelper to auto-record from Anthropic SDK response object.\n\n### `record_from_openai_response(monitor, response, task_label)`\nHelper to auto-record from OpenAI SDK response object.\n\n---\n\n## Privacy & Security\n\n- ✅ **Zero telemetry** — No data sent anywhere\n- ✅ **Local-only storage** — Everything in `.tokenwatch\u002F` on your machine\n- ✅ **No API keys required** — The monitor itself needs no credentials\n- ✅ **No authentication** — No accounts or logins needed\n- ✅ **Full transparency** — MIT licensed, source code included\n\n---\n\n## Changelog\n\n### [1.2.3] - 2026-02-16\n\n- 📋 Updated SKILL.md model table to match code: 41 models across 10 providers\n\n### [1.2.0] - 2026-02-16\n\n- ✨ Added DeepSeek, Meta Llama, MiniMax providers\n- ✨ Expanded to 41 models across 10 providers\n- ✨ Updated all Anthropic\u002FOpenAI\u002FGoogle\u002FMistral pricing to Feb 2026 rates\n\n### [1.1.0] - 2026-02-16\n\n- ✨ Added xAI Grok, Kimi (Moonshot), Qwen (Alibaba)\n- ✨ Expanded to 32 models across 7 providers\n\n### [1.0.0] - 2026-02-16\n\n- ✨ Initial release — TokenWatch\n- ✨ Pricing table for 11 models across 5 providers\n- ✨ Budget alerts: daily, weekly, monthly, per-call thresholds\n- ✨ Model cost comparison, cost estimation, optimization suggestions\n- ✨ Auto-hooks for Anthropic and OpenAI response objects\n- ✨ Dashboard, JSON export, local-only storage, MIT licensed\n\n---\n\n**Last Updated**: February 16, 2026\n**Current Version**: 1.2.3\n**Status**: Active & Community-Maintained\n\n© 2026 UnisAI Community\n",{},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fvedantsingh60\u002Ftoken-watch",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill token-watch",{"tool":37,"command":38},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill token-watch",{"tool":40,"command":41},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill token-watch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvedantsingh60\u002Ftoken-watch\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]