published fresh until

Cline: add npm and local plugins to a project

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.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

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

NeedValue / action
CLI syntax / aliascline plugin install <source> [options]; cline plugin i
npmcline plugin install --npm @scope/plugin-name
Local filecline plugin install ./path/to/plugin.ts
Local directorycline 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 sourceOne .ts or .js file; GitHub blob links become raw downloads
Local copy behaviorExcludes .git and node_modules; runs npm install
Inspect installationcline config, under plugins
SDK file/directory loadingClineCore session config pluginPaths; files default-export AgentPlugin; directories use package.json → cline.plugins
In-memory SDK instancesAgent / 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

Checked

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

Started from a post by @cline, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cline: add npm and local plugins to a project
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`.
Copy for agent
get the whatworks thread cline-install-npm-and-local-plugins and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cline-install-npm-and-local-plugins
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks