safedep is SafeDep Cloud on the command line. Manage auth, query endpoint
telemetry, harden AI coding agents, and integrate with your security toolchain.
Built for humans and the agents they work with.
npx @safedep/cli setup mcp installOne command authenticates you with SafeDep Cloud, detects your AI coding agents (Claude Code, Cursor, Gemini CLI, and more), and injects MCP-based threat protection into each one.
Homebrew (macOS and Linux):
brew install safedep/tap/cliOther installation options
npm:
npm install -g @safedep/clipnpm:
pnpm add -g @safedep/cliBun:
bun add -g @safedep/cliDownload prebuilt binaries for Linux, macOS, and Windows from the GitHub Releases page.
# Authenticate with SafeDep Cloud
safedep auth login
# Check your endpoint fleet
safedep endpoint status
# Query your security telemetry
safedep query exec --sql "select name, version from packages limit 10"
# Protect your AI coding agents
safedep setup mcp installAuthentication and profiles: safedep auth
Log in to SafeDep Cloud, manage credential profiles, and switch between tenants.
Endpoint fleet intelligence: safedep endpoint
Monitor the health of every endpoint reporting to your tenant, list active machines,
and drill into package inventory and recent activity.
Security telemetry queries: safedep query
Run SQL against SafeDep Cloud's query service. Inspect packages, events, and findings
across your entire fleet.
AI agent protection: safedep protect mcp
Inject or remove the SafeDep MCP server from detected AI coding agents. Supports
Claude Code, Cursor, Gemini CLI, and more.
Integrations: safedep integration
Push SafeDep malware findings to external security tools. JFrog XRay is supported.
- Documentation: guides, concepts, and API reference
- SafeDep Cloud: the platform behind the CLI
- GitHub Issues: bug reports and feature requests
Full command reference
| Command | Description |
|---|---|
safedep auth login |
Authenticate with SafeDep Cloud |
safedep auth logout |
Remove credentials for the active profile |
safedep auth status |
Show authentication status |
safedep auth profile list |
List credential profiles |
safedep endpoint status |
Show fleet health |
safedep endpoint list |
List endpoints with filters |
safedep endpoint show |
Show endpoint detail |
safedep endpoint activity list |
List recent endpoint activity |
safedep endpoint inventory list |
List current endpoint inventory |
safedep query exec |
Execute a SQL query against SafeDep Cloud |
safedep query schema list |
List tables in the query schema |
safedep query schema show |
Show one table from the query schema |
safedep query schema get |
Get the full schema in one call (for AI agents and scripts) |
safedep protect mcp install |
Inject SafeDep MCP server config into detected AI agents |
safedep protect mcp uninstall |
Remove SafeDep MCP server config from detected AI agents |
safedep integration jfrog run |
Push SafeDep malware findings to JFrog XRay |
safedep setup mcp install |
Guided onboarding: authenticate and configure AI agents |
safedep version |
Print CLI version |