Setup Guide

Protect your dependencies from supply chain attacks. Pick the integration that fits your workflow.

Pick your tool

Pick the setup that fits your workflow.

Recommended: If possible, install both an AI assistant integration and the IDE extension.
  • AI assistant. Catches risky packages before they're installed.
  • IDE extension. Scans your lockfiles so existing dependencies are covered too.

Command Line Free & Open Source

The GardWatch CLI is free and open source. No Gardera account or API key required. See the GitHub repo for installation and usage instructions.

Shell Wrappers Free & Open Source

The wrappers replace npm and pip with drop-in shell aliases that scan packages for supply chain risks before the real package manager runs. Requires the GardWatch CLI to be installed and on your PATH.

How it behaves

Install (recommended)

Set up wrappers for all supported package managers:

gardwatch setup-wrapper

Or only for a specific one:

gardwatch setup-wrapper npm
gardwatch setup-wrapper pip

This adds aliases to your shell config (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish). Activate them with:

source ~/.bashrc  # or ~/.zshrc

or by restarting your terminal.

Install (manual)

Add these lines to your shell config yourself:

alias npm="gardwatch npm"
alias pip="gardwatch pip"

Usage

Use npm and pip normally. Install commands are scanned, everything else passes through:

npm install lodash
npm install express@4.18.0
pip install requests
pip install django==4.2.0
pip install -r requirements.txt

You can also call the wrappers directly without setting up aliases:

gardwatch npm install lodash
gardwatch pip install requests

Supported package managers

Commands that don't install packages (npm test, npm run build, pip list, pip show, etc.) pass straight through.

Bypass for a single command

Call the real binary by its full path:

/usr/bin/npm install lodash
CI/CD: The wrappers work in CI, but interactive prompts on CRITICAL packages may hang. Prefer running gardwatch analyze against your lockfile instead.

Uninstall

gardwatch remove-wrapper

Or remove a specific wrapper:

gardwatch remove-wrapper npm

Then reload your shell config.

AI Assistants

GardWatch connects to your AI assistant as an MCP server. Once set up, it works the same way across all clients:

  1. When the AI runs a package manager command (e.g. npm install, pip install, cargo add), GardWatch is automatically triggered
  2. Package identifiers are extracted and sent to GardWatch for scoring
  3. If any package is flagged CRITICAL or SUSPICIOUS, the AI warns you before continuing

You can also ask your AI assistant directly:

"Is event-stream 3.3.6 safe to install?"

All integrations require a Gardera account. Pick your assistant below for setup instructions.

Claude Code

One command sets up OAuth login, local lockfile parsing, and automatic scanning:

npx @gardera/gardwatch-mcp setup-claude

Then open Claude Code and run /mcp to complete the browser login with your Gardera account.

Uninstall

claude mcp remove gardera

Remove the hook manually from ~/.claude/settings.json if needed.

Codex

Add the Gardera MCP server to Codex with one command:

codex mcp add gardera --url https://mcp.gardera.io/mcp

The first time you use it, Codex will open your browser to complete the OAuth login with your Gardera account.

Uninstall

codex mcp remove gardera

Cursor

Add the Gardera MCP server to your Cursor config at ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gardera": {
      "url": "https://mcp.gardera.io/mcp"
    }
  }
}

Open Cursor's Settings > MCP panel and enable the gardera server. Cursor will open your browser to complete the OAuth login with your Gardera account.

Uninstall

Remove the gardera entry from ~/.cursor/mcp.json.

Gemini

Add the Gardera MCP server to Gemini with one command:

gemini mcp add gardera https://mcp.gardera.io/mcp -t http

Then open Gemini and run /mcp auth gardera to complete the OAuth login with your Gardera account in your browser.

Uninstall

gemini mcp remove gardera

Other MCP clients

GardWatch runs as a local MCP server that works with any MCP-compatible AI assistant.

1. Get an API key

Go to app.gardera.io/settings/ and create a new key. Copy it. It's only shown once.

2. Add to your MCP config

{
  "mcpServers": {
    "gardera-gardwatch": {
      "command": "npx",
      "args": ["-y", "@gardera/gardwatch-mcp"],
      "env": {
        "GARDERA_API_KEY": "your-api-key"
      }
    }
  }
}

Add this to your assistant's MCP configuration file. Refer to your assistant's documentation for the config file location.

VS Code (IDE Extension)

Requires a Gardera account. The Gardera VS Code extension adds real-time dependency scoring directly in your editor.

Install

Search for Gardera in the Extensions marketplace, or:

code --install-extension gardera.gardera-vscode

Setup

  1. Install the extension
  2. Enter your API key when prompted (or go to Settings > Gardera > Write API Key)
  3. Open or modify a lockfile. Scanning runs automatically and issues are flagged inline

Get an API key at app.gardera.io/settings/.

Features

Cursor (IDE Extension)

Requires a Gardera account. The same Gardera extension is available for Cursor via Open VSX.

Install

Search for Gardera in Cursor's Extensions panel, or install manually:

  1. Open Cursor
  2. Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
  3. Search for Gardera Security and click Install

Setup

Same as VS Code. See the VS Code section for full details.

Scoring

GardWatch scores every package from 0 to 100:

StatusScoreMeaning
SAFE80–100No concerns found
SUSPICIOUS50–79Some risk signals. Review recommended
CRITICAL0–49High risk. Do not install without investigation

Scores are based on multiple signals:

Comparison

IntegrationAuthGardera account required
CLINoneNo, free & open source
Claude CodeOAuth (browser login)Yes
Other MCP clientsAPI keyYes
IDE extensionAPI keyYes