Logo von Workos Setup

Workos Setup

Organisation
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.

Übersicht

Herausgeberworkos
Repositoryskills
Skill-Nameworkos-setup
Sterne
46
Forks
6
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von workos auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Workos Setup in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/workos/skills/tree/main/well-known/setup
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Workos Setup in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Workos Setup automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Workos Setup nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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

Häufig gestellte Fragen

Was macht der KI-Skill 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.

Warum Workos Setup in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Workos Setup besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Workos Setup in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/workos/skills/tree/main/well-known/setup ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Workos Setup nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Workos Setup verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Workos Setup damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Workos Setup kostenlos?

Ja. Der Skill wird von workos auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇