Skip to main content

Supported Providers


Free Models

These models work without any API key:

Setting Up a Provider

1

Open Settings

Navigate to Settings in the sidebar.
2

Select provider

Choose your provider from the list.
3

Enter API key

Paste your API key. It is stored locally via OpenCode’s configuration.
Via API:

Model Selection

Select which model to use for execution:
  1. Open the Model Selector dropdown in the project config panel (top of the kanban board)
  2. Browse connected providers and their available models
  3. Select a model — it applies to all subsequent executions
Via API:
Get current model:

Permission System

During execution, the AI agent may request permission to use certain tools (e.g., executing shell commands, writing files). These appear as permission requests in the task detail view.

Permission Responses

Responding to Permissions

In the UI, permission requests appear as actionable cards in the task detail view. Via API:

Provider Status

Check which providers are connected:
Returns:
The ready field is true when at least one provider is authenticated.