Use OpenCode with free, local, or your own models

ComputerWeb app3 min readUpdated October 3, 2026

OpenCode works with the AI providers you set up in it, including free and local models, so it doesn't need one particular subscription. Here's how to use it in Enjoy.

OpenCode is an open-source coding agent. Instead of one company’s plan, it uses the models from the providers set up in it, which can include free models, models on your own computer, and providers you pay with an API key.

Before you start

  • Use the Enjoy app on your computer to install and set up OpenCode. After that, you can also use it from the web app.

Steps

  1. Install OpenCode

    Select the agent button at the bottom of the message box, select OpenCode in the Agent column, then select Install OpenCode. See Install an agent.

  2. Select Use OpenCode

    OpenCode doesn’t need a sign-in. If it has no models ready, Enjoy shows Set up OpenCode. Add a provider as described below, then select Check connection.

  3. Choose a model

    The Model column lists the models OpenCode offers from your providers.

  4. Choose Build or Plan

    In the Permissions column, Build makes changes using your OpenCode permission settings, and Plan explores and plans using OpenCode’s Plan mode.

  5. Send your message

    OpenCode works with the model and mode you chose.

Good to know

  • Adding a provider: open Terminal on a Mac, PowerShell on Windows, or a terminal on Linux. Type opencode auth login, press Return or Enter, and follow OpenCode’s prompts to choose a provider and add its key. Then open the agent settings in Enjoy again, and the new models appear. For local models and other setups, see OpenCode’s provider guide.
  • If the terminal says it can’t find opencode, Enjoy installed it in a folder your terminal doesn’t search. Type ~/.opencode/bin/opencode auth login on a Mac or Linux, or & "$HOME\.opencode\bin\opencode.exe" auth login in PowerShell on Windows.
  • Each model uses the reasoning level set up for it in OpenCode, so the only effort choice is Model default.
  • OpenCode doesn’t have Fast mode.
  • The agent settings show Usage unavailable for OpenCode, because usage depends on each provider. Check your usage with the provider.
  • When OpenCode’s permission settings say to ask first, Enjoy shows an approval card in the conversation. Questions from OpenCode arrive as Enjoy questions.
  • There’s no account to switch for OpenCode in Enjoy. Change providers in OpenCode instead.
  • If you send a message while OpenCode is working, it waits until the current work ends.
  • Enjoy runs OpenCode with its automatic updates and its conversation sharing turned off. Enjoy tells you about new versions instead. See Update an agent.

If something goes wrong

OpenCode has no available models

OpenCode doesn’t have a provider it can use yet. Add one with opencode auth login as described above, then reopen the agent settings.

OpenCode is not ready yet

The Set up OpenCode window shows this, or No models are ready yet, when Enjoy checked OpenCode and found no models. Add or fix a provider, then select Check connection again.

This OpenCode version does not support image attachments

Update OpenCode to attach images. The same applies to This OpenCode version cannot resume sessions.

OpenCode stopped before finishing

The message ends with Retry this conversation. Select Retry on the failed message.

Did this help?

Still need a hand?

Email help@enjoy.dev with your computer, your Enjoy version, and what happened. Leave out passwords and sign-in codes. For questions and ideas, join our Slack community .