Documentation Index
Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt
Use this file to discover all available pages before exploring further.
通过 AGIPower 使用 OpenCode 指南
OpenCode 是一款专为终端设计的 AI 编程智能体,通过与 AGIPower 的集成,您可以获得更多强大模型的支持,提升开发效率。安装 OpenCode
OpenCode 提供多种安装方式,您可以根据自己的系统环境选择合适的方法:快速安装
npm/pnpm/yarn
macOS & Linux
Windows
Arch Linux
配置 OpenCode
登录并配置 AGIPower
安装完成后,您需要配置 OpenCode 以使用 AGIPower 的 API。Step 1: 启动 OpenCode 并登录
首次使用时,OpenCode 会提示您进行登录配置:
</div>
Step 2: 输入 AGIPower API Key
选择 AGIPower 后,系统会提示您输入 API Key。请输入您的 AGIPower API Key(格式为sk-xxx):
<div style=“text-align: center;”>
</div>
Step 3: 选择模型
配置完成后,使用/models 命令查看和选择可用的模型:
</div>
支持的模型
AGIPower 为 OpenCode 提供了丰富的模型选择,以下是当前支持的模型列表(持续更新中):下表列出的是已验证支持 OpenCode 的推荐模型。如果您需要使用其他模型,欢迎通过页面底部的联系方式与我们反馈,我们会第一时间提供原生支持。
| 序号 | 模型名称 | 模型 Slug |
|---|---|---|
| 1 | Ling-1T | inclusionai/ling-1t |
| 2 | Ring-1T | inclusionai/ring-1t |
| 3 | Claude Haiku 4.5 | anthropic/claude-haiku-4.5 |
| 4 | Claude Opus 4.1 | anthropic/claude-opus-4.1 |
| 5 | Claude Sonnet 4.5 | anthropic/claude-sonnet-4.5 |
| 6 | DeepSeek-V3.2-Exp (Non-thinking Mode) | deepseek/deepseek-chat |
| 7 | Gemini 2.5 Pro | google/gemini-2.5-pro |
| 8 | KAT-Coder-Pro-V1 | kat-ai/kat-coder-pro-v1 |
| 9 | Kimi K2 0905 | moonshotai/kimi-k2-0905 |
| 10 | GPT-5 Codex | openai/gpt-5-codex |
| 11 | GPT-5 | openai/gpt-5 |
| 12 | Qwen3 Coder Plus | qwen/qwen3-coder-plus |
| 13 | Grok 4 Fast Non Reasoning | x-ai/grok-4-fast-non-reasoning |
| 14 | Grok 4 Fast | x-ai/grok-4-fast |
| 15 | Grok 4 | x-ai/grok-4 |
| 16 | Grok Code Fast 1 | x-ai/grok-code-fast-1 |
| 17 | GLM 4.5 Air | z-ai/glm-4.5-air |
| 18 | GLM 4.6 | z-ai/glm-4.6 |
使用效果
配置完成后,OpenCode 将为您提供强大的 AI 编程辅助能力: <div style=“text-align: center;”>
</div>
故障排除
常见问题解决
API Key 错误
问题:提示 API Key 无效或未授权 解决方案:- 检查您输入的 AGIPower API Key 是否正确
- 确认 API Key 是否已激活且有足够余额
- 验证 API Key 格式是否以
sk-开头 - 重新运行
opencode命令并重新配置