Skip to content
Changelog

OAuth

OAuth is the easiest way to connect an agent that runs on your computer and can open a browser: Claude, ChatGPT, Codex, Cursor and most desktop MCP clients.

  1. Add https://mcp.usenysa.com/mcp to your agent. The install guides have the exact steps for each agent.
  2. Your agent opens a Nysa sign-in page in your browser.
  3. Sign in with the Google account you use for Nysa.
  4. Start a new conversation. Your agent now acts as you.

You need a Nysa account in a Company workspace.

With the Contribute only role, your MCP agent can use only your own private notes and calendar, plus sign out. It cannot read or change shared Brain data. See Who sees what.

An agent signed in with OAuth has the same access you have in the web app: it reads everything you can read and can write when you ask. To give an agent less access than you have, use an API key instead.

  • Nysa checks your membership on every call. If you leave the workspace, the next request is refused and your agent asks you to reconnect.
  • If your agent says “Your Nysa connection needs to be refreshed”, remove Nysa from the agent, add it again, and sign in.
  • To end the sign-in yourself, ask your agent to sign out of Nysa. We end the sign-in of that agent only. Your next request asks you to sign in again. If the agent cannot sign out, remove Nysa from the agent.

A new OAuth connection reaches one Company workspace: the one you pick when you sign in. Changing workspaces in the web app does not change your agent’s connection.

If linked workspaces are available, your agent can also read another workspace through an account that you own.

  1. Ask your agent to link your other workspace. Your agent gives you a one-time sign-in link. It expires after 10 minutes and works once.
  2. Open the link in your browser and sign in with the Google account of the other workspace. You choose the account in your browser. Your agent never chooses it.
  3. Confirm the link. Your agent can then read that workspace. If writes in linked workspaces are available, you can choose read and write on this page.

What you see at each step, for example when Claude in your Acme workspace links your Acme Labs workspace:

  1. The link. Your agent replies: “Open this link in the browser where you use Nysa. Sign in with the Google account of the workspace to add. Nothing changes until you confirm on that page. The link works once, for 10 minutes.”
  2. Google sign-in. The link opens the Google account chooser. Pick the account of the other workspace.
  3. The confirmation page. The title reads “Acme in Claude wants access to Acme Labs”. The page names the Google account you signed in with, and Read only is selected. Click Confirm link. When we do not know your agent’s name, we call it “An agent app”.
  4. Done. The page says “Done. You can go back to Claude.” Your agent now lists the other workspace as read only.
  5. Reads. Each reply about the other workspace starts with “Workspace: Acme Labs.” While the link is read only, we refuse a save there and say that nothing was saved.
  6. Read and write later. If writes in linked workspaces are available, ask your agent to set the workspace to read and write. It replies: “Open this link in your browser to confirm the change. Nothing changes until you confirm.” Sign in with the same account. The page says your agent can already read the workspace and asks you to let it also add notes and facts. Click Allow read and write.
  7. Writes. Each save names the workspace and who added it, for example “Workspace: Acme Labs. Saved. Added by you@acmelabs.example through Claude.” A removal says “Removed by” instead. A new note can take a few minutes to appear. To check it, search that workspace.
  8. Unlink. When you ask your agent to unlink the workspace, it replies: “We removed Acme Labs from this connection. Your agent can no longer read or write there.” After that, a request for that workspace gets “We could not find that workspace among your workspaces.”

What to expect:

  • Read only first. A new link reads only unless you choose read and write on the confirmation page. To allow writes later, ask your agent to set the workspace to read and write. Your agent gives you a browser link, and you sign in with the account of that workspace and confirm. The agent never gets write access without this step. We email the account of that workspace when you confirm it.
  • Writes name the workspace when linked writes are available. If we turn on writes in linked workspaces and your agent has an active link, it must name the workspace by its ID for every save, correction or removal. Otherwise, a write without an ID goes to the workspace you signed in with. We refuse a write to a read only link or a note or fact that points at a record in another workspace.
  • Write access renews. Read and write needs your browser confirmation again every 90 days. Until then the link reads only. You can set a link back to read only through your agent at any time.
  • Your own account in each workspace. In each workspace, your agent acts as your account in that workspace, with that account’s role and privacy. We do not merge your accounts or your Google identities.
  • Some tools stay in your first workspace. Your private notes, memory and Calendar, meeting actions, invitations, imports, feedback, connected apps and sign-out work only in the workspace you signed in with.
  • Pick a workspace. Ask your agent which workspaces it can use. To read a linked workspace, name it by its exact name when only one workspace has that name, or by its ID. If you name no workspace, your agent reads the workspace you signed in with.
  • Your Google accounts stay separate. The link uses its own browser sign-in. It does not add another workspace to your account.
  • A link belongs to one agent. A link works for the agent you linked it from, and an agent that signs out loses its links. If you leave the linked workspace, the link stops working. A link also ends after 90 days without use.
  • See and remove links. Open Settings → Agent links to see your links and revoke one. You can also ask your agent to unlink a workspace.
  • Owners and admins. Owners and admins can ask their agent to list or revoke links into their workspace. They see the member, agent and access for each link. They do not see the member’s other workspaces or email addresses.
  • API keys. An API key works in one workspace. Link another workspace with OAuth.

To use another workspace without a link, ask your agent to sign out of Nysa. Your next request opens the sign-in page, and you pick the other workspace there. If your agent cannot sign out, remove Nysa from your agent, add it again, and pick the other workspace when you sign in.

If your agent accepts an API key, you can keep both workspaces connected: create one API key in each workspace and add one Nysa entry to your agent for each key. Do this with care:

  • Give each entry its own name, for example nysa-clientname.
  • Some agents treat two entries with the same address as one server, and they can drop the second entry without an error. Then every call goes to the first workspace. To avoid this, add a different ending to each address, for example https://mcp.usenysa.com/mcp?workspace=clientname. Nysa ignores the ending. It only helps your agent keep both entries. It never chooses the workspace: your key does, and your sign-in does for OAuth.
  • After you add the entries, ask your agent to list its Nysa servers and to search in each one. Check that each server returns the facts of its own workspace before you let the agent save anything.
  • Keep the keys read-only until you have checked this. Give write access to one key at a time.
  • Nysa does not yet name the workspace in its replies. Name each entry after its workspace, and check which entry your agent uses before it saves a note.

Your sign-in account and your workspace’s Google connection serve different purposes. In Settings → Connections, connect the Google account that supplies your Calendar in that workspace. Each Google account connects to one workspace, and you can connect one Google account per workspace.

You can sign in with either Google account after you explicitly link both to your account. We do not merge existing accounts automatically. If a Google account already belongs to another account, contact support for help with an account migration.

Calendar shows every calendar the connected Google account can read, including shared calendars with another company’s name. Without a connection, your Brain remains available, but Calendar reads and scheduling require you to connect Google. An expired authorization asks you to reconnect; it does not mean your calendar is empty.

When you connect Google, we add facts from your email and calendar to the Brain, and your messages and events stay private to you. We do not offer a switch to turn this off. To stop, choose Disconnect on the Google card in Settings → Connections, then confirm.

Disconnecting Google stops data access but keeps your sign-in identity and workspace membership. Signing in again with that Google account reconnects it to its existing authorized workspace after Google authorization succeeds. It does not reconnect your other Google accounts or enable saved recording or action controls.

When you ask your agent to schedule a meeting, we use your saved default calendar unless you choose another writable calendar. If that default is no longer writable, choose another calendar. We do not silently schedule elsewhere.

OAuth API key
Best for Agents on your computer Agents on a server, scripts, no browser
Setup Sign in once in the browser Create a key, store it as NYSA_API_KEY
Access Everything you can do Read only or read and write, limited to chosen scopes and private projects if you want
Expires Lasts until you leave the workspace. Removing Nysa from an agent deletes the sign-in on that agent After 30 days, 90 days or 1 year