[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [OSV.dev vulnerability details](https://spiral.ai/integrations/claude-code/osv-dev-vulnerability-details)

# How to Use OSV.dev vulnerability details in Claude Code

Fetch one vulnerability record by ID, with descriptions, affected packages, ranges, and references when supplied. Use it to investigate a finding or read the advisory behind a dependency check.

|  |  |
| --- | --- |
| Model | OSV.dev vulnerability details |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with OSV.dev vulnerability details in Claude Code

- Use OSV.dev vulnerability details for GHSA-jfh8-c2jp-5v3q and compare its affected-package information with any Log4j dependencies in this project's Maven files.
- Use OSV.dev vulnerability details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OSV.dev vulnerability details and tell me what changed since last week.
- Check OSV.dev vulnerability details and summarize what you find in three bullet points.
- Pull the newest data from OSV.dev vulnerability details and give me the result as a table.

## How to set up OSV.dev vulnerability details in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run OSV.dev vulnerability details**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "osv-dev/vulnerabilities/vuln",
    "input": {
      "id": "<id>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds OSV.dev vulnerability details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## OSV.dev vulnerability details tools and prices

- [OSV.dev open source vulnerabilities · Vuln](https://spiral.ai/tools/alexandria/osv-dev/vulnerabilities/vuln) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| id |  | — | OSV id, e.g. GHSA-29mw-wpgm-hmr9, CVE-2021-44228, PYSEC-2021-19, GO-2022-0969, RUSTSEC-2021-0003, DEBIAN-CVE-2023-5678. GHSA and CVE ids are case-normalized. |
| url |  | — | Pasted https://osv.dev/vulnerability/<id> URL instead of `id`. |

## What can you do with OSV.dev vulnerability details in Claude Code?

Turn dependency findings into a concrete upgrade review for your project. A coding agent can match installed versions to OSV.dev advisories and check proposed replacements before changing the dependency files.

### Review dependencies before a release

Screen the release's package versions, investigate the returned advisory IDs, and check proposed replacement versions. Produce a review list with affected packages and supporting references.

### Compare upgrade candidates

Check current and proposed versions together, inspect each candidate separately, and read the advisories behind remaining findings. Use the recorded affected ranges to explain what an upgrade addresses.

### Investigate a reported vulnerability

Read the reported advisory, check the relevant package version, and screen other deployed versions of that package. Summarize the affected versions and the source's remediation information.

### Maintain a dependency review queue

Recheck an inventory on a schedule and compare vulnerability IDs and modification times. Investigate changed records and check individual packages before updating the review queue.

### Prepare a software security assessment

Screen a product's declared package versions, investigate individual dependency matches, and collect advisory references. Build an assessment grounded in recorded package impact.

### Validate a dependency change

Compare the package versions before and after a change, check each affected dependency, and inspect the underlying advisories. Explain which recorded findings disappear and which remain.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## OSV.dev vulnerability details in other agents

- [Amp](https://spiral.ai/integrations/amp/osv-dev-vulnerability-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/osv-dev-vulnerability-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/osv-dev-vulnerability-details)
- [Cline](https://spiral.ai/integrations/cline/osv-dev-vulnerability-details)
- [Codex](https://spiral.ai/integrations/codex/osv-dev-vulnerability-details)
- [Cursor](https://spiral.ai/integrations/cursor/osv-dev-vulnerability-details)
- [Devin](https://spiral.ai/integrations/devin/osv-dev-vulnerability-details)
- [dots](https://spiral.ai/integrations/dots/osv-dev-vulnerability-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/osv-dev-vulnerability-details)
- [Gemini](https://spiral.ai/integrations/gemini/osv-dev-vulnerability-details)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/osv-dev-vulnerability-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/osv-dev-vulnerability-details)
- [goose](https://spiral.ai/integrations/goose/osv-dev-vulnerability-details)
- [Grok](https://spiral.ai/integrations/grok/osv-dev-vulnerability-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/osv-dev-vulnerability-details)
- [Hermes](https://spiral.ai/integrations/hermes/osv-dev-vulnerability-details)
- [Instinct](https://spiral.ai/integrations/instinct/osv-dev-vulnerability-details)
- [Manus](https://spiral.ai/integrations/manus/osv-dev-vulnerability-details)
- [Muse](https://spiral.ai/integrations/muse/osv-dev-vulnerability-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/osv-dev-vulnerability-details)
- [n8n](https://spiral.ai/integrations/n8n/osv-dev-vulnerability-details)
- [Notion](https://spiral.ai/integrations/notion/osv-dev-vulnerability-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/osv-dev-vulnerability-details)
- [opencode](https://spiral.ai/integrations/opencode/osv-dev-vulnerability-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/osv-dev-vulnerability-details)
- [Raycast](https://spiral.ai/integrations/raycast/osv-dev-vulnerability-details)
- [VS Code](https://spiral.ai/integrations/vscode/osv-dev-vulnerability-details)
- [Windsurf](https://spiral.ai/integrations/windsurf/osv-dev-vulnerability-details)
- [Zapier](https://spiral.ai/integrations/zapier/osv-dev-vulnerability-details)

## More Claude Code guides

- [OSV.dev package vulnerability lookup](https://spiral.ai/integrations/claude-code/osv-dev-package-vulnerability-lookup)
- [Ollama model details](https://spiral.ai/integrations/claude-code/ollama-model-details)
- [OSV.dev dependency vulnerability check](https://spiral.ai/integrations/claude-code/osv-dev-dependency-vulnerability-check)
- [Ollama model layer metadata](https://spiral.ai/integrations/claude-code/ollama-model-layer-metadata)
- [Notion template listings](https://spiral.ai/integrations/claude-code/notion-template-listings)
- [Ollama model search](https://spiral.ai/integrations/claude-code/ollama-model-search)

## Questions about OSV.dev vulnerability details in Claude Code

**Can Claude Code use OSV.dev vulnerability details?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run OSV.dev vulnerability details like any built-in tool.

**How much does OSV.dev vulnerability details cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use OSV.dev vulnerability details in Claude Code?**

No. Spiral runs OSV.dev vulnerability details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up OSV.dev vulnerability details in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while OSV.dev vulnerability details runs?**

OSV.dev vulnerability details runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Which open source ecosystems does OSV.dev cover?**

Coverage includes npm, PyPI, Maven, Go, crates.io, and RubyGems, along with Git repositories and distributions such as Debian, Alpine, and Ubuntu. OSV.dev combines advisory databases rather than relying on one publisher.

**How quickly does OSV.dev reflect advisory updates?**

OSV.dev targets source data being no more than 15 minutes stale 99.5% of the time. That measures freshness relative to its sources, not the time between discovering a vulnerability and publishing it.

**Does an affected package mean my application is exploitable?**

OSV.dev's minimum precision standard is package-level matching. Symbol-level information depends on what the advisory supplies, so a package match alone does not establish whether your application reaches the vulnerable code.

**Why do some advisories lack severity or remediation details?**

The OSV schema makes severity, descriptions, references, and affected-package information optional. A record can therefore exist without a severity assessment or a documented fixed version.

**Can OSV.dev still return a withdrawn advisory?**

Yes. Withdrawn records disappear from package and batch query results but remain available through the individual vulnerability lookup.

