Agent keys and OAuth
Two ways your agent signs in as you: the browser sign-in, or a personal agent key for a server or script with no browser, and which to use.
Updated
Your agent always connects as you: it sees what you can see and nothing more. It signs in one of two ways, and the right one depends on whether a browser is at hand.
Which one should I use?
- The Claude app, Claude Code, Cursor, Codex on your computer: the browser sign-in (Recommended).
- A server, a script, a client that can't sign in: an agent key.
A client with a key in its settings doesn't offer the sign-in, so when the key ends it can't sign in until you remove the key. Where a browser is at hand, the sign-in is the better way.
How does the browser sign-in (OAuth) work?
The agent opens nextanalytica's sign-in in your browser and you approve it. Use this in the Claude app and anywhere a browser is at hand. There's nothing to copy and nothing to keep safe.
What is an agent key?
An agent key is your own key for a coding agent that connects with one command, such as Claude Code on a server.
| Looks like | na_key_ and 32 letters and digits |
| Shown | Once, when it is made. We keep only a fingerprint and its last four characters. |
| Lasts | 90 days, or until you revoke it |
| Sees | What you can see, across your projects |
| Limit | 20 active keys per person |
Key for a server in Access makes one and copies it, so the key is only in your clipboard. Onboard your agent and Connect another agent sign in in the browser and make no key.
Send it as a header:
Authorization: Bearer na_key_…What happens when I revoke a key?
It stops reading your data at once. For 90 days after, an agent that still holds it gets a session with no data and one tool, reconnect, which tells it how to connect again: remove the server and add it again without the key, then sign in. Your agent tells you this in one line, and in Claude Code it can do it for you:
claude mcp remove nextanalytica
claude mcp add --scope user --transport http nextanalytica https://mcp.nextanalytica.app/mcpThen run /mcp and sign in. A key that expired after its 90 days works the same way.