Skip to main content

Opencode Integration Guide for Agnes Models

1. Overview

This document explains how to configure Opencode to use Agnes models. The currently available materials only include the Opencode title and do not provide complete configuration screenshots or command-line steps. Therefore, the following content follows a general OpenAI-Compatible API integration format and can be used as a template for future updates.

2. Prerequisites

Before you begin, make sure you have the following:
  • Opencode installed.
  • An Agnes AI API Key.
  • A network environment that can access the Agnes AI API Gateway.
  • The model name you want to use.
If Opencode supports OpenAI-Compatible APIs, you can use the following configuration:
text
Provider Type: OpenAI-Compatible
API Base URL: https://apihub.agnes-ai.com/v1
API Key: YOUR_API_KEY
Model: agnes-2.0-flash

4. Model Name

We recommend using the following text model first:
text
agnes-2.0-flash

5. Notes

The API Base URL usually ends with /v1. Recommended:
text
https://apihub.agnes-ai.com/v1
Usually not recommended:
text
https://apihub.agnes-ai.com/v1/chat/completions
Unless Opencode explicitly requires the full endpoint URL, you should only enter the base URL.