How to Use FRED source releases in opencode
Returns publications associated with a data-producing institution. Use it to explore what an agency publishes before selecting a release and its economic series.
Prompts to try with FRED source releases in opencode
Copy an example into opencode, or ask in your own words.
Use FRED source releases to list publications available from the U.S. Bureau of Economic Analysis and identify those relevant to national output.
Use FRED source releases to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FRED source releases and tell me what changed since last week.
Check FRED source releases and summarize what you find in three bullet points.
Pull the newest data from FRED source releases and give me the result as a table.
How to set up FRED source releases in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run FRED source releases
One request; the result comes back by polling or a webhook.
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/source", "input": { "source_id": 1 } }'
Then paste one of the prompts above: opencode finds FRED source releases on Spiral, shows the price and runs it.
FRED source releases providers and prices
Spiral runs FRED source releases through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Source ID | a number from 1 | FRED source id (e.g. 18 U.S. Bureau of Economic Analysis, 22 U.S. Bureau of Labor Statistics), a numeric string, or a pasted https://fred.stlouisfed.org/source?soid={id} URL. |
Every API field of FRED (Federal Reserve Economic Data) · Source is on its tool page: open its card above.
What can you do with FRED source releases 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.
Procurement research report
Trace steel index results to the publishing agency and statistical release. Explain the selected measure's definition and historical changes alongside its source citation.
Publishing agency comparison
Compare the publications available from the Bureau of Economic Analysis and Bureau of Labor Statistics. Inspect the series in selected releases to understand which agency publishes the measure a research question needs.
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.
Inflation publication comparison
Find the agencies and publications behind consumer and producer inflation measures. Compare candidate series definitions discovered through releases, keywords, and tags before deciding which measure belongs in an explanation.
More on FRED source releases and opencode
Overview
FRED source releases in other agents
Questions about FRED source releases in opencode
Can opencode use FRED source releases?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FRED source releases like any built-in tool.
How much does FRED source releases 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 source releases in opencode?
No. Spiral runs FRED source releases 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 source releases in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while FRED source releases runs?
FRED source releases 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.
Start using FRED source releases in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


