[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FDA Orange Book drug records](https://spiral.ai/integrations/opencode/fda-orange-book-drug-records)

# How to Use FDA Orange Book drug records in opencode

Returns approved drug product records with therapeutic equivalence evaluations and related patent and exclusivity information. Use it to compare approved products and research listed protections.

|  |  |
| --- | --- |
| Model | FDA Orange Book drug records |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FDA Orange Book drug records in opencode

- Use FDA Orange Book drug records to retrieve atorvastatin calcium products and add a comparison view for strengths, applicants, therapeutic equivalence codes, and listed protections.
- Use FDA Orange Book drug records to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from FDA Orange Book drug records and tell me what changed since last week.
- Check FDA Orange Book drug records and summarize what you find in three bullet points.
- Pull the newest data from FDA Orange Book drug records and give me the result as a table.

## How to set up FDA Orange Book drug records 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 FDA Orange Book drug records**: 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": "fda-gov/records/orange_book",
    "input": {
      "application_number": "<application_number>"
    }
  }'
```

Then paste one of the prompts above: opencode finds FDA Orange Book drug records on Spiral, shows the price and runs it.

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

## FDA Orange Book drug records tools and prices

- [FDA · Orange book](https://spiral.ai/tools/alexandria/fda-gov/records/orange_book) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| skip | 0 to 25000 | 0 | skip |
| limit | 1 to 100 | 25 | Products per page, ordered by application then product number. |
| ingredient |  | — | Active ingredient words, e.g. tirzepatide or atorvastatin calcium; matches ingredient names containing them. Pattern: ^[^"\\]+$. |
| trade_name |  | — | Proprietary name words, e.g. Lipitor. Pattern: ^[^"\\]+$. |

## What can you do with FDA Orange Book drug records in opencode?

Build an FDA research view that keeps supply records, product approvals, orphan programs, and compliance correspondence understandable. A coding agent can turn returned records into project tables and link individual findings to FDA documents.

### Build an FDA research reference

Organize shortage presentations, food recall findings, approved drug records, orphan designations, and warning correspondence into a searchable internal reference with links to the original records.

### Check claims before publication

Check a draft's statements about product availability, recalled lots, approved products, orphan status, or warning letter findings against the relevant FDA records.

### Prepare an internal regulatory digest

Summarize newly retrieved FDA records for a research team, explaining whether each item concerns supply, a recall, an approved product, an orphan program, or compliance correspondence.

### Prepare pharmacy supplier questions

Compare manufacturer and presentation availability, review approved drug product records, and read relevant manufacturing warning letters before drafting questions for suppliers.

### Map rare disease development programs

Find designations for a condition, inspect individual drug and indication records, and compare approved drug information where Orange Book records apply.

## Overview

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

## FDA Orange Book drug records in other agents

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

## More opencode guides

- [FDA NDC drug listings](https://spiral.ai/integrations/opencode/fda-ndc-drug-listings)
- [FDA Paragraph IV patent certifications](https://spiral.ai/integrations/opencode/fda-paragraph-iv-patent-certifications)
- [Europe PMC literature search](https://spiral.ai/integrations/opencode/europe-pmc-literature-search)
- [FDA Purple Book biologic records](https://spiral.ai/integrations/opencode/fda-purple-book-biologic-records)
- [Europe PMC article full text](https://spiral.ai/integrations/opencode/europe-pmc-article-full-text)
- [FDA cell and gene therapy approvals](https://spiral.ai/integrations/opencode/fda-cell-and-gene-therapy-approvals)

## Questions about FDA Orange Book drug records in opencode

**Can opencode use FDA Orange Book drug records?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FDA Orange Book drug records like any built-in tool.

**How much does FDA Orange Book drug records 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 FDA Orange Book drug records in opencode?**

No. Spiral runs FDA Orange Book drug records on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FDA Orange Book drug records in opencode?**

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

**Does opencode wait while FDA Orange Book drug records runs?**

FDA Orange Book drug records runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Do FDA records all update on the same schedule?**

No. FDA describes daily updates for its shortage database, weekly Enforcement Reports, and monthly Orange Book API updates. Those schedules describe the source publications, not a guarantee that every individual record changes that often.

**Does a record's status establish the current situation?**

The meaning depends on the record. A resolved shortage can still have unavailable presentations, orphan designation is separate from approval, and later FDA correspondence can change the issues described in a warning letter.

**Are these complete records of every product problem?**

FDA's shortage program focuses on medically necessary products. Its warning letters describe identified concerns, while FDA cautions that subsequent interactions can change their regulatory status.

**What date should I use when researching FDA actions?**

Choose the event you mean. Warning letter issue dates and posting dates are separate, while orphan database date searches distinguish designation dates from approval dates for the orphan indication.

**Can FDA material be reused in research and publications?**

FDA says its website text and graphics are generally public domain unless otherwise noted. openFDA uses a CC0 dedication by default, with exceptions for identified third-party material.

