[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FRED economic categories](https://spiral.ai/integrations/opencode/fred-economic-categories)

# How to Use FRED economic categories in opencode

Returns topic categories, their subcategories, and associated economic series. Use it to explore a subject such as employment or production before choosing a specific measure.

|  |  |
| --- | --- |
| Model | FRED economic categories |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FRED economic categories in opencode

- Use FRED economic categories to explore employment topics and show the categories most relevant to U.S. manufacturing employment.
- Use FRED economic categories to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from FRED economic categories and tell me what changed since last week.
- Check FRED economic categories and summarize what you find in three bullet points.
- Pull the newest data from FRED economic categories and give me the result as a table.

## How to set up FRED economic categories 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 FRED economic categories**: 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": "fred-stlouisfed-org/economic-data/category",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds FRED economic categories on Spiral, shows the price and runs it.

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

## FRED economic categories tools and prices

- [FRED (Federal Reserve Economic Data) · Category](https://spiral.ai/tools/alexandria/fred-stlouisfed-org/economic-data/category) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 1000 | 1 | Series page within the category (50 series per page); pass `next_page` from the previous result. |
| category_id | 0 to … | — | FRED category id (integer, e.g. 106 for GDP/GNP, 32991 for Money, Banking, & Finance; 0 or omitted for the root), a numeric string, or a pasted https://fred.stlouisfed.org/categories/{id} URL. |

## What can you do with FRED economic categories in opencode?

Check the economic definitions behind an analysis before interpreting its results. A coding agent can inspect FRED series, reporting periods, and publishing agencies to explain whether the selected indicators answer the research question.

### Manufacturing conditions briefing

Find production and employment indicators through topics, tags, publications, or publishing agencies. Compare their histories with steel producer price indexes, keeping each measure's units and reporting frequency visible.

### Steel benchmark selection

Explore steel measures through keyword searches, product topics, tags, and the Producer Price Index release. Compare definitions and available histories before choosing a benchmark for cold-rolled sheet or another specific product.

### Classroom comparison of economic measures

Find unemployment, output, and steel price indicators by topic, keywords, or tags. Use their definitions and observations to explain how a percentage, an output measure, and a producer price index answer different questions.

### Economic reporting coverage audit

Check whether a proposed manufacturing brief has suitable indicators and sufficient history. Explore candidate series through FRED's discovery routes, inspect their definitions and observation boundaries, and identify steel indexes whose data stop before the report period.

## Overview

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

## FRED economic categories in other agents

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

## More opencode guides

- [FRED data sources](https://spiral.ai/integrations/opencode/fred-data-sources)
- [FRED economic data tags](https://spiral.ai/integrations/opencode/fred-economic-data-tags)
- [FRED child categories](https://spiral.ai/integrations/opencode/fred-child-categories)
- [FRED economic data values](https://spiral.ai/integrations/opencode/fred-economic-data-values)
- [FRED category tags](https://spiral.ai/integrations/opencode/fred-category-tags)
- [FRED economic release calendar](https://spiral.ai/integrations/opencode/fred-economic-release-calendar)

## Questions about FRED economic categories in opencode

**Can opencode use FRED economic categories?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FRED economic categories like any built-in tool.

**How much does FRED economic categories 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 FRED economic categories in opencode?**

No. Spiral runs FRED economic categories on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FRED economic categories in opencode?**

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

**Does opencode wait while FRED economic categories runs?**

FRED economic categories runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does FRED cover only the United States?**

FRED includes international, national, and regional economic series. Its database draws from more than 100 public and proprietary sources.

**How fresh is FRED's data?**

FRED updates its database daily, but individual indicators follow their own reporting frequencies. For example, UNRATE is monthly, while GDPC1 is quarterly.

**Can previously published values change?**

Yes. FRED displays the latest version of a series, and replaced versions are archived in ALFRED, so today's historical values can differ from earlier publications.

**Does every series continue through the latest reporting period?**

No. For example, the hot-rolled steel sheet and strip index WPU10170301 has a final observation in February 2022, even though its page displays a future release date.

**How does FRED check data accuracy?**

When a release is added or updated, FRED compares it with data already published by the same source. Its checks also flag unexpected values and verify reported frequency and date formats.

