# Install Lynse for your AI agent

Lynse (灵光记) connects an AI agent to the user's Lynse account — meetings, transcripts, summaries, folders, to-dos, and SparkCard devices. Reading existing data through the agent is permanently free; new transcription or AI generation follows the account's allowance and billing rules.

> For agents: read this page as text — `curl` it or use your fetch tool — never by opening it in a browser or with computer use. Run the commands yourself and explain them in plain words. Never ask for an API key in the chat, and never repeat one you have seen. If a step fails, say what went wrong and stop rather than retrying in a loop.

A person setting Lynse up by hand can paste this page's URL into any agent, or follow the human-readable guides at [https://www.lynse.ai/skill/](https://www.lynse.ai/skill/).

## Two ways to connect

Pick whichever fits the client you are running in:

- **Remote MCP (recommended):** one URL, OAuth sign-in in the browser, nothing to install. Works in any client that supports remote MCP servers (Streamable HTTP + OAuth).
- **Skills / CLI:** one `npx` command installs Lynse as a skill or command-line tool in the agent's environment.

## Steps for the agent

An agent setting Lynse up for someone does the following.

1. **Check first.** If Lynse tools (`get_auth_status`, meeting or to-do tools) or `lynse` commands are already available in this session, skip to step 4.
2. **Connect Lynse.**

   **Remote MCP** — Codex and WorkBuddy are tested end to end; the others are standard remote-MCP clients:
   - Codex (tested):

     ```bash
     codex mcp add lynse --url https://mcp.lynse.cn/mcp
     codex mcp login lynse --scopes lynse:read
     ```

   - WorkBuddy (tested) — custom MCP connection config:

     ```json
     {
       "mcpServers": {
         "lynse": { "type": "streamableHttp", "url": "https://mcp.lynse.cn/mcp" }
       }
     }
     ```

   - Claude Code (standard remote MCP):

     ```bash
     claude mcp add --transport http --scope user lynse https://mcp.lynse.cn/mcp
     ```

   - Cursor, Grok Bot, Muse, ChatGPT connectors, and any other remote-MCP client: add a server named **lynse** of type **Streamable HTTP** with the URL `https://mcp.lynse.cn/mcp`, then OAuth sign-in.

   **Skills / CLI** — for agents that run shell commands (Codex, Claude Code, OpenClaw, Hermes, WorkBuddy, Qoderwork, and similar environments):

   ```bash
   npx skills add lynse-ai/lynse-cli
   ```

   If that fails, install the CLI directly:

   ```bash
   npx -y @lynse.ai/lynse-cli@latest
   lynse auth login
   ```

   `lynse auth login` asks for an API key (format `dk_...`); step 3 covers how the person gets it. The API server is `https://api.lynse.cn` (already the default).

3. **Have the person sign in.** Only the person can approve access, in their own browser — never with computer use or browser automation:
   - **Remote MCP:** the client opens a browser (or prints a URL) to the Lynse authorization page (`https://www.lynse.cn/platform/oauth`). The person signs in to their Lynse account and clicks **Allow**.
   - **Skills / CLI:** the person opens the Lynse app → **Me** → **LynClaw Settings** → **Get API Key**, then runs `lynse auth login` themselves and pastes the key into their own terminal — not into the chat.
4. **Verify, then tell the person Lynse is ready.**
   - Remote MCP: call `get_auth_status`. If it reports not signed in, go back to step 3.
   - CLI: run `lynse me` and expect the account info.

   If tools were added mid-session, tell the person to start a new chat (or restart the client) so they load. Give them two or three of these prompts, word for word, to try:
   - "Use Lynse to list my meetings from the last 7 days."
   - "Use Lynse to summarize my most recent meeting."
   - "Use Lynse to organize my recent meetings into folders — show me the plan before applying it."

Rules for the agent: run the commands itself and explain them in plain words; never ask for an API key and never repeat one; a write action (creating folders, moving meetings, submitting transcription — anything with `confirm=true`) needs the person's explicit go-ahead first; if a step fails, say what went wrong and stop rather than retrying in a loop.

## Notes

- **Production MCP URL:** `https://mcp.lynse.cn/mcp`. It serves the China account system (`api.lynse.cn`). International accounts use `https://mcp.lynse.ai/mcp`.
- **Auth lifetime:** an MCP sign-in stays valid for up to 24 hours. When it expires, redo step 3.
- **Scopes:** read tools need `lynse:read`; write tools additionally need `lynse:write`.
- **Already using Lynse Desktop?** It has a built-in MCP switch (Settings → AI Assistant → MCP Connection) — no Python or Node needed.
- **Local stdio MCP** for clients without OAuth support: see the [Lynse MCP README](https://github.com/lynse-ai/lynse-mcp) (requires Python 3.11+).
- **Full docs:** [CLI quickstart](https://www.lynse.ai/knowledge/support/lynse-cli/quickstart.md) · [MCP repo](https://github.com/lynse-ai/lynse-mcp) · [Machine-readable pricing](https://www.lynse.ai/pricing.md)
- Support: contact@lynse.ai
