OpenCode Providers and Models on Mobile
Use this page when a model is missing from Chat, a provider needs authentication, or you want a shorter model picker.
Understand the two authentications
Section titled “Understand the two authentications”- Connection credentials protect access to your OpenCode server.
- Provider credentials allow OpenCode to call an AI provider.
Changing one does not configure the other. A provider key is stored by the connected OpenCode server, not used as the mobile server password.
Add a provider
Section titled “Add a provider”- Open Settings → AI & providers.
- Tap Add provider.
- Choose a provider with an available login method.
- Select API key, OAuth, or another method supplied by the server.
- Complete the browser flow or enter the requested credential.
- Return to Settings and confirm the provider appears as configured.
Some OAuth flows open the browser and wait for completion. Others show a pairing/device code or ask you to paste an authorization code. The app shows the instructions and a copy action when the code is available.
A provider can have multiple stored accounts on OpenCode 2 servers. Select the active account from the provider row, or add another account for the same provider. Removing an account deletes the credentials stored through OpenCode for that account.
Choose visible models
Section titled “Choose visible models”Configured providers appear once as expandable rows with their model count, accounts, and remove action. Expand a provider to enable or disable its models.
- Enabling a model makes it available in the Chat picker; disabling it removes clutter without deleting the provider.
- Models are grouped by provider and several providers can stay expanded.
- If every stored enabled model disappears, the currently available configured models become enabled by default.
In Chat, the model picker is searchable, groups models by provider, and shows Selected and Recent sections. Selecting a model also selects its provider.
Model capabilities come from the server, including attachment support, input modalities, tool use, reasoning, status, and context/output limits. If an attachment action is unavailable, select a model that advertises attachment support.
If neither the stored model nor the server-configured default resolves, the picker shows Select model and the app sends without a model so the server default can apply. It does not silently choose a blocked model.
Model variants and memory
Section titled “Model variants and memory”On OpenCode 2, the picker shows Default plus the model’s server-reported variants. The selected variant is saved per model and applied to new prompts and commands. Models without variants hide the selector.
The composer remembers the latest model per agent. Switching agents restores that agent’s last explicit model; an agent without one lets the server or agent default apply. Onboarding does not ask for a global default model.
Each assistant reply records the model that produced it, including auto-routed replies, so a later model switch does not erase which model answered an earlier turn.
Automatic model routing
Section titled “Automatic model routing”OpenCode Mobile can classify each prompt as Simple, Standard, or Complex and choose a model for that tier. It is opt-in, supports an on-device or server classifier, and never falls back to a guessed tier.
See Automatic model routing for the classifier choices, tier mapping, thinking levels, and long-chat cache guard.
Choose how to send messages during work
Section titled “Choose how to send messages during work”On OpenCode 2, Settings → Chat & responses → Messages sent while working controls prompt delivery:
- Steer applies the next message at the next step of the current response.
- Append queues it for a later turn.
This setting affects prompt delivery, not model selection.
Pick for the job
Section titled “Pick for the job”- Use a capable reasoning model for planning and difficult code changes.
- Use a faster or less expensive model for routine summaries and status checks.
- Consider automatic routing when you want that choice made per prompt.
- Keep the session focused so model choice is not compensating for unrelated context.
- Check Session usage when cost or context pressure matters.
Troubleshooting
Section titled “Troubleshooting”- No providers appear: connect to the server first and refresh.
- A provider is missing from Add provider: the server did not expose an interactive login method for it. Configure environment-only providers on the server.
- A model is missing: confirm the provider is configured, the model is enabled, and the server reports it.
- A variant is missing: the model may no longer expose it; choose Default.
- OAuth never finishes: reopen the provider row, retry the browser flow, or cancel the pending attempt.
- Provider credentials are rejected: remove and re-add the account, or check the provider dashboard.
- A reply used a different model: check whether automatic routing is on or an agent restored its remembered model.
Next: Automatic model routing, understand usage, or start a task.