How to Use SEC EDGAR filing sections in opencode
Returns named sections of a 10-K or 10-Q as plain text. Use it to read risk factors or management's discussion without searching through the entire report.
Prompts to try with SEC EDGAR filing sections in opencode
Copy an example into opencode, or ask in your own words.
Use SEC EDGAR filing sections to retrieve Apple's latest 10-K risk factors and add a readable section view to this project.
Use SEC EDGAR filing sections to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from SEC EDGAR filing sections and tell me what changed since last week.
Check SEC EDGAR filing sections and summarize what you find in three bullet points.
Pull the newest data from SEC EDGAR filing sections and give me the result as a table.
How to set up SEC EDGAR filing sections 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 SEC EDGAR filing sections
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": "sec-gov/filings/sections", "input": { "cik": 1 } }'
Then paste one of the prompts above: opencode finds SEC EDGAR filing sections on Spiral, shows the price and runs it.
SEC EDGAR filing sections providers and prices
Spiral runs SEC EDGAR filing sections 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 |
|---|---|---|---|
| Cik | a number | SEC Central Index Key, with or without leading zeros. | |
| Form | 10-K or 10-Q | 10-K | form |
| Max chars | 100 to 2000000 | 60000 | Per-section text cap. |
Every API field of SEC EDGAR · Sections is on its tool page: open its card above.
What can you do with SEC EDGAR filing sections in opencode?
Build research views for reported product sales, filing passages, or ownership-index publication checks. Coding agents can turn SEC EDGAR results into tables and comparison views in your project.
Prepare a pharmaceutical earnings brief
Retrieve Merck's reported product revenue, find relevant disclosures, and read management's discussion. Build a brief that separates sales figures from management's explanation.
Research licensing disclosures
Search Bristol Myers Squibb filings for licensing language, retrieve available product revenue, and read the report sections explaining the business. Assemble evidence for a licensing review.
Compare reported product performance
Collect available product revenue for Merck and Bristol Myers Squibb. Use filing search and report sections to investigate the disclosures behind differences in reported performance.
Check a product-sales claim
Test a claim about a public company's product sales against reported revenue and the filing's wording. Give an editor the supporting disclosures and any unresolved differences.
More on SEC EDGAR filing sections and opencode
Overview
SEC EDGAR filing sections in other agents
Questions about SEC EDGAR filing sections in opencode
Can opencode use SEC EDGAR filing sections?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run SEC EDGAR filing sections like any built-in tool.
How much does SEC EDGAR filing sections 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 SEC EDGAR filing sections in opencode?
No. Spiral runs SEC EDGAR filing sections on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up SEC EDGAR filing sections in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while SEC EDGAR filing sections runs?
SEC EDGAR filing sections runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does EDGAR include every filing submitted to the SEC?
Some filings are submitted on paper and are unavailable through EDGAR. Electronic results therefore do not represent every document submitted to the SEC.
When are daily filing indexes published?
The SEC starts updating daily indexes at about 10 p.m. Eastern each filing day. Publication usually takes a few hours, so 10 p.m. is the start of processing.
How far back does EDGAR full-text search reach?
Full-text search covers electronic filings submitted since 2001. That is the search coverage boundary, rather than a guarantee that every extraction reaches the same historical depth.
Does a correction replace the original filing?
Usually both remain available. The SEC says an original filing with an error and its corrective amendment typically stay on EDGAR, preserving the disclosure history.
Can I reuse public EDGAR filing content?
Yes. The SEC explicitly permits access to and reuse of EDGAR public filing content.
Start using SEC EDGAR filing sections 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


