# 安装 model-usage

- 类型: Skill 技能
- 说明: 按模型汇总 CodexBar 本地费用日志，快速查看 Codex 或 Claude 的成本明细。
- 仓库: https://github.com/openclaw/openclaw
- ⚠ 安全: 该技能看起来是开源的本地统计/汇总工具，主要处理 CodexBar 本地成本日志或用户提供的 JSON，未见需要密钥或声明远程外发。基于其 prompt-only、开源且社区采用度很高，整体偏低风险，但涉及本地命令调用和本地日志/文件读取，仍建议按最小权限使用。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "model-usage" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md
2. 保存为 ~/.claude/skills/model-usage/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Codex
```
请帮我安装 askskill 上的 "model-usage" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md
2. 保存为 ~/.codex/skills/model-usage/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Cursor
```
请帮我安装 askskill 上的 "model-usage" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md
2. 保存为 ~/.cursor/skills/model-usage/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
mkdir -p '~/.claude/skills/model-usage' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md' -o '~/.claude/skills/model-usage/SKILL.md'
```

### Codex
```bash
mkdir -p '~/.codex/skills/model-usage' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md' -o '~/.codex/skills/model-usage/SKILL.md'
```

### Cursor
```bash
mkdir -p '~/.cursor/skills/model-usage' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/skills/model-usage/SKILL.md' -o '~/.cursor/skills/model-usage/SKILL.md'
```
