7acadae
CopilotKitDocs
  • Docs
  • Integrations
  • Reference
Get Started
QuickstartCoding Agents
Concepts
ArchitectureGenerative UI OverviewOSS vs Enterprise
Agentic Protocols
OverviewAG-UIAG-UI MiddlewareMCPA2A
Build Chat UIs
Prebuilt Components
CopilotChatCopilotSidebarCopilotPopup
Custom Look and Feel
CSS CustomizationSlots (Subcomponents)Fully Headless UIReasoning Messages
Multimodal AttachmentsVoice
Build Generative UI
Controlled
Tool-based Generative UITool RenderingState RenderingReasoning
Your Components
Display ComponentsInteractive Components
Declarative
A2UIDynamic Schema A2UIFixed Schema A2UI
Open-Ended
MCP Apps
Adding Agent Powers
Frontend ToolsShared State
Human-in-the-Loop
HITL OverviewPausing the Agent for InputHeadless Interrupts
Sub-AgentsAgent ConfigProgrammatic Control
Agents & Backends
Built-in Agent
Backend
Copilot RuntimeFactory ModeAG-UI
Runtime Server AdapterAuthentication
Built-in Agent (TanStack AI)
Advanced ConfigurationMCP ServersModel SelectionServer Tools
Observe & Operate
InspectorVS Code Extension
Troubleshooting
Common Copilot IssuesError Debugging & ObservabilityDebug ModeAG-UI Event InspectorHook ExplorerError Observability Connectors
Enterprise
CopilotKit PremiumHow the Enterprise Intelligence Platform WorksHow Threads & Persistence WorkObservabilitySelf-Hosting IntelligenceThreads
Deploy
AWS AgentCore
What's New
Full MCP Apps SupportLangGraph Deep Agents in CopilotKitA2UI Launches with full AG-UI SupportCopilotKit v1.50Generative UI Spec SupportA2A and MCP Handshake
Migrate
Migrate to V2Migrate to 1.8.2
Other
Contributing
Code ContributionsDocumentation Contributions
Anonymous Telemetry
Built-in Agent (TanStack AI)OtherContributingDocumentation Contributions

Documentation Contributions

We move quickly and our docs sometimes lag the code, so contributions to the documentation site are very welcome.

The documentation site lives in showcase/shell-docs inside the CopilotKit monorepo. It is a Fumadocs site; the legacy Nextra docs/ tree is being phased out and is no longer the right place to author new content.

Prerequisites#

  • Node.js 20.x or later
  • pnpm v9.x installed globally (npm i -g pnpm@^9)
  • Nx — used to drive all tasks in the monorepo. You don't need to install it globally; the repo's pnpm install provides everything.

How To Contribute#

Fork and clone the repository#

First, fork the CopilotKit GitHub repository, then clone your fork:

git clone https://github.com/<your-username>/CopilotKit
cd CopilotKit
pnpm install

pnpm install at the repo root installs every package in the workspace and wires up the lefthook pre-commit hook (lint, format, test) — running it once is required before your first commit.

Run the documentation site locally#

The shell-docs site is an Nx project (@copilotkit/showcase-shell-docs). Run it through Nx from the repo root:

nx run shell-docs:dev

The site is served at http://localhost:3003. If you prefer to run it from the package directory, cd showcase/shell-docs && pnpm dev works too — both go through the same script.

Info

Always prefer running tasks via Nx (nx run, nx run-many, nx affected) rather than the underlying tooling directly. This is the convention across the monorepo and ensures task dependencies are respected.

Make your changes#

Documentation pages live under:

showcase/shell-docs/src/content/docs/

A few conventions to keep in mind:

  • The site is built with Fumadocs. Content is authored in MDX. Frontmatter (title, description, icon, etc.) drives the sidebar and metadata.
  • For code samples, prefer the <Snippet> region pattern over hand-inlining code blocks. <Snippet> pulls real source from the showcase integrations under showcase/integrations/<framework>/... using region markers (e.g. // region:my-region … // endregion:my-region). This keeps every code sample tied to runnable demo code and lets us catch drift automatically. When in doubt, look at how an adjacent page references the same integration and follow that pattern.
  • Reference pages for hooks, components, and runtime APIs use a <PropertyReference> component to render the prop / parameter table. Match the style of an existing reference page in the same directory.
Info

Please review your changes for grammar, spelling, and formatting, and confirm that links, code blocks, and images render correctly in the local dev server before opening a PR.

Review changes and submit a pull request#

Before pushing, the lefthook pre-commit hook will run lint, format, and tests on the affected projects via Nx. If anything fails, fix the issue and commit again — don't bypass the hook.

When you're happy with the result, push and open a PR against the CopilotKit/CopilotKit repo. Thank you for your contribution!

Need help?#

If you need help with anything, please don't hesitate to reach out on Discord. There's a dedicated #contributing channel.

On this page
PrerequisitesHow To ContributeNeed help?