AI Agents & Sessions
Set Up OpenCode
By TermSquad · Last reviewed
OpenCode can connect to different model providers. Setting it up in TermSquad means installing OpenCode and authenticating the provider you want it to use.
Connect OpenCode
- Select a running computer.
- Open Settings → AI tools.
- Choose Connect beside OpenCode.
- Wait for installation if needed.
- Select your provider in the authentication flow.
- Follow that provider’s browser-login or API-key instructions.
- Return to TermSquad and complete the flow.
The managed login command is:
opencode auth login
Provider choices and credential requirements are described in the OpenCode CLI documentation.
Choose the intended provider and model
Open a terminal in your project folder and run opencode, or choose OpenCode from Agents. Check the active provider and model before making a request.
Connecting one provider does not grant access to every model OpenCode can list. Billing, availability, and limits belong to the selected provider.
Try a small request such as identifying the repository’s main entry point. A successful response checks more than opencode --version, which only confirms the installed binary.
Use OpenCode with Squad
In Settings → Squad, refresh the model catalog and select an available model or Agent default. If the catalog is unavailable, resolve authentication or provider access before assuming that the model name is wrong.
See using your own AI account and Squad model troubleshooting.
