/lanes-link:setup-lanes-linkfrom lanes-link
Installs and configures Lanes Link, a self-hostable MCP endpoint that connects personal accounts (Gmail, GitHub, Notion, Slack, etc.) and local vault/memory to AI agents. Covers CLI install, auth, workspace setup, and endpoint registration.
Ships in lanes-link. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lanes Link is one MCP endpoint the user runs themselves. Behind it sit the accounts they connect (Gmail, GitHub, Linear, Notion, Slack, and over a hundred more) plus material that is theirs rather than an account: memory, tasks, assets, skills, an identity record, and a vault for passwords and API keys. Nothing routes through Lanes servers.
Your job is the setup path, end to end, in the order below. The order is load-bearing and two of the steps fail silently when they are done out of turn. Read "Critical gotchas" before you start, not after something looks broken.
Once it is running, the endpoint installs its own usage skill at ~/.claude/skills/lanes-link/SKILL.md. That document, not this one, is how to use what you set up here.
| Check | Command | A failure means |
|---|---|---|
| Bun | bun --version | Below 1.3.11, or missing: install from https://bun.com first. There is no build step and no other runtime. |
| Already installed | command -v lanes && lanes --version | Already there: skip step 1, and consider bun update -g @lanes-sh/link. |
| Already running | lanes link status --json | Answers: it is set up. Find out what they actually want changed before running anything. |
bun install -g @lanes-sh/link
lanes --version
Run that second line. Several commands read the token with $(lanes link token show --raw), and with lanes off the PATH that substitutes to an empty string. The only symptom is a 401 that looks like a bad token, and it will cost an hour if you skip this.
Then sign in. A profile declares who may consume it, so the endpoint has to know who is asking. The network is needed to sign in and to refresh, not per call.
lanes auth login
A workspace holds the connections and the profiles, and decides which stores open them. Locally that is a directory and an encrypted file; deployed, a bucket and Secret Manager.
Ask before choosing. This is the one decision that is expensive to change: accounts authorised against local have to be migrated if they deploy later.
| Mode | Command | Who it is for |
|---|---|---|
| Local | lanes link start --workspace local | Agents on this machine: Claude Code, Codex, Cursor. Leave it running. |
| Self-hosted | lanes link deploy --workspace cloud | Anything that cannot reach this machine: claude.ai, ChatGPT, a phone. Goes to Google Cloud Run. Needs gcloud and a billing account; it creates the project itself. |
Every command from here down carries --workspace <name>, and this step is what fixes that name. A deployed workspace has its own credential store, so its token is a different string from the local one.
Optional, and only if they want the Lanes dashboard to read this endpoint:
lanes link pair --workspace local
It installs a local certificate first, and asks before it does. pair starts nothing: someone who ran only pair has a dashboard reporting the endpoint unreachable while it is answering perfectly well.
lanes link profile add personal --workspace local
lanes link profile members add --me --profile personal --workspace local
The second command is not optional. An empty members list means nobody, which is the opposite of how a blank list reads, so the profile reaches no one until they are on it.
Most people start with one profile. More than one is for keeping work and personal credentials, memory and policy apart.
Everything is denied until it is allowed, and the endpoint enforces that when a call is dispatched rather than asking the model to behave:
lanes link policy list --profile personal
One command per account. It opens a browser and nothing else, and the connection is served straight away with nothing to restart.
lanes link connect gmail --workspace local
Not sure what a provider needs, or which are already on:
lanes link setup plan --workspace local
lanes link setup plan <provider>
Memory, tasks, assets, skills, entities and the vault work with nothing connected. They hold the user's own material rather than an account, so there was never anything to authorise.
lanes link mcp add --workspace local
Register last, after the accounts are connected. A client reads the tool list when it connects and keeps it, so one registered first holds a list without them until it re-reads. From 0.10.4 that is a delay rather than a dead end: lanes_tools_search and lanes_tools_call are in every list the endpoint hands out, so an agent can find and invoke an account its own list does not name. Registering last is still the tidier order, but it is no longer something to undo and redo.
With no argument that covers every agent installed on the machine, or name one: claude, codex. One endpoint, one token, every profile, so it is once per agent rather than once per account. It also installs the usage skill and a scout agent, which is how the agent knows what the endpoint is for; --no-skill registers without touching the agent's own files.
Two clients cannot be done this way:
export LANES_LINK_TOKEN="$(lanes link token show --raw)"Anything else that takes a URL and a bearer token:
lanes link outputs --workspace local --show
Verify the whole thing:
lanes link status --workspace local
lanes link mcp list
Then have them start a fresh Claude Code session so the registration loads.
lanes link profile members add --me.lanes off the PATH. The $(lanes link token show --raw) substitution silently yields an empty string.start and pair are independent. pair lets the dashboard read the endpoint. It does not serve it.lanes_tools_search, so this is an ordering preference rather than a re-registration.--workspace cloud has its own credential store, so its token differs from the local one and connections do not carry across.lanes link skills add, the client must reconnect. A skill is served as a prompt rather than a tool, so no counter moves and nothing announces it.~/.claude/skills/lanes-link/SKILL.md, are the other kind. Do not offer to "add a skill" when someone means either one without saying which you mean.lanes link outputs --show prints it for the person, not for the transcript.lanes link connect for a provider they did not ask for, however obvious it seems. Each one is a real OAuth grant.mcp add has run, the tools and the installed lanes-link skill take over.~/.claude/skills/lanes-link/SKILL.md, installed by lanes link mcp add, is the usage manual: profiles as a boundary, what a refusal means, what to do when it is not running.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lanes-sh/app --plugin lanes-linkOther plugins' skills for the same job