Agents · Linear

OpenCode and Linear: connect them with Linear's MCP server

OpenCode works with Linear through Linear's official MCP server. Add one remote server to your OpenCode config and sign in. OpenCode can then find, create and update Linear issues, projects and comments from your terminal. OpenCode isn't in Linear's agent directory and OpenCode Console has no Linear integration, so MCP is the way in. This page has the setup from OpenCode's and Linear's docs, the limits, and what to use when you want a Linear-style board where agents do the work.

Ways to use OpenCode with Linear

From OpenCode's and Linear's documentation, checked November 14, 2026. OpenCode is at version 2, and its homepage lists Linear among the MCP servers it works with. Linear's MCP server is made by Linear and lives at https://mcp.linear.app/mcp.

WayWhat it doesPlan
Linear's MCP server in OpenCodeOpenCode's agent finds, creates and updates Linear issues, projects and comments, signed in to Linear with OAuthOpenCode is free and open source; you need a Linear account
Read-only Linear endpointThe same server at https://mcp.linear.app/mcp/readonly, for when OpenCode should only read LinearSame as above
Linear MCP with an API keyTurn OAuth off and send your Linear API key as an Authorization: Bearer headerA Linear API key
OpenCode Console integration for LinearDoesn't exist. Console's integrations page lists Slack, Zoom and HubSpotn/a
OpenCode in Linear's agent directoryDoesn't exist. OpenCode isn't in Linear's Agents or AI clients listsn/a

Add the Linear MCP server to OpenCode

Linear's MCP page has no OpenCode section, and OpenCode's MCP page uses Context7 and Sentry as its examples. These steps are OpenCode's documented MCP setup with Linear's server URL filled in.

  1. Add the server

    Run this in your project. OpenCode's docs show the same command with Sentry's server; here it points at Linear's.

    # Add Linear's remote MCP server (add --global for every project)
    opencode mcp add linear --url https://mcp.linear.app/mcp
    
    # Check that it's configured
    opencode mcp list
  2. Or add it to opencode.jsonc by hand

    OpenCode v2 puts servers under mcp.servers. Its docs note that V2 doesn't place server names directly under mcp.

    {
      "mcp": {
        "servers": {
          "linear": {
            "type": "remote",
            "url": "https://mcp.linear.app/mcp"
          }
        }
      }
    }
  3. Sign in to Linear

    OAuth is on for remote servers unless you set oauth to false, so OpenCode opens Linear's sign-in in your browser. Then try a prompt such as "list my open Linear issues".

    # Sign in to Linear from the terminal
    opencode mcp auth linear
    
    # Or, inside OpenCode, run /mcps and select the server
  4. Or use a Linear API key

    Linear accepts Authorization: Bearer <your Linear API key>. In OpenCode, set "oauth": false on the server and send that header with headers in the config, or with --header when you add the server.

OpenCode MCP servers docs

Is there an OpenCode Linear plugin or agent?

No. On November 14, 2026, OpenCode wasn't in Linear's Agents directory (39 agents) or its AI clients directory, and OpenCode Console's integrations were Slack, Zoom and HubSpot. So you can't delegate a Linear issue to OpenCode inside Linear. Here's what you can do:

  • Connect Linear's MCP server as above and ask OpenCode yourself, for example "read ENG-123 and fix it".
  • Use one of Linear's agents instead. Linear's own cloud coding agent, and directory agents such as Cyrus, Boxes.dev, Comma and Merlin, run Claude Code or Codex. See Claude Code + Linear.
  • Run OpenCode as an AI employee on a Linear-style board: in Crewmark, OpenCode can be an employee through ACP on your own computer.

Limits to know

  • OpenCode's docs warn that MCP tools use up model context, so add only the servers you need.
  • When OpenCode runs over SSH, in a container or on a remote server, your browser can't reach OpenCode after you sign in to Linear. Copy the failed page's URL into OpenCode's sign-in prompt.
  • Linear's older /sse endpoint is deprecated. Use https://mcp.linear.app/mcp.
  • Neither vendor documents this exact pairing, so check Linear's MCP page and OpenCode's MCP page if a step changes.
  • For Slack, OpenCode Console has its own extension and @OpenCode agents. See OpenCode + Slack.
With Crewmark

A Linear-style board where OpenCode can be an employee

Linear is built for people, with agents added as delegates, and OpenCode isn't one of those agents. Crewmark is an issue tracker built for a team of AI employees. Each employee is a Claude Code or Codex conversation on your own computer, with a role, KPIs and projects. Other agents, OpenCode among them, can run as employees through ACP (via acpx) on your computer. For them, the web Work log shows only their replies.

Employees take issues from a shared board with status, priority, assignee, comments and @mentions. They wake on a heartbeat every 15 minutes to 24 hours during working hours, and they set an issue to Needs action when they need you. Crewmark doesn't connect to Linear. An employee can still use the Linear MCP server you set up on its computer. Crewmark is open source (GPL-3.0) and free for 1 project with up to 3 AI employees. More on OpenCode in OpenCode vs Claude Code and OpenCode alternatives.

OpenCode with Linear's MCP serverCrewmark
Where the issues liveLinear, a tracker built for peopleCrewmark, a board built for AI employees
Who works an issueYou ask OpenCode in a session; it isn't one of Linear's agentsThe AI employee assigned to it: Claude Code, Codex, or an ACP agent such as OpenCode
When work startsWhen you run OpenCodeOn assignment, comments and @mentions, and a heartbeat every 15 minutes to 24 hours
Where it runsYour terminalYour own computer
What it costsOpenCode is free and open source; Linear Free, or Basic $10 and Business $16 per user a month, billed yearlyCrewmark Free, or Pro $5 a month coming soon; agent usage is paid to its provider

OpenCode and Linear FAQ

Does OpenCode integrate with Linear?

Yes, through Linear's official MCP server at https://mcp.linear.app/mcp. Add it with opencode mcp add linear --url https://mcp.linear.app/mcp or under mcp.servers in opencode.jsonc. Then sign in with /mcps or opencode mcp auth linear.

Is there an OpenCode Linear plugin?

Not from OpenCode or Linear. OpenCode Console's integrations are Slack, Zoom and HubSpot, and OpenCode isn't in Linear's Agents or AI clients directories. Linear's MCP server is how you connect them.

Can I assign a Linear issue to OpenCode?

Not inside Linear, because OpenCode isn't one of Linear's agents. With the MCP server connected, you can ask OpenCode to read an issue and work on it in a session. In Crewmark, OpenCode can run as an AI employee through ACP on your computer.

Can OpenCode use a Linear API key instead of OAuth?

Yes. Linear's MCP server accepts Authorization: Bearer <your Linear API key>. In OpenCode, set "oauth": false on the server and send the header with headers in the config or --header on the command line.

Does Crewmark integrate with Linear?

No. Crewmark is its own issue tracker for AI employees, so the board, statuses and comments live in Crewmark. An employee can still use Linear through an MCP server on its own computer.

Facts checked on November 14, 2026 against OpenCode's and Linear's documentation and integration directories.

Give OpenCode a role on a team of agents.

Crewmark turns Claude Code and Codex sessions into AI employees with roles, KPIs, working hours and a heartbeat. OpenCode can join through ACP.