OpenClaw 成本计算器

v1.0.0

OpenClaw 成本计算器 - 精确计算 OpenClaw + AI 模型的完整使用成本,对比不同模型组合,优化支出。适合:个人用户、企业用户、成本优化。

0· 173·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for yang1002378395-cmyk/openclaw-cost-calculator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "OpenClaw 成本计算器" (yang1002378395-cmyk/openclaw-cost-calculator) from ClawHub.
Skill page: https://clawhub.ai/yang1002378395-cmyk/openclaw-cost-calculator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: curl
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install openclaw-cost-calculator

ClawHub CLI

Package manager switcher

npx clawhub@latest install openclaw-cost-calculator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill's name/description (cost calculator for OpenClaw + models) matches the SKILL.md content: pricing scenarios, model comparisons, configuration examples and cost-tracking suggestions. The only required binary declared is curl, which is plausible for making HTTP calls but is not actually used in the instructions—minor mismatch but not suspicious.
Instruction Scope
SKILL.md contains calculations, model-price tables, YAML configuration examples, and recommendations for caching/batching. It does not instruct the agent to read arbitrary local files, harvest environment variables, or exfiltrate data. Example configs show apiKey placeholders, but the skill does not demand or automatically access secrets.
Install Mechanism
No install spec and no code files — instruction-only. This is low-risk: nothing is downloaded or written to disk by the skill itself.
Credentials
The skill declares no required environment variables or credentials (good). However, example configs include provider apiKey placeholders (sk-xxx, etc.). Those are examples only and are not declared as required; users should only add real keys if they intend to enable cost-tracking or provider access.
Persistence & Privilege
always is false and there is no install step that would modify agent/system configuration. The skill can be invoked autonomously by the agent (platform default), which is expected for an instruction-only helper; this is not a red flag on its own.
Assessment
This skill is an instruction-only cost calculator and appears coherent with its description. It does not request secrets or install code. Before you use it: (1) verify pricing numbers against official provider docs — prices may be outdated; (2) if you copy example YAML and add real provider apiKey values, store them in a secure secrets store and give keys least privilege; (3) enabling OpenClaw cost-tracking in your deployment may cause usage/metadata to be sent to the configured model providers — review those provider privacy/policy pages; (4) the SKILL.md lists curl as a required binary but does not use it in the instructions—this is harmless but unnecessary; (5) if you plan to run examples in production, test in a controlled environment first and confirm the expected endpoints (some listed models/providers may require VPN or region-specific access). Overall the skill is coherent and low-risk, but exercise the usual caution when adding API keys or enabling automated cost-tracking.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

💰 Clawdis
Binscurl
calculatorvk974zhtrwz6w9n07dkhmcysvfh839x49chinesevk974zhtrwz6w9n07dkhmcysvfh839x49costvk974zhtrwz6w9n07dkhmcysvfh839x49latestvk974zhtrwz6w9n07dkhmcysvfh839x49openclawvk974zhtrwz6w9n07dkhmcysvfh839x49
173downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

OpenClaw 成本计算器

目标:精确计算 OpenClaw 使用的完整成本,帮你选择最优模型组合,省钱 50-90%。


🎯 快速计算

场景 1:个人日常使用

需求:每天 50 轮对话,每轮 1000 tokens 输入 + 500 tokens 输出

计算

每日输入:50 × 1000 = 50,000 tokens
每日输出:50 × 500 = 25,000 tokens
每月使用:1,500,000 输入 + 750,000 输出

GPT-4o 成本:
  输入:1.5M × $2.5/1M = $3.75
  输出:0.75M × $10/1M = $7.50
  月费用:$11.25 ≈ ¥80

DeepSeek V3 成本:
  输入:1.5M × ¥1/1M = ¥1.5
  输出:0.75M × ¥2/1M = ¥1.5
  月费用:¥3 ≈ $0.42

节省:$10.83/月(96%)

场景 2:企业客服机器人

需求:每天 1000 次咨询,每次 800 tokens 输入 + 400 tokens 输出

计算

每日输入:1000 × 800 = 800,000 tokens
每日输出:1000 × 400 = 400,000 tokens
每月使用:24M 输入 + 12M 输出

Claude 3.5 Sonnet 成本:
  输入:24M × $3/1M = $72
  输出:12M × $15/1M = $180
  月费用:$252 ≈ ¥1,800

GLM-4 成本:
  输入:24M × ¥10/1M = ¥240
  输出:12M × ¥10/1M = ¥120
  月费用:¥360 ≈ $50

节省:$202/月(80%)

场景 3:内容创作

需求:每天写 10 篇文章,每篇 3000 tokens 输入 + 2000 tokens 输出

计算

每日输入:10 × 3000 = 30,000 tokens
每日输出:10 × 2000 = 20,000 tokens
每月使用:900K 输入 + 600K 输出

GPT-4o 成本:
  输入:0.9M × $2.5/1M = $2.25
  输出:0.6M × $10/1M = $6.00
  月费用:$8.25 ≈ ¥60

DeepSeek V3 成本:
  输入:0.9M × ¥1/1M = ¥0.9
  输出:0.6M × ¥2/1M = ¥1.2
  月费用:¥2.1 ≈ $0.30

节省:$7.95/月(96%)

📊 模型价格对比(2026-03)

模型输入价格输出价格优势劣势
DeepSeek V3¥1/1M¥2/1M最便宜,中文强需要国内网络
GLM-4¥10/1M¥10/1M国产,稳定价格中等
Qwen-Max¥20/1M¥20/1M阿里云生态价格偏高
GPT-4o-mini$0.15/1M$0.6/1M性价比高需要 VPN
Claude 3 Haiku$0.25/1M$1.25/1M快速便宜需要 VPN
GPT-4o$2.5/1M$10/1M多模态强价格贵
Claude 3.5 Sonnet$3/1M$15/1M编程最强价格贵

省钱建议

  • 日常使用:DeepSeek V3(96% 节省)
  • 企业应用:GLM-4(稳定 + 合规)
  • 编程任务:Claude 3 Haiku(便宜 + 强)
  • 复杂推理:Claude 3.5 Sonnet(贵但强)

🔧 OpenClaw 配置优化

配置 1:成本优先(DeepSeek)

models:
  default: deepseek-chat
  fallback: glm-4

providers:
  deepseek:
    apiKey: "sk-xxx"
    baseUrl: "https://api.deepseek.com/v1"

  zhipu:
    apiKey: "xxx"
    model: "glm-4"

预期成本:¥2-5/月(个人使用)

配置 2:性能优先(Claude + DeepSeek)

models:
  default: claude-3-5-sonnet-20241022
  reasoning: deepseek-reasoner
  fallback: glm-4

providers:
  anthropic:
    apiKey: "sk-ant-xxx"

  deepseek:
    apiKey: "sk-xxx"

  zhipu:
    apiKey: "xxx"

预期成本:$5-15/月(混合使用)

配置 3:企业稳定(GLM-4)

models:
  default: glm-4
  reasoning: glm-4-plus

providers:
  zhipu:
    apiKey: "xxx"
    model: "glm-4"

预期成本:¥50-200/月(企业使用)


💰 ROI 计算器

个人用户

投入

  • OpenClaw 安装:免费(DIY)或 ¥99(服务)
  • 模型成本:¥2-10/月

回报

  • 时间节省:2-4 小时/天 × ¥100/小时 = ¥200-400/天
  • 月回报:¥6000-12000
  • ROI:600-6000 倍

企业用户

投入

  • OpenClaw 企业版:¥299(配置服务)
  • 模型成本:¥50-500/月

回报

  • 客服自动化:节省 1 个客服 × ¥5000/月
  • 文档自动化:节省 10 小时/周 × ¥100/小时 = ¥4000/月
  • 月回报:¥9000+
  • ROI:18-180 倍

🎯 优化建议

建议 1:混合使用

策略

  • 80% 简单任务 → DeepSeek V3(最便宜)
  • 15% 中等任务 → GLM-4(稳定)
  • 5% 复杂任务 → Claude 3.5 Sonnet(最强)

预期节省:70-90%

建议 2:缓存优化

策略

  • 启用 OpenClaw 上下文缓存
  • 减少重复 prompt 成本
  • 缓存命中可节省 90% 输入成本

建议 3:批量处理

策略

  • 合并多个小请求为一个大请求
  • 减少 API 调用次数
  • 批量处理可节省 20-30%

📋 成本监控

配置成本追踪

在 OpenClaw 配置中启用成本追踪:

tracking:
  enabled: true
  alerts:
    daily: 10  # 日成本超过 ¥10 提醒
    monthly: 200  # 月成本超过 ¥200 提醒

查看成本报告

显示本月 OpenClaw 成本报告

OpenClaw 会返回:

  • 总成本
  • 按模型分类成本
  • 按日期成本趋势
  • 优化建议

💰 定价参考

  • 基础计算器:免费(本 Skill)
  • 成本优化咨询:¥299(一对一分析 + 配置优化)
  • 企业成本审计:¥999(完整审计 + 优化方案 + 实施指导)

🆘 获取帮助


创建时间:2026-03-21 作者:OpenClaw 中文生态 版本:1.0.0

Comments

Loading comments...