Skip to main content

Guide to Using OpenCode with AGIPower

OpenCode is a terminal-first AI coding agent. Through its integration with AGIPower, you gain access to more powerful models to boost development efficiency.

Install OpenCode

OpenCode offers multiple installation methods. Choose the one that best fits your system environment:
Quick Install
npm/pnpm/yarn
macOS & Linux
Windows
Arch Linux
For more detailed installation options and instructions, please refer to the OpenCode official documentation

Configure OpenCode

Sign in and configure AGIPower

After installation, you need to configure OpenCode to use the AGIPower API.

Step 1: Launch OpenCode and sign in

On first use, OpenCode will prompt you to sign in and configure:
Select AGIPower in the provider selection screen: <div style=“text-align: center;”> OpenCode Login </div>
Please ensure you select AGIPower as your API provider, not another vendor.

Step 2: Enter your AGIPower API Key

After selecting AGIPower, you will be prompted to enter your API Key. Please enter your AGIPower API Key (format sk-xxx): <div style=“text-align: center;”> Enter API Key </div>
You can obtain or create your API Key in the AGIPower Console.

Step 3: Choose a model

Once configured, use the /models command to view and select available models:
<div style=“text-align: center;”> Select Model </div>

Supported Models

AGIPower provides a wide range of models for OpenCode. Below is the current list of supported models (continuously updated):
The table below lists recommended models that have been verified to work with OpenCode. If you need other models, please contact us via the methods at the bottom of the page. We will provide native support as soon as possible.

Usage Experience

Once configured, OpenCode delivers powerful AI-assisted coding capabilities: <div style=“text-align: center;”> OpenCode in Action </div>

Troubleshooting

Common Issues

API Key Error

Issue: API Key reported as invalid or unauthorized Solution:
  • Verify that the AGIPower API Key you entered is correct
  • Confirm the API Key is active and has sufficient balance
  • Check that the API Key format starts with sk-
  • Re-run the opencode command and reconfigure

Contact Us

If you encounter any issues during use, or have suggestions and feedback, please contact us through the following channels:
For more contacts and details, visit our Contact Us page.