
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@weave_protocol/cli
Advanced tools
The weave CLI - one command to set up, audit, and run Weave Protocol security for AI agent projects
The weave command-line tool — one command to set up, audit, and run Weave Protocol security for AI agent projects.
npx @weave_protocol/cli init
That's it. The CLI detects your stack (LangChain, LlamaIndex, MCP server, OpenAI SDK, Anthropic SDK, or generic), asks which Weave Protocol packages you want, and scaffolds the right security middleware for your project.
Part of the Weave Protocol Security Suite.
weave init # Set up Weave Protocol in the current project
weave audit [path] # Scan dependencies for supply chain risk
weave dashboard [--port=3000] # Launch the API server + open the monitoring dashboard
weave doctor # Check environment for common config issues
weave version # Show CLI + installed package versions
weave help # Show help
weave init doespackage.json and source importsweave-security.ts (or .js) middleware file appropriate for your stack.weaverc config file that other Weave tools can read| Framework | Generated middleware |
|---|---|
| LangChain.js | WeaveSecurityCallback ready to drop into any chain or agent |
| MCP Server | secureToolHandler() wrapper that scans inputs and outputs of every tool call |
| OpenAI SDK | secureChatCompletion() wrapper for openai.chat.completions.create |
| Anthropic SDK | secureMessages() wrapper for anthropic.messages.create |
| Vercel AI / AI SDK | OpenAI-style wrapper |
| Generic / Raw | No code generation — just installs packages and writes .weaverc |
$ cd my-langchain-app
$ npx @weave_protocol/cli init
🕸️ Weave Protocol CLI
Detected
────────────────────────────────────────────────────────────
• Project root: /Users/me/my-langchain-app
• Language: typescript
• Framework: LangChain.js
• Also detected: OpenAI SDK
? Which framework should we configure for?
● 1. LangChain.js (detected)
○ 2. Anthropic SDK
○ 3. OpenAI SDK
○ 4. MCP Server
○ 5. None / generic
(1) >
? Which Weave Protocol packages do you want? (comma-separated)
☑ 1. 🛂 Tollere — Supply chain security
☑ 2. 🛡️ Mund — Input/output threat scanning
☐ 3. 🏛️ Hord — Encrypted vault for secrets
☐ 4. ⚖️ Domere — Compliance + blockchain anchoring
☐ 5. 👥 Witan — Multi-agent consensus
☐ 6. 🔍 Hundredmen — Real-time MCP proxy + drift detection
☑ 7. 🔗 Langchain — LangChain.js callbacks
☐ 8. 🔌 API — REST API + monitoring dashboard
(1,2,7) >
Plan
────────────────────────────────────────────────────────────
• Install 3 package(s):
• @weave_protocol/langchain
• @weave_protocol/tollere
• @weave_protocol/mund
• Create 1 file(s):
• weave-security.ts — Security middleware module
• Write .weaverc configuration file
? Proceed? (Y/n) y
✓ Wrote weave-security.ts
✓ Wrote .weaverc
Install
────────────────────────────────────────────────────────────
Run:
npm install @weave_protocol/langchain @weave_protocol/tollere @weave_protocol/mund
Next steps
────────────────────────────────────────────────────────────
→ Import the security callback in your chains
→ Add it to any chain's `callbacks` array
→ Run `npx weave audit` before each deploy
✨ Weave Protocol initialized!
weave auditDelegates to Tollere to scan your package.json for typosquats, CVEs, low-reputation maintainers, and suspicious version diffs.
weave audit
weave audit ./apps/api/package.json
Exit codes: 0 = clean, 1 = warnings (review), 2 = critical (install blocked). Wire this into your CI pipeline.
weave dashboardLaunches the API package and opens the monitoring dashboard in your browser:
weave dashboard
weave dashboard --port=4000
Live activity feed, threat intel status, compliance frameworks, MCP server reputation.
weave doctorQuick environment check:
package.json present.weaverc presentweave doctor
Exit code: 0 if all checks pass, 1 if any fail.
The CLI's internals are also exported as a library, in case you want to build tooling on top:
import { detectFramework, getScaffold } from "@weave_protocol/cli";
const detection = detectFramework(process.cwd());
const scaffold = getScaffold(detection.primary, {
language: "typescript",
selectedPackages: ["tollere", "mund"],
framework: detection.primary,
});
console.log(scaffold.files[0].content);
| Package | Description |
|---|---|
| @weave_protocol/full | Bundle that installs all Weave Protocol packages |
| @weave_protocol/tollere | Supply chain security |
| @weave_protocol/mund | Threat scanning |
| @weave_protocol/api | REST API + dashboard |
Apache 2.0
FAQs
The weave CLI - one command to set up, audit, and run Weave Protocol security for AI agent projects
The npm package @weave_protocol/cli receives a total of 28 weekly downloads. As such, @weave_protocol/cli popularity was classified as not popular.
We found that @weave_protocol/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.