[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FEC campaign finance filings](https://spiral.ai/integrations/opencode/fec-campaign-finance-filings)

# How to Use FEC campaign finance filings in opencode

Returns records of statements, reports and notices filed with the FEC, with document descriptions and available document links. Use it to locate the disclosure behind a financial claim or examine a report's amendment history.

|  |  |
| --- | --- |
| Model | FEC campaign finance filings |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FEC campaign finance filings in opencode

- Use FEC campaign finance filings to find ActBlue's 2024 reports. Add an index of document descriptions, available links and amendment chains to this project's research notes.
- Use FEC campaign finance filings to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from FEC campaign finance filings and tell me what changed since last week.
- Check FEC campaign finance filings and summarize what you find in three bullet points.
- Pull the newest data from FEC campaign finance filings and give me the result as a table.

## How to set up FEC campaign finance filings 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 FEC campaign finance filings**: 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": "fec-gov/records/filings",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds FEC campaign finance filings on Spiral, shows the price and runs it.

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

## FEC campaign finance filings tools and prices

- [FEC · Filings](https://spiral.ai/tools/alexandria/fec-gov/records/filings) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100000 | 1 | 1-based page; pass the previous next_page with the same filters. |
| cycle | 1976 to 2100 | — | Two-year election cycle, named by its even year: 2024 covers 2023-2024. |
| per_page | 1 to 100 | 10 | Rows per page, 1 to 100. |
| form_type |  | — | FEC form, e.g. F3, F3X, F3P, F24, F5, F1, F2, F99. Pattern: ^[A-Za-z0-9]{2,6}$. |
| filer_name |  | — | Filer name search. Pattern: \S. |
| most_recent |  | — | Only the latest version of each report (excludes superseded amendments). |

## What can you do with FEC campaign finance filings in opencode?

Build a federal election research table from FEC disclosure records. A coding agent can organize candidate and committee identities alongside reported financial activity and the filings behind it.

### Explain the money behind a federal race

Identify the candidates and their committees, compare reported finances and contribution patterns, and explain campaign payments separately from independent spending. Use filings to document the reporting periods behind the explanation.

### Compare campaign finance across election cycles

Match candidates and committees across selected cycles, then compare financial summaries, contribution aggregates and spending records. Check the underlying filings so differences in reporting coverage remain visible.

### Check a campaign finance claim

Resolve the candidate or organization named in a claim, identify whether it concerns fundraising, campaign payments or independent spending, and retrieve the relevant records and filings.

### Build a classroom campaign finance case study

Use a real federal race to show how candidate registration, committee organization, fundraising summaries and spending disclosures fit together. Include contribution aggregates and original filings as evidence students can examine.

### Research payments to a public advertising business

Find reported payments to an advertising vendor, identify the paying committees and examine payment purposes. Compare campaign disbursements with independent expenditure disclosures without combining the categories.

### Review a committee's reported financial position

Identify the committee, examine its reported receipts, spending, cash and debts, and locate the reports supporting those figures. Use itemized disbursements to investigate particular expenses.

## Overview

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

## FEC campaign finance filings in other agents

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

## More opencode guides

- [FAA temporary flight restrictions](https://spiral.ai/integrations/opencode/faa-temporary-flight-restrictions)
- [FEC candidate search](https://spiral.ai/integrations/opencode/fec-candidate-search)
- [FAA temporary flight restriction details](https://spiral.ai/integrations/opencode/faa-temporary-flight-restriction-details)
- [FEC committee disbursements](https://spiral.ai/integrations/opencode/fec-committee-disbursements)
- [FAA airworthiness directive search](https://spiral.ai/integrations/opencode/faa-airworthiness-directive-search)
- [FEC committee financial totals](https://spiral.ai/integrations/opencode/fec-committee-financial-totals)

## Questions about FEC campaign finance filings in opencode

**Can opencode use FEC campaign finance filings?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FEC campaign finance filings like any built-in tool.

**How much does FEC campaign finance filings 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 FEC campaign finance filings in opencode?**

No. Spiral runs FEC campaign finance filings on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FEC campaign finance filings in opencode?**

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

**Does opencode wait while FEC campaign finance filings runs?**

FEC campaign finance filings runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does the FEC cover state and local elections?**

The FEC publishes federal campaign finance disclosures. State and local campaign finance reports may be available from state records offices.

**How fresh are FEC financial summaries?**

Committee financial summaries update nightly using electronic reports received or paper reports computerized through 7 p.m. the previous day. Their financial coverage ends with the latest report submitted.

**Do all committee totals cover the same dates?**

No. FEC cycle summaries combine reports over a two-year period, but each committee's totals end with its latest submitted report, so comparison periods can differ.

**Does the disbursement search include all outside spending?**

No. It excludes outside spending to support or oppose candidates, as well as allocated federal/nonfederal disbursements. Independent expenditure disclosures identify spending by the candidate supported or opposed.

**Are filings limited to financial reports?**

No. FEC filings also include statements and notices submitted by candidates and committees.

