Logo von Setup

Setup

Organisation
clay-run
setup

Clay setup — install and authenticate the `clay` CLI, which is how the plugin talks to Clay. Use when `clay` is not found on PATH or the `clay` found in the PATH is the wrong version, `clay whoami` fails, the CLI isn't signed in, the Cursor plugin never appears after a local install, or the user wants to configure Clay. Signs the user in and runs first-run onboarding for new users.

Übersicht

Herausgeberclay-run
Repositoryagent-plugins
Skill-Namesetup
Sterne
145
Forks
24
Mitgelieferte Dateien
1
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.

  • 1 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

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

Installation

Installieren Sie den KI-Skill 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/clay-run/agent-plugins/tree/main/clay/skills/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/clay-run/agent-plugins.git /tmp/agent-plugins
mkdir -p .claude/skills
cp -r /tmp/agent-plugins/clay/skills/setup .claude/skills/setup
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie 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 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 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.

Clay setup

Install the CLI independently of the plugin, then check authentication. The same flow applies to Claude Code, Codex, Cursor, and Cowork. Keep existing credentials and the user's installation method when upgrading.

1. Check current state

Resolve <PLUGIN_ROOT> as two levels above this skill's directory. Use that exact plugin copy, not whichever older cache directory was most recently modified.

bash
bash "<PLUGIN_ROOT>/scripts/check-cli.sh" plain
cat "<PLUGIN_ROOT>/cli-min-version"

The check is local and does not sign in or download anything. A missing, old, or plugin-managed CLI needs step 3, even if an old cached launcher still works. The metadata is a minimum supported version, not an exact pin: leave a newer independent CLI installed. If the check prints nothing, the installed CLI is compatible; proceed to the authentication check below.

For a reported Cursor plugin registration problem, do step 2 even when the CLI works.

2. Cursor only: resolve which plugin install path applies

Skip this section unless installing the plugin into Cursor or investigating a plugin that never appears in Settings → Plugins. Read cursor-install.md in this directory and follow its policy checks before choosing marketplace import or local sideload. A working CLI alone does not prove that Cursor loaded the plugin. If policy blocks installation, follow that guide's admin handoff; do not bypass the policy.

3. Install or migrate the CLI

bash
bash "<PLUGIN_ROOT>/scripts/install-cli.sh" --version "$(cat "<PLUGIN_ROOT>/cli-min-version")"

For a missing CLI or a recognized old plugin forwarder, this installs a native macOS/Linux executable at ~/.local/bin/clay, verifying its checksum and version. For an existing native CLI below the minimum, it invokes that executable's update command instead of reinstalling it. It checks ~/.local/bin/clay even when that directory is outside PATH and preserves compatible or newer versions. An existing npm install keeps using npm. It never changes credentials.

If the user's organization requires Node-based execution, or the user explicitly chooses npm, use this alternative (requires Node 22.21+ within Node 22 and npm):

bash
bash "<PLUGIN_ROOT>/scripts/install-cli.sh" --method npm --version "$(cat "<PLUGIN_ROOT>/cli-min-version")"

Do not silently switch methods after a failed download or checksum check. If a native binary is blocked by enterprise allowlisting, explain that the Node-based install is available and use it when the user chooses that path. If npm reports a conflicting @claypi/cli installation, inspect npm list --global --depth=0 and its executable path; migrate that old package explicitly rather than forcing an overwrite.

Read the installer's printed executable path. If its directory is missing from PATH, add it once to the appropriate startup file for the user's shell (for example .zshrc for zsh or .bashrc for interactive bash). Inspect the existing configuration first; do not append to every shell's startup file or duplicate an existing entry. For the default native location, the line is export PATH="$HOME/.local/bin:$PATH".

Use the printed absolute executable path for all remaining commands in this session, including subsequent skill calls, if the agent's inherited PATH is stale. Variables do not persist between shell tool calls. Do not require a restart just to finish setup. Resolve any older executable shadowing this path before declaring PATH configured; do not delete unrelated executables.

Verify the executable with --version and compare its semver (before +<commit>) to cli-min-version. Then run clay whoami; echo "exit_code=$?", substituting the verified absolute path when necessary:

  • 0 with a user/workspace object: keep the session; skip sign-in and go to step 5.
  • 3 (auth_*): go to step 4.
  • 5 (network_*): investigate the network and CLAY_API_URL; do not restart sign-in.
  • Any other failure: diagnose it before proceeding.

4. Sign in when needed

Use the verified executable from step 3, including its absolute path when PATH has not refreshed. Run clay login. It opens a browser, the user signs in and picks the workspaces to connect, and the CLI stores a session per workspace locally on disk and re-reads it on every command, so there's nothing else to configure and no restart to follow it. Later commands run against the first workspace selected, and clay workspaces switch <id> moves between them. The flow waits up to 5 minutes for the browser round-trip. If your shell tool lets you set a per-command timeout, request at least 5 minutes and just run it directly and block on it:

bash
clay login   # request a timeout of at least 5 minutes if your tool supports one

If your tool's timeout can't be raised past 5 minutes and it doesn't support backgrounding a long-running command, ask the user to run clay login in their own terminal instead, then poll:

bash
clay whoami; echo "exit_code=$?"   # poll this until exit_code=0

Codex specifically: the shell tool's timeout is usually shorter than the 5-minute browser round-trip, so a foreground clay login gets killed mid-sign-in. The flow itself works on a local Codex session — approved commands run on the user's machine, outside the sandbox — it just has to survive the timeout. The recipe:

  1. Run clay login in the background so the 5-minute wait survives the tool timeout:

    bash
    nohup clay login >/tmp/clay-login.out 2>/tmp/clay-login.err &
  2. Read the sign-in URL from /tmp/clay-login.err and show it to the user to open in their own browser (clay login also tries to open the browser itself — the URL is the fallback). URLs from earlier attempts won't work.

  3. Do NOT try to complete the sign-in with Codex's built-in browser tool: the user isn't driving it, so their credentials aren't available to enter — and if it runs in an isolated or remote context it can't reach the 127.0.0.1 callback anyway, so the sign-in is throwaway.

  4. Poll clay whoami; echo "exit_code=$?" until exit_code=0.

If the backgrounded process dies (clay whoami never succeeds), fall back to the run-it-in-their-own-terminal flow above.

In Cowork or another remote sandbox, use clay login --device and show the user the current verification URL and code. Do not attempt a localhost browser callback from a remote machine.

5. Verify and onboard

Run clay whoami; echo "exit_code=$?" with the verified executable. Exit 0 with a user/workspace object proves authentication. Keep identity details internal unless needed to resolve an account issue.

If it exits 3 after a successful login, inspect the stderr error code and CLAY_CONFIG_HOME: a different credential store or stale key can cause this. Retry login as appropriate; this is not evidence of a workspace-role problem. Preserve existing credentials during installation and migration.

If whoami or login reports onboarded: false, follow the onboard skill. Continue using the verified absolute CLI path there if needed. If this session has not loaded the skill yet, read <PLUGIN_ROOT>/skills/onboard/SKILL.md directly. Otherwise setup is complete; do not make the user authenticate again merely because the plugin updated.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Setup?

Clay setup — install and authenticate the `clay` CLI, which is how the plugin talks to Clay. Use when `clay` is not found on PATH or the `clay` found in the PATH is the wrong version, `clay whoami` fails, the CLI isn't signed in, the Cursor plugin never appears after a local install, or the user wants to configure Clay. Signs the user in and runs first-run onboarding for new users.

Warum Setup in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. 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 Setup in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/clay-run/agent-plugins/tree/main/clay/skills/setup ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können 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 Setup verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie 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 Setup kostenlos?

Der Skill wird von clay-run auf GitHub veröffentlicht. Die Lizenzbedingungen finden Sie im Repository. 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 👇