# Use OpenCode with Jobwright

Install OpenCode, connect a model provider, then choose OpenCode in Jobwright.

Canonical page: https://www.jobwright.io/docs/agents/opencode/
Markdown source: https://www.jobwright.io/docs/agents/opencode.md

Install OpenCode, connect your model provider, then select OpenCode in Jobwright.

## Before you start

- Keep the account or API access required by the provider that you select inside OpenCode.
- Install the agent in the same operating-system environment as Jobwright. A Windows install cannot use an agent that exists only in WSL.

## Install the agent

### Windows

```powershell
npm install -g opencode-ai
```

### macOS and Linux
```bash
curl -fsSL https://opencode.ai/install | bash
```

## Sign in with the provider

Run OpenCode. Enter /connect, choose your provider, and complete the method that OpenCode shows. Then choose a model.
```bash
opencode
/connect
```

## Connect it to Jobwright

Open Jobwright. Open Settings, then Local agents. Select Rescan and choose OpenCode. Continue after the agent shows Ready.

> Jobwright does not receive the provider password, API key, access token, payment details, or recovery codes. Complete sign-in in the provider tool.

[Open the official setup guide](https://opencode.ai/docs/)
