원클릭으로
models-config
Model configuration editor for ~/.pi/agent/models.json - 使用 Bun 脚本管理模型配置
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Model configuration editor for ~/.pi/agent/models.json - 使用 Bun 脚本管理模型配置
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Web search, online search, real-time search, internet search, Google alternative, Bing alternative, DuckDuckGo alternative, search the web, lookup online, find information, research,查询,搜索,搜索结果,网页搜索,联网搜索,实时搜索,网络查询,资料查找,信息检索,最新资讯,新闻搜索, Tavily Search API for optimized, real-time web search results for RAG. A pre-configured, cost-effective search tool.
在 macOS 上使用 osascript 执行 AppleScript 或 JavaScript for Automation (JXA) 实现系统自动化。当用户需要控制 macOS 应用(Finder、Safari、Mail、Calendar、Keynote、Numbers、Pages 等)、操作系统 UI、显示对话框/通知、读写剪贴板、自动化重复任务、或任何涉及 osascript/AppleScript/JXA 的需求时,必须使用本技能。即使用户只说"帮我自动化这个"或"在 Mac 上操作 XXX",也应优先考虑本技能。
读取和写入输出风格目录的工具技能。当用户需要:(1)读取输出风格文件,(2)写入/创建输出风格文件,(3)管理输出风格目录,(4)解析风格文件格式时使用。
Best practices for writing and maintaining high-quality role memories.
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
Load prior knowledge from role memory before starting any task.
| name | models-config |
| description | Model configuration editor for ~/.pi/agent/models.json - 使用 Bun 脚本管理模型配置 |
管理 ~/.pi/agent/models.json 配置文件的命令行工具。
# 列出所有模型
bun ~/.pi/agent/skills/models-config/models.ts list
# 添加 Provider
bun ~/.pi/agent/skills/models-config/models.ts add provider myprovider https://api.example.com/v1 --api-key sk-your-api-key
# 添加模型
bun ~/.pi/agent/skills/models-config/models.ts add model pox gpt-5.4 --reasoning --context-window 200000
# 测试连接
bun ~/.pi/agent/skills/models-config/models.ts test pox gpt-5.4
# 测试推理
bun ~/.pi/agent/skills/models-config/models.ts test pox gpt-5.4 --reasoning --thinking high
# 测试流式响应
bun ~/.pi/agent/skills/models-config/models.ts test pox gpt-5.4 --stream
# 批量测试
bun ~/.pi/agent/skills/models-config/models.ts batch pox
# 更新价格
bun ~/.pi/agent/skills/models-config/models.ts update
# 验证配置
bun ~/.pi/agent/skills/models-config/models.ts validate
bun models.ts list # 列出所有
bun models.ts list --provider pox # 查看 pox 详情
bun models.ts list --json # JSON 格式输出
bun models.ts add provider <name> <baseUrl> [options]
# 选项:
# --api-key <key> API 密钥
# --api <type> API 类型 (默认: openai-responses)
# --auth-header 使用 Authorization header
# 示例:
bun models.ts add provider myprovider https://api.example.com/v1 \
--api-key sk-your-api-key \
--api openai-responses \
--auth-header
bun models.ts add model <provider> <modelId> [options]
# 选项:
# --name <name> 显示名称
# --reasoning 支持推理功能
# --context-window <n> 上下文窗口 (默认: 128000)
# --max-tokens <n> 最大输出 (默认: 16384)
# --cost-input <n> 输入价格 $/M
# --cost-output <n> 输出价格 $/M
# 示例:
bun models.ts add model pox gpt-5.4 \
--name "GPT-5.4" \
--reasoning \
--context-window 200000 \
--max-tokens 64000
支持所有主流 API 类型和高级功能:
bun models.ts test <provider> [modelId] [options]
# 基本测试
bun models.ts test pox gpt-5.4
# 指定测试消息
bun models.ts test pox gpt-5.4 --message "What is 2+2?"
# 测试流式响应
bun models.ts test pox gpt-5.4 --stream
# 测试推理能力
bun models.ts test pox gpt-5.4 --reasoning --thinking high
# 推理级别: minimal / low / medium / high / xhigh
支持的 API 类型:
| API 类型 | 说明 | 端点 |
|---|---|---|
openai-responses | OpenAI Responses API | /responses |
openai-completions | OpenAI Chat Completions | /chat/completions |
anthropic-messages | Anthropic Messages API | /v1/messages |
google-generative-ai | Google Gemini API | /v1beta/models/:generateContent |
mistral-conversations | Mistral API | /v1/chat/completions |
azure-openai-responses | Azure OpenAI | /openai/deployments/.../responses |
# 批量测试所有模型
bun models.ts batch pox
# 带推理的批量测试
bun models.ts batch pox --reasoning
# 带流式的批量测试
bun models.ts batch pox --stream
# 删除整个 provider
bun models.ts rm pox
# 删除指定模型
bun models.ts rm pox gpt-5.4
从 models.dev 获取最新价格数据:
bun models.ts update
bun models.ts update --provider pox # 只更新 pox
# 查看 OpenAI 兼容配置模板
bun models.ts template openai-compatible
# 查看 Anthropic 兼容模板
bun models.ts template anthropic-compatible
bun models.ts validate
{
"providers": {
"pox": {
"baseUrl": "https://api.example.com/v1",
"apiKey": "sk-your-api-key",
"api": "openai-responses",
"authHeader": true,
"models": [
{
"id": "gpt-5.4",
"name": "GPT-5.4",
"reasoning": true,
"input": ["text", "image"],
"output": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 200000,
"maxTokens": 64000
}
]
}
}
}
~/.pi/agent/models.json