Skip to main content
The OpenWork plugin for OpenCode 2 brings your organization’s AI Gateway models and OpenWork MCP into a plain OpenCode install. You sign in once; OpenCode loads them every time it starts.
1

Install the plugin

2

Sign in

Choose Browser. Sign in to OpenWork, pick your organization and approve. OpenCode finishes signing in on its own.On SSH or a machine without a browser, use opencode auth login openwork --method code, open the link on any device and confirm the code.
3

Check what you got

Your AI Gateway models are listed as ipr_…/gwm_…. openwork-cloud gives the agent your organization’s skills, plugins and connections. Connections your admin made available in other apps appear as openwork-direct-<name>-<id>.
Signing out also ends the OpenWork session and removes the models and MCP servers the plugin added. Pick the other organization on the approval page when you sign in again.
Point the plugin at your OpenWork API in ~/.config/opencode/opencode.json:
Set "providers": false or "mcp": false in the plugin options.
The plugin shows the AI Gateway providers your organization grants you. Ask an admin to check AI Gateway in OpenWork Cloud. Models the catalog marks as deprecated are hidden.
Add OpenWork MCP to OpenCode directly: Connect OpenCode.