Quickstart
Get up and running with sus in just a few minutes
Installation
Install sus using the install script:
curl -fsSL https://sus-pm.com/install.sh | shInitialize Your Project
Run sus init to set up sus in your project:
sus init π§ initializing sus...
Enable AGENTS.md docs index for AI coding agents? (Y/n) Y
β created sus.json
β created .sus-docs/
β updated AGENTS.md with sus docs index
β sus initialized successfully!This creates:
sus.json- Project configurationAGENTS.md- Instructions and docs index for AI agents
Use -y to skip prompts: sus init -y
Add Your First Package
Instead of using npm install, use sus add to install packages with safety checks:
sus add expressπ checking express@4.21.0...
β
not sus
ββ publisher: expressjs (verified)
ββ downloads: 32M/week
ββ cves: 0
ββ install scripts: none
π¦ installed
π updated AGENTS.md docs indexIf a package is suspicious, sus will warn you:
sus add event-stream@3.3.6π checking event-stream@3.3.6...
π¨ MEGA SUS
ββ malware: flatmap-stream injection
ββ targets: cryptocurrency wallets
ββ status: COMPROMISED
β not installed. use --yolo to force (don't)Scan an Existing Project
Audit all dependencies in your current project:
sus scanπ scanning 847 packages...
π¦ lodash@4.17.20
β οΈ kinda sus β CVE-2021-23337 (prototype pollution)
ββ fix: sus update lodash
π¦ node-ipc@10.1.0
π¨ MEGA SUS β known sabotage (march 2022)
ββ fix: sus remove node-ipc
βββββββββββββββββββββββββββββββββββ
summary: 845 clean, 1 warning, 1 criticalCheck a Package
Look up a package without installing it:
sus check lodashπ¦ lodash
fetching security assessment...
β assessment found
β
not sus
ββ publisher: lodash (verified)
ββ downloads: 45M/week
ββ cves: 0
ββ install scripts: nonePackage Manager Auto-Detection
sus automatically detects your package manager based on lock files:
pnpm-lock.yamlβ pnpmyarn.lockβ yarnbun.lockβ bunpackage-lock.jsonβ npm (default)
No configuration neededβjust run sus add and it works.
AGENTS.md Docs Index
When you install a package with sus add, it automatically:
- Saves package documentation to
.sus-docs/ - Updates the docs index in
AGENTS.md
This gives AI coding agents instant access to package documentation without requiring them to search for it. Based on Vercel's research, this passive context approach achieves 100% pass rate compared to 79% for active skill retrieval.
Learn more in the AGENTS.md documentation.
Common Flags
sus add express --strict # Block on any warning
sus add express --yolo # Skip checks (not recommended)
sus scan --json # Machine-readable outputOther Commands
sus init # Initialize sus in your project
sus remove <package> # Uninstall a package
sus update # Update dependencies and re-scan
sus why <package> # Show why a package is in your treeNext Steps
- Learn about core concepts
- Explore the CLI reference
- Read the setup guides for your AI coding tool
On this page