Coding agents: Add SCIM directory sync to your app
Let your coding agents guide you into adding Scalekit SCIM provisioning to your application in minutes
Use AI coding agents like Claude Code, GitHub Copilot CLI, Cursor, and OpenCode to add Scalekit’s Modular SCIM directory sync to your applications. Configure the agents to analyze your codebase, apply SCIM patterns, and generate production-ready code for user provisioning, deprovisioning, and lifecycle management. This follows security best practices and reduces implementation time from hours to minutes.
-
Install the authstack plugin
Not yet on Claude Code? Follow the official quickstart guide to install it.
Terminal npx @scalekit-inc/cli setupFor repeated use:
Terminal npm install -g @scalekit-inc/cliscalekit setupThe CLI installs the authstack plugin for you. The plugins guide the coding agent to generate implementation code that matches your project structure.
Alternative: Enable SCIM plugins via plugin wizard
Run the plugin wizard to browse and enable available plugins:
Claude REPL /pluginsNavigate through the visual interface to enable the Modular SCIM plugin.
-
Generate SCIM implementation
Use a structured prompt to direct the coding agent. A well-formed prompt ensures the agent generates complete, production-ready SCIM code that includes all required security components.
Copy the following prompt into your coding agent:
SCIM implementation prompt Guide the coding agent to add Scalekit SCIM directory sync to my app — set up the webhook endpoint to receive SCIM events, validate the webhook signature, and handle user provisioning and deprovisioning events to create, update, and delete users in my database. Code only.When you submit this prompt, Claude Code loads the Modular SCIM skill from the marketplace -> analyzes your existing application structure -> generates a webhook endpoint to receive SCIM events from Scalekit -> implements webhook signature validation to prevent unauthorized requests -> creates handlers for user provisioning events (create and update) -> adds deprovisioning logic to delete or deactivate users in your database.
-
Verify the implementation
After the coding agent completes, verify that all SCIM components are properly configured:
Check generated files:
- Webhook endpoint that receives SCIM events from Scalekit (you may need to set up a
.envfile with your Scalekit webhook secret) - Webhook signature validation to authenticate incoming requests
- User provisioning handler that creates or updates users in your database
- Deprovisioning handler that deletes or deactivates users when they are removed from the identity provider
The SCIM flow should receive webhook events from Scalekit when users are added, updated, or removed in the connected identity provider. Your application should validate each event’s signature, then apply the corresponding change to your user database.
- Webhook endpoint that receives SCIM events from Scalekit (you may need to set up a
When directory sync is active, user lifecycle changes in the identity provider propagate automatically to your application. Verify that provisioning events correctly create or update users, and that deprovisioning events properly remove or deactivate accounts.
-
Install the authstack plugin (recommended)
Terminal npx @scalekit-inc/cli setupFor repeated use, install globally:
Terminal npm install -g @scalekit-inc/cliscalekit setupChoose Codex when prompted. The CLI installs the authstack plugin.
-
Enable the Modular SCIM plugin
Restart Codex, then open the Plugin Directory and enable the authstack plugin.
Install the
modular-scimplugin. This plugin includes the workflows, references, and prompts Codex uses to generate SCIM provisioning and deprovisioning code for your application. -
Generate the SCIM implementation
Use a structured prompt to direct Codex. A well-formed prompt helps Codex generate complete, production-ready SCIM code that includes all required security components.
Copy the following prompt into Codex:
SCIM implementation prompt Guide the coding agent to add Scalekit SCIM directory sync to my app — set up the webhook endpoint to receive SCIM events, validate the webhook signature, and handle user provisioning and deprovisioning events to create, update, and delete users in my database. Code only.When you submit this prompt, Codex loads the Modular SCIM plugin from the authstack plugin, analyzes your existing application structure, generates a webhook endpoint to receive SCIM events from Scalekit, implements webhook signature validation to prevent unauthorized requests, creates handlers for user provisioning events, and adds deprovisioning logic to delete or deactivate users in your database.
-
Verify the implementation
After Codex completes, verify that all SCIM components are properly configured:
Check generated files:
- Webhook endpoint that receives SCIM events from Scalekit. You may need to set up a
.envfile with your Scalekit webhook secret. - Webhook signature validation to authenticate incoming requests
- User provisioning handler that creates or updates users in your database
- Deprovisioning handler that deletes or deactivates users when they are removed from the identity provider
The SCIM flow should receive webhook events from Scalekit when users are added, updated, or removed in the connected identity provider. Your application should validate each event’s signature, then apply the corresponding change to your user database.
- Webhook endpoint that receives SCIM events from Scalekit. You may need to set up a
When directory sync is active, user lifecycle changes in the identity provider propagate automatically to your application. Verify that provisioning events correctly create or update users, and that deprovisioning events properly remove or deactivate accounts.
-
Install the authstack plugin (recommended)
Need to install GitHub Copilot CLI? See the getting started guide — an active GitHub Copilot subscription is required.
Terminal npx @scalekit-inc/cli setupFor repeated use, install globally:
Terminal npm install -g @scalekit-inc/cliscalekit setupThe CLI installs the authstack plugin for GitHub Copilot.
Tool-native alternative
Terminal window copilot plugin marketplace add scalekit-inc/authstackcopilot plugin install agentkit@authstackcopilot plugin install saaskit@authstackVerify the plugin is installed
Confirm the plugin installed successfully:
Terminal copilot plugin list -
Generate SCIM implementation
Use a structured prompt to direct GitHub Copilot. A well-formed prompt ensures the agent generates complete, production-ready SCIM code that includes all required security components.
Copy the following command into your terminal:
Terminal copilot "Add Scalekit SCIM directory sync to my app — set up the webhook endpoint to receive SCIM events, validate the webhook signature, and handle user provisioning and deprovisioning events to create, update, and delete users in my database. Code only."GitHub Copilot uses the Modular SCIM plugin to analyze your existing application structure, generate a webhook endpoint to receive SCIM events from Scalekit, implement webhook signature validation to prevent unauthorized requests, create handlers for user provisioning events (create and update), and add deprovisioning logic to delete or deactivate users in your database.
-
Verify the implementation
After GitHub Copilot completes, verify that all SCIM components are properly configured:
Check generated files:
- Webhook endpoint that receives SCIM events from Scalekit (you may need to set up a
.envfile with your Scalekit webhook secret) - Webhook signature validation to authenticate incoming requests
- User provisioning handler that creates or updates users in your database
- Deprovisioning handler that deletes or deactivates users when they are removed from the identity provider
The SCIM flow should receive webhook events from Scalekit when users are added, updated, or removed in the connected identity provider. Your application should validate each event’s signature, then apply the corresponding change to your user database.
- Webhook endpoint that receives SCIM events from Scalekit (you may need to set up a
When directory sync is active, user lifecycle changes in the identity provider propagate automatically to your application. Verify that provisioning events correctly create or update users, and that deprovisioning events properly remove or deactivate accounts.
-
Install the authstack plugin (recommended)
Terminal npx @scalekit-inc/cli setupFor repeated use, install globally:
Terminal npm install -g @scalekit-inc/cliscalekit setupThe CLI detects Cursor and installs the authstack plugin directly.
-
Reload and select plugins
Restart Cursor (or run Developer: Reload Window), then open Settings > Cursor Settings > Plugins.
Enable the Scalekit plugins you need (AgentKit, SaaSKit, etc.).
-
Generate the implementation
Open Cursor’s chat panel with Cmd+L (macOS) or Ctrl+L (Windows/Linux) and paste in an implementation prompt from the feature page (or describe what you need in natural language). The installed Scalekit plugins provide the agent with accurate patterns.
-
Verify the implementation
After Cursor finishes generating code, confirm all authentication components are in place:
- The Scalekit plugin appears in Settings > Cursor Settings > Plugins
- Scalekit client initialized with your API credentials (set up a
.envfile with your Scalekit environment variables) - Authorization URL generation and callback handler
- Session or token integration matching your application’s existing patterns
The authstack plugin works with 40+ AI agents. Skills are installed via the Scalekit CLI or the Vercel Skills CLI.
The easiest way for most developers is:
npx @scalekit-inc/cli setupFor repeated use, install globally:
npm install -g @scalekit-inc/cliscalekit setupThen choose the “Other agents” / skills option when prompted.
You can also install the skills directly:
-
Install interactively
Run the command with no flags to be guided through the available skills:
Terminal npx skills add scalekit-inc/authstack -
Browse and install a specific skill
Install the skill for your auth type (for example, MCP OAuth):
Terminal # List all available skillsnpx skills add scalekit-inc/authstack --list# Install a specific skillnpx skills add scalekit-inc/authstack --skill adding-mcp-oauth -
Invoke the skill Varies by agent
Each coding agent has its own behavior for invoking skills. In OpenCode, skills are invoked automatically by the agent based on natural language — no slash commands required. The agent has a list of available skills and their
descriptionfields in context. It reads your intent, matches it against those descriptions, and autonomously calls the skill tool to load the relevantSKILL.md. A clear, specificdescriptionin skill frontmatter is what the agent uses to decide which skill to invoke.Flow in practice:
- You write a natural language message to the agent
- The agent checks its context — it already sees
<available_skills>with names and descriptions - If your request matches a skill’s purpose, the agent calls
skill("<name>")internally - The full
SKILL.mdcontent loads into context and the agent follows those instructions
If your agent does not automatically pick up skills, you can run a command to load a skill and manually select Scalekit’s skills to load into context. Refer to your favorite coding agent’s documentation for how to invoke skills once they are installed.
-
Install all skills globally
To add all Scalekit authentication skills to your agents:
Terminal npx skills add scalekit-inc/authstack --all --globalThis installs all AgentKit and SaaSKit skills.