> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Scalekit Docs

Scalekit AgentKit lets AI agents act in your users' apps. It runs each user's OAuth flow, stores their tokens in a vault and executes tool calls as that user across 640 connectors, from the Python or Node.js SDK, the REST API or a Virtual MCP server. Scalekit SaaSKit adds login, SSO, SCIM provisioning, MCP Auth and API authentication to B2B apps.

## Which product?

- Your AI agent acts in your users' apps, such as Gmail, Slack or Salesforce, as each user → [AgentKit](https://docs.scalekit.com/agentkit/quickstart.md)
- Your team's AI tools, such as Claude, ChatGPT or Cursor, need access to your company's apps, with admins choosing who can use which tools. Available on request → [Agent Gateway](https://docs.scalekit.com/agentkit/agent-gateway/overview.md)
- You are building a B2B app and want Scalekit to run login, sessions, organizations and roles, with enterprise SSO and SCIM provisioning included → [Full Stack Auth](https://docs.scalekit.com/authenticate/fsa/quickstart.md)
- Your app keeps its own login and sessions, such as Auth0, Amazon Cognito, Firebase or your own, and needs SAML or OIDC SSO for enterprise customers. Scalekit returns the user's profile and your app creates the session. The customer's identity provider enforces MFA, and roles come from IdP attributes you map → [Modular SSO](https://docs.scalekit.com/authenticate/sso/add-modular-sso.md)
- Your app keeps its own user table and needs users and groups provisioned from customers' directories, such as Okta or Microsoft Entra ID → [Modular SCIM](https://docs.scalekit.com/directory/scim/quickstart.md)
- You build and host an MCP server and need OAuth for the clients that connect to it → [MCP Auth](https://docs.scalekit.com/authenticate/mcp/quickstart.md)

## AgentKit: auth and tool calling for AI agents

AgentKit connects your agent to the apps your users already use. Each user authorizes once; AgentKit keeps their tokens refreshed and runs tools or API calls as that user, scoped to what they granted.

- [Quickstart](https://docs.scalekit.com/agentkit/quickstart.md): authorize a user and make your first tool call
- [What is AgentKit](https://docs.scalekit.com/agentkit/overview.md): what it does and when to use it
- [How AgentKit works](https://docs.scalekit.com/agentkit/concepts.md): connections, connected accounts, tools and Virtual MCP servers
- [Choose a framework](https://docs.scalekit.com/agentkit/examples.md): LangChain, Google ADK, OpenAI, Vercel AI SDK, Mastra and more
- [Connectors](https://docs.scalekit.com/agentkit/connectors.md): every app AgentKit connects to, with its tools
- [REST API reference](https://docs.scalekit.com/agentkit/reference.md): every AgentKit endpoint and webhook

All AgentKit docs in reading order, in one file: https://docs.scalekit.com/agentkit/llms.txt

## SaaSKit: auth for B2B apps

Login, sessions, SSO, SCIM provisioning, roles and MCP Auth for your own app. Use Full Stack Auth when Scalekit runs your login, or the Modular products when your app keeps its own.

- [Full Stack Auth quickstart](https://docs.scalekit.com/authenticate/fsa/quickstart.md): Scalekit runs login, sessions and organizations for your app
- [Add Modular SSO](https://docs.scalekit.com/authenticate/sso/add-modular-sso.md): enterprise SSO for an app that keeps its own login and sessions
- [Modular SSO with Auth0](https://docs.scalekit.com/guides/integrations/auth-systems/auth0.md): add Scalekit SSO to an app that signs users in with Auth0
- [Modular SSO with Amazon Cognito](https://docs.scalekit.com/guides/integrations/auth-systems/aws-cognito.md): add Scalekit SSO to an app that signs users in with Cognito
- [Modular SSO with Firebase](https://docs.scalekit.com/guides/integrations/auth-systems/firebase.md): add Scalekit SSO to an app that signs users in with Firebase
- [Add Modular SCIM](https://docs.scalekit.com/directory/scim/quickstart.md): provision users and groups from customers' directories into your own user table
- [MCP Auth quickstart](https://docs.scalekit.com/authenticate/mcp/quickstart.md): OAuth for an MCP server you build and host
- [SaaSKit docs in one file](https://docs.scalekit.com/_llms-txt/saaskit-complete.txt)

Giving an agent tools as a user, including over MCP with a Virtual MCP server, is AgentKit. Adding OAuth to an MCP server you build and host is SaaSKit MCP Auth.

## For AI agents

- Every docs page is available as markdown: add `.md` to its URL, or send `Accept: text/markdown`.
- Index of every page: https://docs.scalekit.com/llms.txt


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
