> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended**:
> ```bash
> npx @scalekit-inc/cli setup
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for 40+ agents.
> Features: full-stack-auth, agent-auth, mcp-auth, modular-sso, modular-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Scalekit CLI

Install and manage the authstack plugin for AI coding agents with the Scalekit CLI.
The Scalekit CLI (`@scalekit-inc/cli`) installs the authstack plugin for your AI coding agents. Run one command and the CLI detects your active tools (Cursor, Claude Code, GitHub Copilot, Codex) and sets each one up automatically.

```bash frame="terminal"
npm install -g @scalekit-inc/cli
scalekit setup
```

Running `setup` with no arguments launches an interactive wizard that detects your installed tools and installs the authstack plugin for each one.

## Target a specific tool

Pass the tool name to skip the wizard and install directly:

```bash frame="terminal"
scalekit setup cursor
scalekit setup claude      # aliases: claude-code, cc
scalekit setup codex       # alias: opencode
scalekit setup copilot     # aliases: github-copilot, ghcp
```

## Command reference

### `setup [tool]`

Installs the authstack plugin for one or all detected coding agents.

| Argument / flag | Description |
|---|---|
| `[tool]` | Target a specific agent: `cursor`, `claude`, `codex`, `copilot` (and their aliases). Omit to run the interactive wizard. |
| `-y`, `--yes` | Skip confirmation prompts. Useful in scripts. |
| `--dry-run` | Print the commands that would run without executing them. |
| `--skip-skills` | Skip installing generic Scalekit skills (installs the plugin only). |

### Supported tools

| Tool | ID | Aliases |
|---|---|---|
| Cursor | `cursor` | |
| Claude Code | `claude` | `claude-code`, `cc` |
| GitHub Copilot | `copilot` | `github-copilot`, `ghcp` |
| Codex / OpenCode | `codex` | `opencode` |

### What gets installed

For each detected tool, the CLI installs two kits from the authstack plugin:

- **AgentKit** - skills for building agents with delegated auth, scoped permissions, and tool calls
- **SaaSKit** - skills for adding SSO, SCIM, MFA, sessions, and API auth to SaaS apps

For Cursor and Codex, the CLI downloads the plugin and copies it to the tool's local plugin directory. For Claude Code and GitHub Copilot, it runs the tool's native plugin marketplace commands.

## Start building

After setup, tell your coding agent what you're building. The authstack plugin routes you to the right skill.

  ### Claude Code

```text
I want to add agent auth to my project. Help me get started with AgentKit.
```

```text
Add enterprise SSO to my Next.js app using SaaSKit.
```

  ### Cursor

```text
I want to add agent auth to my project. Help me get started with AgentKit.
```

```text
Add enterprise SSO to my Next.js app using SaaSKit.
```

  ### GitHub Copilot

```text
I want to add agent auth to my project. Help me get started with AgentKit.
```

```text
Add enterprise SSO to my Next.js app using SaaSKit.
```

  ### Codex

```text
I want to add agent auth to my project. Help me get started with AgentKit.
```

```text
Add enterprise SSO to my Next.js app using SaaSKit.
```

The authstack plugin picks up the prompt and routes to the right skill: AgentKit for agent auth, SaaSKit for app auth.


---

## 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 |
