Workos Setup logo

Workos Setup

Organization
workos
workos-setup

Set up WorkOS AuthKit sign-in in a project with `npx workos@latest install`, which needs no WorkOS account. Use when the user asks to add WorkOS or AuthKit authentication to an app, to scaffold a new app with WorkOS, or to claim the temporary WorkOS environment the installer created.

Overview

Publisherworkos
Repositoryskills
Skill nameworkos-setup
Stars
46
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by workos on GitHub. Read the source before you install it.

Installation

Install the Workos Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/workos/skills/tree/main/well-known/setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/workos/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/well-known/setup .claude/skills/workos-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Workos Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Workos Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Workos Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Set up WorkOS

The WorkOS CLI adds AuthKit sign-in to a project. When it finds no WorkOS credentials, it provisions a temporary WorkOS environment, so the user doesn't need a WorkOS account to start. They can claim the environment into their account later.

Before you start

Tell the user what you will do and wait for a yes:

  1. Add WorkOS AuthKit sign-in to this project, or scaffold a new Next.js app if the directory is empty.
  2. Use the project's existing WorkOS credentials if it has them. Otherwise, create a temporary WorkOS environment they can claim later.

If the project already uses a different auth provider, stop and agree on a migration plan before changing anything. Don't remove existing auth without approval.

Run the installer

From the project root:

bash
WORKOS_MODE=agent npx workos@latest install
  • It writes WORKOS_API_KEY, WORKOS_CLIENT_ID and, for a new environment, WORKOS_CLAIM_TOKEN to .env.local (or .env when there is no package.json), and adds that file to .gitignore. Don't delete the claim token or the CLI profile before the environment is claimed.
  • It puts its changes on a new git branch. Pass --no-branch to stay on the current one. If it stops with git_dirty, ask the user to commit or stash first.
  • In agent mode it prints JSON. On failure, follow error.recovery.hints. Exit code 4 means it could not provision an environment: ask the user to run npx workos@latest install in their own terminal, and don't write keys yourself.
  • If the user already has a WorkOS account, have them run npx workos@latest auth login in their own terminal first, since it opens a browser. The installer then uses their Staging environment instead of creating a temporary one.

Verify

The installer's success report is not proof that sign-in works. It also reports which application URLs (Sign-out URI, Initiate login URI, CORS origin) it saved and which it left for you. Start the app and check that:

  • Sign-in completes and creates an app session.
  • Sign-out ends the session and lands on the configured Sign-out URI.
  • A sign-in started outside the app, such as an invitation or password-reset email, reaches the Initiate login URI and continues without a loop or callback error.

The Initiate login URI must be an app route that starts AuthKit sign-in, not the callback. Configure any URL the installer left by following the framework's AuthKit guide at https://workos.com/docs/authkit, or references/workos-authkit-setup.md if the workos skill is installed. If you can't save a setting or test a flow, tell the user exactly which ones remain. Never call setup complete from the installer's report, a build, or doctor output alone. To diagnose a broken integration, run WORKOS_MODE=agent npx workos@latest doctor --json --skip-ai.

Claim the environment

Only if the installer created a new environment (the env file gained WORKOS_CLAIM_TOKEN), tell the user it is temporary and how to claim it. On the same machine:

bash
WORKOS_MODE=agent npx workos@latest profile claim

In agent mode it returns a claim URL as JSON. Give that URL to the user, who signs in or creates a free account and confirms. Claiming is permanent. Never ship a temporary environment's keys to production.

Go further

  • WorkOS skills for coding agents: npx skills add https://workos.com. Ask first, since it writes into the agent's skills folder. The workos skill covers SSO, Directory Sync, RBAC, migrations, and the rest of WorkOS.
  • Documentation index: https://workos.com/docs/llms.txt. Add .md to any documentation URL to get Markdown.
  • Raw HTTP steps for provisioning and claiming an environment without Node.js: https://workos.com/auth.md

Frequently asked questions

What does the Workos Setup AI skill do?

Set up WorkOS AuthKit sign-in in a project with `npx workos@latest install`, which needs no WorkOS account. Use when the user asks to add WorkOS or AuthKit authentication to an app, to scaffold a new app with WorkOS, or to claim the temporary WorkOS environment the installer created.

Why use Workos Setup on TypingMind?

Because you install it once and use it with any model. Workos Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Workos Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/workos/skills/tree/main/well-known/setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Workos Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Workos Setup?

As many as you like. As long as a model supports skills, you can use Workos Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Workos Setup AI skill free?

Yes. It is published on GitHub by workos under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇