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

Codex · Public Records

How to Use CourtListener docket search in Codex

Finds federal cases in RECAP and returns case metadata such as names, docket numbers, courts, and filing dates. Use it to identify the right lawsuit before examining its individual docket entries.

Prompts to try with CourtListener docket search in Codex

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

Use CourtListener docket search to find federal cases involving Microsoft filed since January 1, 2025, and add the returned case names, courts, docket numbers, and filing dates to a CSV in this project.

CourtListener docket searchCodex
Try asking
  • Use CourtListener docket search to locate United States v. Google LLC, case 1:20-cv-03010 in the District of Columbia, and create a case record in this project's research data.

  • Use CourtListener docket search to find cases involving Epic Games filed since January 1, 2020, and add a comparison table of the returned courts, docket numbers, and filing dates to the project.

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

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

How to set up CourtListener docket search in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 search

    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/search_dockets",
        "input": {
          "query": "<query>"
        }
      }'

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

CourtListener docket search providers and prices

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

AlexandriaPublic Records
CourtListener · Search dockets
courtlistener-com/dockets/search_dockets

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Order byscore desc, dateFiled desc, or dateFiled ascscore desc

Keyless feeds always return the newest matches first. score desc (default) and dateFiled desc are accepted; other orders need a CourtListener API token and fail with a non-retryable upstream_blocked error.

Docket IDa number from 1

CourtListener docket id for a single-docket lookup.

Party name exacton or off

Match party_name as an exact quoted phrase without stemming, so Bakers no longer matches Baker or Bake. Requires party_name.

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

What can you do with CourtListener docket search in Codex?

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 search in Codex

Can Codex use CourtListener docket search?

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

How much does CourtListener docket search cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use CourtListener docket search in Codex?

No. Spiral runs CourtListener docket search 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 search in Codex?

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

Does Codex wait while CourtListener docket search runs?

CourtListener docket search runs in the background. Codex 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 search in Codex

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

Paste this into Codex:

Set up Codex

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