Skip to main content

OpenCode guide

Run an OpenCode task on your app

Connect an OpenCode provider, choose its default model, and complete a small task in Build mode.

4 min readUpdated Start the guide

OpenCode setup follows Provider, Connect, and Model. The provider controls available authentication methods, models, and charges. Start by making that connection explicit, then verify one small edit rather than assuming a familiar provider name means every feature is available.

On this page

Requirements

Before you start

Make sure you have these in place before following the steps:

  • An eligible workspace with OpenCode enabled and a ready runtime.
  • Owner or configuration access to connect providers and save the default model.
  • Provider-authorized access, or an available model that the provider allows without adding a key.
An OpenCode task conversation in the Agent Dashboard.
An OpenCode task conversation with sample data. Its controls differ from the Claude Code and Codex examples. Open full-size screenshot
Step 1 of 6

Open the OpenCode setup flow

Open Coding Agents and enable OpenCode. Find Make OpenCode yours. The progress steps are Provider, Connect, and Model. If the page says Setup needed, finish this flow before opening a task; Ready to build should identify a usable default model.

Step 2 of 6

Choose the provider you intend to pay

Use Search providers and select the intended entry. Read whether it is connected or needs sign-in or a key. Choose Continue with the provider. Keep work and personal billing ownership clear with an Account name when the connection form offers one.

Step 3 of 6

Complete one supported connection method

Select the offered Connection method, provide only its required fields, and follow Continue to sign in or Connect account. Keep the page open during authorization. Some flows complete automatically; others ask for an Authorization code and Finish sign-in. Use only the method that works for a remote workspace.

Step 4 of 6

Choose and save the default model

Use Search models to find an available model through the chosen provider. Select it and choose Use this model. Read the saved result. An empty model list can mean the provider is not connected or needs a refresh, not that guessing a model ID will enable it.

Step 5 of 6

Create a task and check Agent mode

Open Agents and choose + New task for the intended App and OpenCode. Use the configured or reported model and create the task. New OpenCode tasks start in Build. Its Agent mode menu selects native agents such as Build or Plan; it is not the same as a filesystem permission guarantee.

First OpenCode task
Find the component that displays an empty project list. Explain the current behavior first.
Then change only the empty-state heading to 'Create your first project'. Keep links, permissions, and data unchanged.
Report changed files and checks. Do not submit or deploy.
Step 6 of 6

Inspect the edit and verify provider readiness

Read Changes and the relevant Checks. Try the screen in a supported preview and correct any unexpected edit. Check that the task used the intended provider and model before expanding scope. Treat submission and release as separate from finishing the agent's response.

Check the result

  • OpenCode reports a usable provider and saved default model.
  • The new task starts in the intended mode on the correct app.
  • You have reviewed one bounded change and its evidence.

Troubleshooting

The sign-in requires a callback to your own localhost.

Use a remote-compatible method offered by that provider, such as an appropriate device/pasted-code flow or API key. Do not keep retrying a local-only callback against the cloud workspace.

No models are available after connecting.

Use Refresh models, confirm the provider connection and account entitlement, and search again. Save only an available model from the provider's current list.

Availability and limits

  • Provider account access and inference must work in the deployed workspace; catalog visibility is not proof of quota.
  • Do not expect Crew Chief teams, context transfer, live steering, or Fast mode from this integration. Model and effort choices depend on the selected provider.

Related documentation

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.