Spiral gives your agent every tool with one account. Browse the tools →

opencode · Public Records

How to Use CourtListener docket entries in opencode

Returns filing dates, entry descriptions, and document information for a selected federal case in RECAP. Use it to summarize motions, orders, and other recorded activity after identifying the case.

Prompts to try with CourtListener docket entries in opencode

Copy an example into opencode, or ask in your own words.

Use CourtListener docket entries for docket 4214664, National Veterans Legal Services Program v. United States, and render the returned dates and descriptions as a timeline in this project.

CourtListener docket entriesopencode
Try asking
  • Use CourtListener docket entries for docket 4214664, National Veterans Legal Services Program v. United States, and create a Markdown table of returned entries whose descriptions mention a motion.

  • Use CourtListener docket entries to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from CourtListener docket entries and tell me what changed since last week.

  • Check CourtListener docket entries and summarize what you find in three bullet points.

How to set up CourtListener docket entries 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run CourtListener docket entries

    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": "courtlistener-com/dockets/docket_entries",
        "input": {
          "docket_id": 1
        }
      }'

Then paste one of the prompts above: opencode finds CourtListener docket entries on Spiral, shows the price and runs it.

CourtListener docket entries providers and prices

Spiral runs CourtListener docket entries through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
CourtListener · Docket entries
courtlistener-com/dockets/docket_entries

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Docket IDa number from 1

CourtListener docket id, e.g. 17068597 (the number in courtlistener.com/docket/17068597/...).

Order byentry_date_filed asc, entry_date_filed desc, or score descentry_date_filed asc

order_by

Available onlyon or off

Only entries whose PDF is in the RECAP archive.

Document numbera number from 1

document_number

Every API field of CourtListener · Docket entries is on its tool page: open its card above.

What can you do with CourtListener docket entries in opencode?

Build a litigation research view that connects federal case metadata with recorded filing activity. A coding agent can turn CourtListener results into case tables and dated timelines in your project.

Antitrust reporting

Find federal antitrust cases involving Google or Apple, then review returned docket descriptions to identify motions and orders worth investigating.

Corporate litigation briefings

Identify cases involving a public company and build a briefing from case metadata and recorded filing activity. Keep allegations attributed to the filing descriptions.

Patent dispute monitoring

Locate patent disputes involving a business, then inspect docket entries for descriptions of claim-construction proceedings, motions, and orders.

Business bankruptcy research

Find a corporate bankruptcy case and organize the returned filing descriptions into a chronology for restructuring research.

Public-interest case timelines

Identify litigation brought by a public-interest organization and assemble a dated timeline from the available docket entries.

Changes to a business case watchlist

Search for newly returned cases involving selected organizations and compare available entries for cases already identified. Report changes found in RECAP without claiming complete court coverage.

Questions about CourtListener docket entries in opencode

Can opencode use CourtListener docket entries?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CourtListener docket entries like any built-in tool.

How much does CourtListener docket entries 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 CourtListener docket entries in opencode?

No. Spiral runs CourtListener docket entries on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up CourtListener docket entries in opencode?

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

Does opencode wait while CourtListener docket entries runs?

CourtListener docket entries runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which courts does RECAP cover?

RECAP collects records from the Supreme Court and federal district, appellate, and bankruptcy courts. Its federal docket collection does not establish coverage of state trial-court litigation.

Does RECAP contain every filing in a federal case?

CourtListener explicitly says its coverage of new PACER activity can be incomplete. Some courts provide only selected filing types through RSS, and others provide no RSS feed.

How current is the information for a particular case?

Freshness depends on whether CourtListener receives updates for that case. Its documentation says valid updates can be missed when no source supplies them, so an unchanged RECAP record does not prove there was no court activity.

Why might a filing PDF be missing?

CourtListener may receive a PDF before it receives the docket or docket-entry metadata needed to place it. That specific processing gap can leave a contributed document unavailable until the missing metadata arrives.

Is a docket description the same as the filing itself?

No. CourtListener separates docket metadata, docket entries, and documents; an entry description summarizes the associated documents. It does not supply the full arguments or reasoning contained in a motion or order.

Get started

Start using CourtListener docket entries in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options