/saaskit:setup-saaskitfrom saaskit
Configures SaaSKit so a project has env credentials, a redirect URI, and a first login URL. Use when the user wants to setup SaaSKit or add login to this app. It does not write login/callback/session code (that's `implement-saaskit`).
Ships in saaskit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Give this project env credentials, a registered redirect URI, and a first login URL. Then stop.
SCALEKIT_REDIRECT_URI identical to the dashboard Allowed callback URL.implement-saaskit instead.SCALEKIT_ENVIRONMENT_URL, SCALEKIT_CLIENT_ID, SCALEKIT_CLIENT_SECRET, and SCALEKIT_REDIRECT_URI.SCALEKIT_REDIRECT_URI must match an Allowed callback URL in the dashboard, character for character.http://localhost:3000/auth/callback when the project has no callback path yet.implement-saaskit.Open app.scalekit.com → Developers → Settings → API Credentials.
Collect:
SCALEKIT_ENVIRONMENT_URL=https://your-env.scalekit.com
SCALEKIT_CLIENT_ID=<from dashboard>
SCALEKIT_CLIENT_SECRET=<from dashboard>
Self-hosted: use the environment URL and credentials from that admin dashboard.
Done when: the user has those three values from the dashboard.
Pick the callback URL. Use the project's existing callback path when it has one. Otherwise use http://localhost:3000/auth/callback.
In the dashboard: Authentication → Redirect URLs → Allowed callback URLs. Add that exact URL.
Set SCALEKIT_REDIRECT_URI to the same string.
Done when: the dashboard lists the URL, and SCALEKIT_REDIRECT_URI matches it exactly.
SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
SCALEKIT_CLIENT_ID=<your-client-id>
SCALEKIT_CLIENT_SECRET=<your-client-secret>
SCALEKIT_REDIRECT_URI=<your-callback-url>
Put these in the project's env file. Keep secrets out of source.
Done when: the env file contains all four names.
Use the Scalekit SDK already in the project. Install @scalekit-sdk/node only when the repo has no Scalekit SDK yet.
import { ScalekitClient } from '@scalekit-sdk/node';
const scalekit = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET
);
const loginUrl = scalekit.getAuthorizationUrl(process.env.SCALEKIT_REDIRECT_URI, {
scopes: ['openid', 'profile', 'email', 'offline_access']
});
console.log(loginUrl);
If the repo is Python, call get_authorization_url on scalekit-sdk-python with the same env names. Do not implement the callback or session here.
The URL looks like <SCALEKIT_ENVIRONMENT_URL>/oauth/authorize?....
Done when: that authorization URL is printed, or the user has a one-liner that prints it.
implement-saaskit-nextjs. Stop.implement-saaskit-python. Stop.implement-saaskit. Stop.Done when: one of those skills is named, and this skill has stopped.
npx @scalekit-inc/cli setup -y if the plugin or CLI is missingrun-dryrun to check credentials after this wizarddeploy-self-hosted for an on-prem environmentsetup-agentkit if the user wanted connections and toolsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub scalekit-inc/authstack --plugin saaskit15 skills in this plugin
/add-api-authAdds API key or client-credentials auth so an agent can protect an API. Use when the user wants an API key or client credentials. It does not put OAuth 2.1 on an MCP server (that's `add-mcp-oauth`) or write SaaSKit login (that's `implement-saaskit`).
/add-mcp-oauthAdds MCP OAuth so an agent can protect the user's MCP server. Use when the user wants MCP OAuth or to protect their MCP server. It does not add API keys or client credentials (that's `add-api-auth`) or expose AgentKit tools over MCP (that's `expose-agentkit-mcp`).
/check-saaskit-prodChecks SaaSKit production so an agent can finish a go-live checklist. Use when the user wants SaaSKit production or to go live SaaSKit. It does not write login (that's `implement-saaskit`) or run dryrun (that's `run-dryrun`).
Other plugins' skills for the same job