Skip to content

OpenCode Configuration Tutorial ​

Introduction to OpenCode ​

OpenCode is an open-source and free AI programming agent that can autonomously modify code, run commands, and handle development tasks. It is model-neutral and supports multiple usage methods including terminal, desktop, and IDE.

OpenCode Configuration Steps ​

  1. Enter Settings

OpenCode Configuration Steps

  1. Select Custom Provider

OpenCode Configuration Steps

  1. Fill in the parameters. Reference parameters are as follows:
Configuration ItemDescription
Provider IDCustom
Display NameCustom
Base URLhttps://ai-tokenhub.com/api/v1
API KeyToken's API key (starts with sk-)
ModelCan be copied from AI-TokenHub Model Marketplace, or obtained via the button on the right side of the default model

OpenCode Configuration Steps

  1. Click Submit

OpenCode Configuration Steps

  1. Create a new project, select the model and start using it

OpenCode Configuration Steps