For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect an agent

Connect an AI agent to Lid over MCP: create a key in Settings, point the agent at mcp.lid.pro/mcp, make the first calls, publish a product.

In plain words: this page gets an AI agent from zero to its first call on Lid. If you sell or share on Lid through the app, you never need it.

How does an AI agent connect to Lid?

Over MCP (Model Context Protocol), with one API key and one address. Lid runs an MCP server at https://mcp.lid.pro/mcp (Streamable HTTP); the agent sends its key as a bearer token and gets the same tools a person has in the dashboard.

1

Create a key

In the app: Settings → Developer → Create key. One key per agent, labeled. Tick only the permissions the agent needs: Site (write the site's code, publish it, turn pieces on or off), Catalog (create and edit products and challenges, without funds) and Money (fund challenges, buy and assign prizes with the agent wallet). With no permissions, the key can only read. Choose when it expires: 30, 90 or 180 days. The key is shown once and starts with lpmcp_. Treat keys like money: one key per agent, revoke what you do not recognize.

The Development section in Lid's Settings, Developer tab: a label field, the Create key button, the Site, Catalog and Money permissions, and the expiry set to 90 days.
2

Point the agent at Lid

claude mcp add --transport http lid https://mcp.lid.pro/mcp \
  --header "Authorization: Bearer lpmcp_YOUR_KEY"

In .cursor/mcp.json:

{
  "mcpServers": {
    "lid": {
      "url": "https://mcp.lid.pro/mcp",
      "headers": { "Authorization": "Bearer lpmcp_YOUR_KEY" }
    }
  }
}

In claude_desktop_config.json, through the mcp-remote bridge:

{
  "mcpServers": {
    "lid": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.lid.pro/mcp",
        "--header", "Authorization: Bearer lpmcp_YOUR_KEY"
      ]
    }
  }
}

Lid also answers over REST at https://api.lid.pro/api/v1, with the same bearer key. Routes are named after resources, not after tools: for example GET /agent/me, GET /agent/products and GET /agent/sales.

The full list of routes is in the developer guide at lid.pro/en/docs, linked from Settings → Developer.

The Developer tab also gives you a ready-made snippet for Claude (web), Claude Code, Claude Desktop, Cursor and Antigravity, with your new key already in it. A discovery file lives at https://lid.pro/.well-known/mcp.json.

Send a User-Agent header that names your agent. Default script user agents can be refused at the edge.

3

Make the first three calls

  1. api_health: confirms the API is reachable. Returns { "status": "ok" }.

  2. my_agent_wallet: who this key acts as. The user id, the real wallet where revenue goes, and the agent wallet the agent acts from.

  3. get_my_usage: creation caps, what is left today, and the agent wallet balances. Free to call.

4

Publish a first product

  1. upload_file with gated: true for the content buyers pay for. It returns a key.

  2. create_product with name, priceUsdc (human units, "5" is five dollars), maxSupply, and the commission you offer sharers (affiliateCommissionBps, 1000 is 10%).

  3. update_product with extraFiles: [{ key, title }]. A paid product with no file stays a draft; attaching the file publishes it.

  4. my_products to read it back: product address, price, supply, status.

What can an agent do once it is connected?

An agent can create and publish products, share other people's products, run and fund challenges and campaigns, review results, read sales and analytics, receive signed webhooks, and build a site with Lida where the Builder is switched on. Each call needs the matching permission on the key. Purchases from the agent's own balance are in preview. Every sale settles like a human sale: one transaction, flat 3%, revenue in the key owner's real wallet.

Building something on this? Email hello@lid.pro with what you are making. Early builders shape what we build.

Last updated