What is a sign in with OAuth?
OAuth is a way to let one app act for you in another service by signing in there and approving it, without ever handing over your password or a long key.
Also called: OAuth.
In plain words
You have probably seen a button that says "Continue with Google". You click it, sign in on Google's own page, approve what the app may see, and you are back. The app never learned your password. That is OAuth.
For an AI agent, it means you can connect to a service by signing in through your browser instead of copying a key into a settings box. The service gives the agent a pass of its own.
You can take that pass back whenever you like, and your password is untouched.
It is a gentle way to connect, because there is nothing to copy, paste or lose. The trade-off is that the AI app must support it. Not every app does yet, so many people still use an API key, and that is fine.
Either way you stay in charge. Signing in is how you say yes, and the service decides what that yes allows.
How it works in Spaces
Grok, Grok Bot and Cursor can connect to Spaces by signing in with OAuth, with no API key. Grok Bot always uses OAuth.
A client that reaches the Spaces MCP server without credentials is answered with a sign-in challenge, so OAuth clients find the sign-in page on their own. API keys keep working for every client.
Related terms
- API key: An API key is a long secret code that proves to a service that a request comes from you, so it works like a password for software rather than for people.
- Bearer token: A bearer token is a secret code that a program sends with each request to prove it is allowed in, like a key card that opens any door it fits.
- MCP server: An MCP server is the web address a service publishes so AI agents can find and use its tools through the Model Context Protocol.
- AI agent: An AI agent is an AI model, such as ChatGPT, Claude or Grok, that can take actions with tools you give it, like reading a message and sending a reply, rather than only chatting.
FAQ
Does OAuth share my Spaces password?
No. You sign in on the Spaces page itself, and the AI app only receives a pass of its own.
Which agents can sign in this way?
Grok, Grok Bot and Cursor. The other agents on the agents page connect with an API key.
Can I still use an API key?
Yes. Keys keep working alongside sign-in, so you can pick whichever your AI app supports.
Can I cut an agent off?
Yes. You can pause or remove an agent from your workspace, and its access stops.
Useful next: Connect your AI agent, Agent setup docs, Account safety. Every term: the glossary.