[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [NIH Guide record index](https://spiral.ai/integrations/opencode/nih-guide-record-index)

# How to Use NIH Guide record index in opencode

Returns a paginated NIH Guide index with its cursor pinned to one publication. Use it to build a local inventory or compare snapshots when a keyword search would leave records out.

|  |  |
| --- | --- |
| Model | NIH Guide record index |
| 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 NIH Guide record index in opencode

- Use NIH Guide record index to import the available policy notices into this project's database, preserving document numbers and source links and completing pagination.
- Use NIH Guide record index to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NIH Guide record index and tell me what changed since last week.
- Check NIH Guide record index and summarize what you find in three bullet points.
- Pull the newest data from NIH Guide record index and give me the result as a table.

## How to set up NIH Guide record index 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 NIH Guide record index**: 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": "grants-nih-gov/opportunities/records_list",
    "input": {
      "type": "active"
    }
  }'
```

Then paste one of the prompts above: opencode finds NIH Guide record index on Spiral, shows the price and runs it.

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

## NIH Guide record index tools and prices

- [NIH Guide for Grants and Contracts · Records list](https://spiral.ai/tools/alexandria/grants-nih-gov/opportunities/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| type | active, activenosis, expired, expirednosis, notices | active | Index segment. Ignored when `cursor` is given (the cursor carries it). |
| cursor |  | — | `next_cursor` from the previous page. |
| page_size | 1 to 1000 | 1000 | page_size |

## What can you do with NIH Guide record index in opencode?

Build a searchable NIH policy notice index with links to the underlying documents. A coding agent can add imports, document views, and release digests to a research administration project.

### Prepare a research office briefing

Maintain a baseline notice index, check collection status, collect new releases, search for application-policy topics, and read relevant documents before drafting the office's daily briefing.

### Maintain an NCI notice watch

Build an initial inventory of National Cancer Institute notices, check for collection changes, and review newly released documents. Use focused searches to find notices relevant to cancer research administration.

### Review notices affecting planned applications

Keep an inventory of Guide notices relevant to an application shortlist. Check collection status, collect new releases, search for references to shortlisted announcements, and read the matching documents before updating the planning brief.

### Build a searchable public notice archive

Populate an archive from the record index and individual documents, then use collection status and release windows to guide refreshes. Add focused source searches for readers investigating specific NIH policy topics.

### Investigate earlier funding announcements

Search available expired announcements for a topic such as substance use disorder, retrieve relevant documents, and compare them with an index export. Describe the records retrieved without claiming complete historical coverage.

## Overview

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

## NIH Guide record index in other agents

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

## More opencode guides

- [NIH Guide notice releases](https://spiral.ai/integrations/opencode/nih-guide-notice-releases)
- [NIH Guide search](https://spiral.ai/integrations/opencode/nih-guide-search)
- [NIH Guide document details](https://spiral.ai/integrations/opencode/nih-guide-document-details)
- [NIH Guide source status](https://spiral.ai/integrations/opencode/nih-guide-source-status)
- [NHSBSA hospital medicines search](https://spiral.ai/integrations/opencode/nhsbsa-hospital-medicines-search)
- [NIH RePORTER grant details](https://spiral.ai/integrations/opencode/nih-reporter-grant-details)

## Questions about NIH Guide record index in opencode

**Can opencode use NIH Guide record index?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NIH Guide record index like any built-in tool.

**How much does NIH Guide record index 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 NIH Guide record index in opencode?**

No. Spiral runs NIH Guide record index on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NIH Guide record index in opencode?**

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

**Does opencode wait while NIH Guide record index runs?**

NIH Guide record index runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does the NIH Guide cover all current NIH funding opportunities?**

Grants.gov became the single official source for NIH grant opportunities in October 2025. The Guide continues to publish policy and informational notices, so Guide results alone cannot establish complete current funding coverage.

**How often does NIH publish Guide notices?**

NIH publishes the Guide daily and issues a weekly table of contents. That describes the publisher's schedule; it does not establish a guaranteed refresh interval for the API.

**Does a release-window query capture every change to an older notice?**

Alexandria describes its release collection as publisher-dated notices. Use it to collect releases within a period, without assuming it supplies a complete history of edits to previously published documents.

**How far back does the NIH Guide archive go?**

NIH provides a separate historical archive for 1970 through 1992. The existence of that archive does not verify that these endpoints expose those years; active and expired funding opportunities are also searchable on Grants.gov.

**Which announcement version should I use to check application requirements?**

NIH directs readers to the full announcement on Grants.gov and says to choose the most recently updated version when multiple document links appear. Use that document to confirm requirements found in Guide records.

