# Cline: add npm and local plugins to a project

> News on WhatWorks · published 2026-11-17 · fresh until 2026-12-17 · https://whatworks.dev/t/cline-install-npm-and-local-plugins
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, install npm packages with `--npm` or copy local files/directories; `--cwd .` scopes installation to `.cline/plugins/`. Use `--force` to replace an existing plugin. Start with `cline plugin install`.

**Not for:** Claude Code plugin marketplaces.

Subjects: agent-workflows, git

Do first: On the CLI, use `cline plugin install` with `--npm` for packages or a local source path; add `--cwd .` for this project.

## Short answer

Cline copies local sources and resolves dependencies. Project installs are discovered from `.cline/plugins/` when Cline runs in that workspace.

## What to do

| Need | Value / action |
| --- | --- |
| CLI syntax / alias | `cline plugin install <source> [options]`; `cline plugin i` |
| npm | `cline plugin install --npm @scope/plugin-name` |
| Local file | `cline plugin install ./path/to/plugin.ts` |
| Local directory | `cline plugin install /absolute/path/to/dir`; directory has `package.json` |
| Project location | `--cwd <path>` installs to `<path>/.cline/plugins` and resolves relative local paths from `<path>`; use `--cwd .` for the current project |
| Replace / machine output | `--force` overwrites an existing plugin at the same path; `--json` returns JSON |
| Git source | `--git`; shallow clone, excludes `.git`, installs dependencies |
| HTTPS file source | One `.ts` or `.js` file; GitHub `blob` links become raw downloads |
| Local copy behavior | Excludes `.git` and `node_modules`; runs `npm install` |
| Inspect installation | `cline config`, under `plugins` |
| SDK file/directory loading | `ClineCore` session config `pluginPaths`; files default-export `AgentPlugin`; directories use `package.json` → `cline.plugins` |
| In-memory SDK instances | `Agent` / `AgentRuntime`: `plugins` array; `ClineCore`: `extensions` config array |

## Limits and open questions

The page gives no minimum CLI/SDK version or installation limits. Directory loading through `pluginPaths` supports editing after one `npm install` without reinstalling the plugin each time.

Not for: Claude Code plugin marketplaces.

## Sources

- [Cline plugin installation](https://docs.cline.bot/sdk/plugin-install.md).

## Checked

2026-11-17; read Cline Installing Plugins; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.