[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Red Hat CVE search](https://spiral.ai/integrations/opencode/red-hat-cve-search)

# How to Use Red Hat CVE search in opencode

Find Red Hat CVE records for a package, product, or advisory, with severity and scoring information. Use it to build a review list before investigating individual vulnerabilities.

|  |  |
| --- | --- |
| Model | Red Hat CVE search |
| 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 Red Hat CVE search in opencode

- Use Red Hat CVE search to find openssl CVEs for Red Hat Enterprise Linux 9. Compare the results with our package inventory and write a review table of CVE IDs, severity, and advisory references.
- Use Red Hat CVE search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Red Hat CVE search and tell me what changed since last week.
- Check Red Hat CVE search and summarize what you find in three bullet points.
- Pull the newest data from Red Hat CVE search and give me the result as a table.

## How to set up Red Hat CVE search in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Red Hat CVE search**: 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": "access-redhat-com/vulnerabilities/search",
    "input": {
      "cwe": "<cwe>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Red Hat CVE search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Red Hat CVE search tools and prices

- [Red Hat Security Data API · Search](https://spiral.ai/tools/alexandria/access-redhat-com/vulnerabilities/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cwe |  | — | CWE id, e.g. CWE-79 or 79. Pattern: ^\s*([Cc][Ww][Ee]-)?[0-9]{1,6}\s*$. |
| cursor |  | — | next_cursor from the previous page; keep the other inputs unchanged. Pattern: ^[0-9]{1,5}$. |
| cve_ids |  | — | Only these CVE ids (up to 50). |
| package |  | — | Package name as Red Hat names it, e.g. openssl, kernel, log4j (matches fixed and affected packages). |
| product |  | — | Red Hat product name, e.g. Red Hat Enterprise Linux 9. |
| severity | low, moderate, important, critical, Low, Moderate, Important, Critical | — | Red Hat threat severity. |

## What can you do with Red Hat CVE search in opencode?

Build remediation reports that connect Red Hat CVEs to reported product status and fixing advisories. A coding agent can compare that evidence with the project's package inventory and produce a reviewable change list.

### Prepare an incident brief

Find relevant package CVEs, inspect their reported product status, and summarize the advisories that deliver fixes for an incident review.

### Plan a maintenance window

Build a product-specific vulnerability list and connect the findings to fixing advisories. Group the reported fixes into a maintenance review.

### Write remediation tickets

Turn package search results into tickets containing the CVE, Red Hat severity, reported product status, and fixing advisory where available.

### Review a security update

Start with an advisory, list the vulnerabilities it addresses, and inspect the CVE assessments to explain the update's security purpose.

### Maintain a package watchlist

Repeat searches for packages such as openssl or kernel, compare matching CVEs with the previous review, and investigate newly found records.

### Count vulnerabilities and updates separately

Use matching CVEs and their advisory references to produce separate counts of vulnerabilities and fixing updates. Explain where one advisory addresses several CVEs.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Red Hat CVE search in other agents

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

## More opencode guides

- [Red Hat CVE details](https://spiral.ai/integrations/opencode/red-hat-cve-details)
- [Red Hat security advisory](https://spiral.ai/integrations/opencode/red-hat-security-advisory)
- [Read the Docs project details](https://spiral.ai/integrations/opencode/read-the-docs-project-details)
- [Semantic Scholar author publications](https://spiral.ai/integrations/opencode/semantic-scholar-author-publications)
- [Read the Docs page index](https://spiral.ai/integrations/opencode/read-the-docs-page-index)
- [Semantic Scholar author research metrics](https://spiral.ai/integrations/opencode/semantic-scholar-author-research-metrics)

## Questions about Red Hat CVE search in opencode

**Can opencode use Red Hat CVE search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Red Hat CVE search like any built-in tool.

**How much does Red Hat CVE search cost in opencode?**

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

**Do I need an Alexandria account to use Red Hat CVE search in opencode?**

No. Spiral runs Red Hat CVE search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Red Hat CVE search in opencode?**

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

**Does opencode wait while Red Hat CVE search runs?**

Red Hat CVE search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does this cover vulnerabilities from every software vendor?**

The scope is Red Hat's product portfolio. Red Hat documents queries for any Red Hat product, including products beyond RHEL.

**When does Red Hat publish vulnerability information?**

Red Hat says it publishes CVE information and scores immediately after assessing disclosed or coordinated vulnerabilities, unless they are under embargo. It also updates machine-readable security data when fixes are released.

**Does a CVE record always include a fixed package version?**

No. Red Hat documents fixed package information as optional in a CVE record, including cases where multiple source RPMs share an erratum.

**Can one advisory cover several vulnerabilities?**

Yes. Red Hat advisories can address multiple CVEs, so counting advisories does not give you the number of vulnerabilities fixed.

**Does a product-status review include fixes already released?**

Yes, but Red Hat separates unresolved package states from releases that delivered fixes. Both are needed to describe the complete reported status of a CVE across products.

