Give your agent this prompt
Paste this into Claude Code, Codex, Cursor or any agent that can make HTTP requests:How it works
1
The agent signs up
One
POST with no credentials returns an MCP address, an API key and a claim link. The address belongs to the new account, for example https://agent-k3x9q2ab.lug.dev/agent.2
It starts working
Before anyone claims it, the account has Corsair’s built-in apps: PM, CRM, skills and routines. The agent can’t connect your Gmail or Slack yet.
3
You get an email
If the agent gave your address, Lug emails you “Agent name set up Lug for you”, with a Claim your Lug button, the note the agent wrote and a 6-digit code. If you already have Lug, nothing was made yet: the email says “Agent name wants to connect to your Lug” and asks you to approve it.
4
You claim it
Open the link and sign in, or read the code to your agent. After the claim, the agent can ask you to connect apps.
Before and after the claim
A claimed agent’s link starts in Cautious mode, so actions that delete something wait for your approval.
Claiming an account
- From the email
- With the code
Open Claim your Lug and sign in. If the agent named your address, sign in as that address.If you have no Lug account yet, choose Claim. The workspace the agent made becomes yours, with everything the agent did in it.If you already have Lug and the agent named your address, it made no account of its own. Choose Approve and it gets a link at
/agent on your handle, or another path if /agent is taken, with the key it already holds. Its address never changes after that.If you already have Lug and claim an account the agent made without naming you, choose Approve. The agent gets a new link on your Lug that keeps its API key, and the account it made is closed. Its MCP address moves to your handle, and the agent reads the new address from GET /status.Signed in at hub.corsair.dev/me, you also see each agent waiting for you as a card with Approve and Not me. The card shows the code your agent should be showing, such as R5BS-NHUE, so you can tell which agent it is.For agent builders
Sign up
harness names the client the agent runs in, such as claude-code, codex or cursor. Without human_email, nobody gets an email. Give your person claim_url instead, or send the email later with /resend.
The response is 201:
human_email already has a Lug, the response is 202 with "status": "approval_pending", and mcp_url, handle and setup are null. No account is made. Store api_key anyway: it starts working once your person approves you, on a link on their Lug. Until then, GET /status returns approval_pending, and it returns your mcp_url once they approve.
Store api_key right away. Lug shows it once and keeps only a hash. message tells the agent what to do next, and user_code is the code your person sees on their /me card.
Connect to the MCP server
Send the key as a Bearer header tomcp_url. setup in the response has the Claude Code command and an mcpServers block with your address and key filled in.
- Claude Code
- Cursor
- VS Code
- HTTP
The address can change once. If your person already has a Lug handle and claims an account the agent made first, its link moves to their handle and the old address stops working. The key stays the same. Read the new
mcp_url from GET /status and point your client at it: in Claude Code, run claude mcp remove lug and add it again with the new address; in Cursor or VS Code, change url in mcp.json.list_integrations shows the built-in apps from the first call.
After signup
Each of these takes the key asAuthorization: Bearer <api_key>.
All paths are on
https://hub.corsair.dev. Call /status after a claim. If your person already had a Lug handle, mcp_url now points at it and the old address stops working, so update your client as described in Connect to the MCP server.
The auth.md protocol
Lug also supports auth.md, for clients that sign agents up through OAuth. The authorization server metadata athttps://hub.corsair.dev/.well-known/oauth-authorization-server/mcp-auth carries an agent_auth block with:
- anonymous and
service_authregistration at/api/lug/agent/identity, with the person’s email aslogin_hint - a claim flow at
/api/lug/agent/identity/claim, where your person signs in and approves auser_code - 15-minute access tokens from a
jwt-bearerexchange at/api/mcp-auth/token - token revocation at
/api/mcp-auth/revoke, following RFC 7009
Limits
- 3 signups per IP address an hour and 10 a day, and 6 an hour and 20 a day per network (an IPv4 /24 or IPv6 /48).
- 3 claim emails to one address a day, 10 to one company’s domain a day, and one resend every 5 minutes. Gmail, Outlook and other personal providers have only the per-address limit.
- An unclaimed account stops working after 7 days. A claimed one has no expiry.
GET /status with its key to see where it stands.
Errors
Errors are JSON witherror, error_description and agent_support, which says where to get help.
Removing an agent
An agent gives its account up withPOST /api/lug/agent-signup/revoke and its key. The key stops working at once.
You can remove a claimed agent yourself. Its link is listed with your other links at hub.corsair.dev/me, and you remove it there like any other link.