词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!

opencode modelsopencode/glm-4.7-free
anthropic/claude-3-5-sonnet-20241022
google/gemini-2.0-flash
ollama/deepseek-r1:7b
zhipuai-coding-plan/glm-4.7
...提供商/模型名)。你可以直接复制这个 ID,在启动时指定:--verbose 参数:inputCost(输入价格)和 outputCost(输出价格):zhipuai-coding-plan/glm-4.7
{
"id": "zhipuai-coding-plan/glm-4.7",
"name": "GLM 4.7",
"provider": "zhipuai-coding-plan",
"inputCost": 0, // 0元!
"outputCost": 0 // 0元!
}opencode.json 里加了新配置,或者刚申请了新模型的权限(例如刚下载了新的 Ollama 模型),列表可能没及时更新。Models cache refreshed 提示后,再运行 opencode models 就能看到了。zhipuai-coding-plan/glm-4.7),总不能每次启动都手敲一遍吧?~/.config/opencode/opencode.json),把它填进去:{
"model": "zhipuai-coding-plan/glm-4.7"
}opencode,就是用你最爱的模型启动了。opencode stats┌────────────────────────────────────────────────────────┐
│ OVERVIEW │
├────────────────────────────────────────────────────────┤
│Sessions 948 │
│Messages 30,575 │
│Days 29 │
└────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────┐
│ COST & TOKENS │
├────────────────────────────────────────────────────────┤
│Total Cost $1232.56 │
│Avg Cost/Day $42.50 │
│Input 530.6M │
│Output 9.9M │
│Cache Read 703.0M │
└────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────┐
│ TOOL USAGE │
├────────────────────────────────────────────────────────┤
│ read ████████████████████ 7270 (34.3%) │
│ bash ███████████ 4074 (19.2%) │
│ edit ████████ 3007 (14.2%) │
└────────────────────────────────────────────────────────┘Input(输入):你发给 AI 的内容 + AI 读取的文件内容。量大但便宜。Output(输出):AI 写的代码和回复。量小但贵。703.0M 意味 着有 7 亿 token 是直接读缓存的(费用通常只有输入的 1/10),大大降低了使用成本。read (读文件) 通常排第一,说明 AI 在努力理解你的代码。bash (运行命令) 和 edit (改代码) 也是主力工具。