# OAuth or API key: which should your agent use?

Source: https://corespeed.io/glossary/oauth-vs-api-key

With OAuth, you approve the app's consent screen once, and CoreSpeed stores the token and refreshes it where the provider allows. With an API key, you paste a credential from your provider account and rotate it yourself. Either way, your agent receives tools, never the credential. Most CoreSpeed connectors use OAuth; some take a pasted key.

It rests on the documentation: [Connectors](https://corespeed.io/docs/connectors)

At length, on the blog: https://corespeed.io/blog/oauth-connector-vs-pasting-an-api-key

## What people search for

- oauth vs api key
- mcp oauth
- oauth for ai agents
- api key vs oauth
- mcp server api key

## Questions

### Is OAuth the same as an API key?

No. An API key is one long-lived secret you copy. OAuth issues tokens after you approve scopes on a consent screen, and they can be refreshed and revoked.

### How does OAuth work on an MCP server?

Your client finds the server's sign-in, registers itself and signs you in with OAuth 2.1 in the browser. The token it receives works only on that server.

### What happens to a pasted key when I disconnect it?

CoreSpeed deletes its copy. The key keeps working at the vendor until you revoke it there.

### Can my organization use its own OAuth app?

Yes, on connectors where CoreSpeed opens it. An org admin pastes the app's client ID and secret, and new connections authorize through it.

All terms: https://corespeed.io/glossary (Markdown: https://corespeed.io/glossary.md)

## Related pages

- [Connectors](https://corespeed.io/docs/connectors): Connect the apps your organization already uses and let every agent act through them without holding the provider credential.
- [Credential custody: keep tokens away from AI agents](https://corespeed.io/glossary/credential-custody): Credential custody keeps OAuth tokens and API keys with the platform, not the agent. Why it matters, and how CoreSpeed holds them for you.
- [Share an MCP server or connector with your team](https://corespeed.io/glossary/shared-connection): A shared connection is an app account your whole team and its agents can use, with no token handed out. What to share, what to keep private.

## Sources

- Connectors: https://corespeed.io/docs/connectors
- Authentication: https://corespeed.io/docs/authentication
- OAuth connector vs pasting an API key: which to use for each app: https://corespeed.io/blog/oauth-connector-vs-pasting-an-api-key

Reviewed 2026-11-14.

## Links

- Product overview: https://corespeed.io/ (Markdown: https://corespeed.io/index.md)
- Documentation: https://corespeed.io/docs
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
