Files
Alem Tuzlak ff2093102c chore(lint): add new oxlint rules and auto-fix violations
Enable stricter oxlint rules for better code health:
- typescript/consistent-type-imports: enforce `import type` for type-only imports
- typescript/no-import-type-side-effects: prefer top-level type imports
- import/consistent-type-specifier-style: consistent type specifier placement
- typescript/no-unnecessary-type-assertion: bump to error
- react/self-closing-comp: enforce self-closing JSX components
- unicorn/prefer-optional-catch-binding: drop unused catch params
- eslint/no-useless-computed-key: simplify object keys
- unicorn/prefer-string-slice: prefer .slice() over .substring()
- unicorn/prefer-array-flat-map: prefer .flatMap() over .map().flat()

All existing violations auto-fixed via oxlint --fix.
2026-04-10 19:29:32 +02:00
..
2026-04-08 23:54:54 +00:00
2026-04-08 23:54:54 +00:00

🪁 CopilotKit CLI

NOTE: The CopilotKit CLI is an optional tool that enhances the developer experience of CopilotKit. It is not required to use CopilotKit. Click here to get started with CopilotKit..

Version Downloads/week

What is the CopilotKit CLI?

The CopilotKit CLI boosts your CopilotKit development experience. It integrates neatly with Copilot Cloud.

Installation

# npm
npm install -g copilotkit

# pnpm
pnpm install -g copilotkit

# yarn
yarn global add copilotkit

Commands

init: Add CopilotKit to your Next.js project

The fastest way to add CopilotKit to your Next.js project is with the init command:

# Navigate to your Next.js project
cd my-nextjs-app

# Run the init command
copilotkit init

This interactive command will:

  • Set up the required UI components
  • Configure AI agents if desired (LangGraph, CrewAI)
  • Connect to Copilot Cloud (optional)
  • Create all necessary configuration files

You can also pass flags to automate the setup:

copilotkit init --mode LangGraph

login: Authenticating with Copilot Cloud

First, ensure you have an account on Copilot Cloud.

Then, run the following command to authenticate with Copilot Cloud:

copilotkit login

dev: Local Endpoint Development

The CopilotKit CLI allows you to create a local tunnel to your CopilotKit remote endpoints, agents, and LangGraph apps.

For example, to create a local tunnel to an endpoint running locally on port 8000, you can run:

copilotkit dev --port 8000

Need help?

You can always run copilotkit --help to get help on the CopilotKit CLI.

You're welcome to join our Discord to get help from the CopilotKit team and community.