Plugins extend Cline with custom tools, lifecycle hooks, slash commands, and more. They can be installed globally (available in all sessions) or per-project.Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
Installing Plugins via CLI
Thecline plugin install command installs plugins from three source types:
- Git Repository
- npm Package
- Local Path
@ref:| Flag | Description |
|---|---|
--force | Replace an existing install for the same source |
--json | Output the result as JSON (useful for scripting) |
--cwd <path> | Install to <path>/.cline/plugins instead of the global directory |
cline config and checking the plugin tab.
Example: TypeScript Navigation Plugin
The typescript-lsp-plugin is a good reference for how plugins work. It adds agoto_definition tool that uses the TypeScript Language Service API to resolve symbol definitions through imports, re-exports, and type aliases.
Install it with:
goto_definition with a file path and line number to find where symbols are defined, which is much more precise than text search.
Plugin Manifest Format
For a repository or npm package to be installable as a Cline plugin, itspackage.json should include a cline field that declares plugin entry points:
cline.plugins array accepts:
| Format | Example |
|---|---|
Object with paths array | { "paths": ["./src/plugin.ts"], "capabilities": ["tools"] } |
| Plain string | "./index.ts" |
.ts or .js file that exports an AgentPlugin (either as the default export or a named export).
If no cline.plugins field is present, the installer falls back to auto-discovery: it looks for standard entry points, then recursively scans for .ts and .js files (skipping node_modules and .git).
Host-Provided Dependencies
Dependencies under the@cline/ scope (like @cline/core, @cline/shared) are provided by the host runtime. The installer automatically strips these from the plugin’s dependency list before running npm install, so you should declare them as peerDependencies:
Plugin Directory Structure
Plugins are stored in theplugins directory at two levels:
~/.cline/plugins/) are available across all sessions. Project plugins (.cline/plugins/ in your repo) are available only when working in that project.

