Connect OpenCode to Lattice
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Lattice
A preset of real Lattice operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Lattice
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
Lattice
22 toolsRead the Lattice profile associated with the connected API key.
List employees in Lattice, optionally filtered by lifecycle status.
Get an employee's profile and references to related resources.
List the people who report directly to a user.
List an employee's custom attributes and their assigned values.
List departments in the connected Lattice company.
List goals across the company, optionally by goal state.
List goals owned by one employee.
Read a goal and its current progress by ID.
Create an objective or key result for one or more Lattice users.
Replace a goal's editable fields. Enter the values you want to keep.
Post a progress update by setting a value or adding to the current value.
List recorded progress updates for one goal.
List recorded progress updates across goals.
List continuous feedback, newest first.
Read a continuous feedback entry by ID.
List employee updates in the connected company.
Read an employee update and its responses by ID.
List performance review cycles and their current stages.
Read the details and stage of a review cycle.
List people being reviewed in a specific review cycle.
List reviews in a specific review cycle.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Lattice with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Lattice wired in as tools. Connect your account and run.