copilotkit-cli
Was er macht
Dieser Skill erklärt, wie man die CopilotKit-Kommandozeile nutzt, einschließlich eines Prüfbefehls, der die Verdrahtung eines Projekts kontrolliert. Er ist für Entwickler gedacht, die ihre CopilotKit-Einrichtung bestätigen wollen, bevor sie von Hand debuggen.
Wann du ihn nutzt
- ✓Wenn eine CopilotKit-App nicht funktioniert und du zuerst ihre Verdrahtung prüfen willst.
- ✓Wenn du ein neues CopilotKit-Projekt über die Kommandozeile anlegen willst.
- ✓Wenn du dich anmelden und ein gehostetes Intelligence-Projekt auswählen musst.
Link zum Skill
https://github.com/CopilotKit/CopilotKit/blob/main/skills/copilotkit-cli/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Meine CopilotKit-App reagiert nicht. Führ zuerst den CopilotKit-Check aus und sag mir, was er findet.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent führt den passenden Befehl aus, etwa den Verify-Check, der die Verdrahtung des Projekts testet und das Ergebnis meldet. Er wählt den Check, der zu deiner Einrichtung passt, mit oder ohne gehostetes Intelligence, und ändert die Anmeldeeinstellungen nicht nur, damit ein Check besteht.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
CopilotKit CLI
npx copilotkit@latest <command> --via skill:copilotkit-cli
Keep --via skill:copilotkit-cli on every command you run from this skill. It only tells
CopilotKit's telemetry that the call came from this skill, and the command ignores it.
If the CLI reports Unknown option '--via', npx ran an old cached version: run the command
again without the flag.
--help on any command prints its flags. The commands below are the ones worth knowing
before you start reading someone's project by hand.
verify — do this before debugging
First decide whether the app uses hosted Intelligence. verify checks for it by default, and
an open-source app fails those checks every time.
No Intelligence: nothing constructs
CopilotKitIntelligencewhere the runtime is built, and there is no.copilotkit/project.json. Run the open-source check, with an agent id the runtime registers:npx copilotkit@latest verify --expect-runtime oss --round-trip --agent <id> --json --via skill:copilotkit-cli--round-trip --agent <id>is required here. Without it the round trip is not attempted and the command cannot pass.Otherwise: run the default check.
npx copilotkit@latest verify --json --via skill:copilotkit-cli
Do not run login or project select only to make verify pass. Those commands set up
hosted Intelligence. They do not fix an open-source app, and verify still fails on it
afterward, because the runtime never consumes the credential.
One command replaces the manual survey. It settles up to eleven things: a hosted project is selected; the project API key is present, loadable by the app, and authenticates; the runtime responds, declares an agent, actually consumes the credential, and serves the thread routes; the frontend serves its own assets; the runtime accepts the browser's origin; and the installed CopilotKit packages match the version the runtime reports. It also reports the runtime version, the agent framework in use, whether transcription is wired, the realtime gateway wiring, and the license state.
Eleven is the ceiling, not a promise. The last three are omitted when there was nothing to
check them against — no frontend origin was found, or no installed packages were. Count
checks[] rather than assuming a fixed set. With --expect-runtime oss the hosted-project
and credential checks do not apply at all, so that run is a smaller set.
Crucially it names which URL it probed and where that URL came from — the project's
runtimeUrl, an environment variable, the app's own dev configuration, or an assumed
default. A survey done by hand cannot tell you that, and the provenance changes the verdict:
nothing answering at a URL the project named is a FAIL, while nothing answering at an
assumed default is UNKNOWN, because an app on a port the command never learned is not a
wiring failure.
Useful flags:
--frontend-url <origin you actually open>— adds the browser-facing checks, including a real CORS preflight when that origin differs from the runtime's--round-trip— also runs the agent and reads its answer back. Costs a model call, so it is opt-in--expect-runtime oss— for a self-hosted runtime with no Intelligence. It exits zero only when/infodeclares the named agent, reports no Intelligence entitlement, and--round-trip --agent <id>passes--agent <id>— which declared agent to run, when several are registered--runtime-url <url>— probe this endpoint instead of the one read from the project--header '<name>: <value>'— repeatable. Needed when the project'sidentifyUserreads a session the CLI does not carry--timeout <seconds>— how long to wait for an answer, default 90
Read checks[] and fix in the order given:
- The checks chain. A later check that could not run says so and names the earlier one to fix first, so the first failure is the real one.
UNKNOWNmeans the check could not run. It never means the check passed, and the command exits non-zero unless every check passed.
What verify does not cover
Reach past it only once it is clean.
- Tool execution.
--round-tripdeliberately asks a question that needs no tools and sends no context, so a passing round trip says nothing about whether your tools work. - Event ordering and streaming. It reports pass or fail on a run, not the sequence inside it. A run that starts and never finishes, or s
Häufige Fragen
Warum vor dem Debuggen prüfen?
Die Prüfung zeigt schnell, ob die Verdrahtung stimmt, sodass du nicht das ganze Projekt von Hand durchlesen musst.
Braucht die Prüfung gehostetes Intelligence?
Nicht immer. Eine Open-Source-App nutzt einen anderen Check als eine App mit gehostetem Intelligence.
Meldet er mich ohne Nachfrage an?
Er sollte sich nicht nur anmelden, damit ein Check besteht. Die Anmeldung ist ein eigener Schritt, den du wählst.
Details
Originalbeschreibung des Autors
Use for the CopilotKit CLI — `npx copilotkit@latest`. Covers proving a project's wiring with `verify` before debugging anything by hand, scaffolding with `create`, signing in and selecting a hosted Intelligence project, agent-assisted onboarding of an existing app, generating type-safe agent ids, and importing thread history. Reach for `verify` first whenever a CopilotKit app is not working.
repo: CopilotKit/CopilotKit
Beliebtheit
- GitHub-Sterne
- 38k
- Platz im Ranking
- #7488
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
channels-setup
38kVerweist deinen Agenten auf die geführte Einrichtung von CopilotKit, damit ein erster Agent von Anfang bis Ende in Slack oder Microsoft Teams antwortet.
copilotkit-channels
38kHilft deinem Agenten, einen verwalteten CopilotKit-Kanal für Code einzurichten oder anzupassen, damit ein Agent in Slack oder Microsoft Teams antworten kann.
copilotkit
38kHilft deinem Agenten, vor dem Schreiben von Code die aktuelle CopilotKit-Dokumentation und den Quellcode zu finden, statt sich auf die Erinnerung an eine sich ändernde API zu verlassen.
setup-slack-channel
38kHilft deinem Agenten, einen lokal laufenden CopilotKit-Agenten mit Slack zu verbinden, indem er die Slack-App, ihre Tokens und den verwalteten Kanal anlegt.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.