Skip to main content
The Cline CLI provides a plugin install command to install plugins from various sources. You can also load plugins programmatically via session config.

CLI Installation

Use the cline plugin install command to install plugins from file URLs, npm, git repositories, or local paths.
The shorthand cline plugin i works as well.

Install from a File URL

Installs a single .ts or .js plugin file from an HTTPS URL. GitHub blob URLs are normalized to raw file downloads automatically.

Install from npm

Installs the package from the npm registry into the Cline plugin directory.

Install from Git

Clones the repository (shallow, with blobless filter for speed) and installs its dependencies. The .git directory is excluded from the final install.

Install from Local Source

Supports both files and directories. Local installs copy the source, filter out .git and node_modules, and run npm install to resolve dependencies.

Options

Examples

Listing Installed Plugins

Installed plugins appear in the plugins section of your CLI config:

Find All Your Plugins from your file system

Project-scoped plugins live in the .cline/plugins/ folder at your workspace root. The CLI auto-discovers plugins from this folder when you run Cline in that project.
To add a single-file plugin to a project, install it with --cwd:
Global plugins are discovered from ~/.cline/plugins/, and Cline may also discover plugins from the system Plugins folder. Use --cwd . when you want plugins to stay with a specific project.

Programmatic Installation

Using pluginPaths (ClineCore)

In SDK code, load plugins from file paths using the pluginPaths session config option:
Plugin files must export an AgentPlugin as the default export. pluginPaths also accepts a package directory — the SDK reads package.json and follows the cline.plugins entries, so you can npm install once inside a package and iterate without re-running cline plugin install on every edit.

Using plugins (Agent Runtime)

When using the Agent or AgentRuntime directly, pass plugin instances in the plugins array:

Using extensions (ClineCore)

With ClineCore, use the extensions config array instead:

Next Steps

  • Learn about Plugins — Understand what plugins are and their benefits.
  • Follow the Writing Plugins guide — Build and distribute your own plugin.
  • Explore Plugin Examples to install ready-to-run plugin examples from the SDK repository.