[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [PennBid past bids](https://spiral.ai/integrations/codex/pennbid-past-bids)

# How to Use PennBid past bids in Codex

Returns closed PennBid opportunity listings, including their closing times, status codes, and public-award flags. Use it to research previous solicitations and identify records with publicly posted awards.

|  |  |
| --- | --- |
| Model | PennBid past bids |
| 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 PennBid past bids in Codex

- Use PennBid past bids to find York County solicitations that closed during 2025 and create a CSV export in this project with their titles, closing dates, and public-award flags.
- Use PennBid past bids to find Yeadon Borough sewer projects and build a report in this repository showing titles, agency references, closing dates, and listing links.
- Use PennBid past bids to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from PennBid past bids and tell me what changed since last week.
- Check PennBid past bids and summarize what you find in three bullet points.

## How to set up PennBid past bids in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
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.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run PennBid past bids**: 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": "pennbid-bonfirehub-com/public-tenders/list_past_opportunities",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: Codex finds PennBid past bids on Spiral, shows the price and runs it.

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

## PennBid past bids tools and prices

- [PennBid (Bonfire) public procurement portal · List past opportunities](https://spiral.ai/tools/alexandria/pennbid-bonfirehub-com/public-tenders/list_past_opportunities) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Case-insensitive substring matched against the project name and the reference (awarding agency / county) text. |
| limit | 1 to 200 | 50 | Page size applied locally (default 50). |
| offset | 0 to … | 0 | Zero-based position in the filtered, sorted list; pass `next_offset` from the previous page. |
| awarded |  | — | true keeps only projects with a public award (IsPublicAward), false only those without. |
| closed_to |  | — | Keep opportunities that closed at or before this UTC instant. A date alone means the end of that day (23:59:59Z). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$. |
| status_id | 0 to … | — | Keep only this Bonfire ProjectStatusID (3, 4 and 5 observed on past projects). |

## What can you do with PennBid past bids in Codex?

Build a procurement view that combines PennBid project names, agency references, closing times, and public-award flags. A coding agent can add open-bid searches, past-bid research, and individual listing checks to the project's existing interface.

### Prepare an agency procurement brief

Combine an agency's open solicitations with its past listings, then check selected projects individually. Give the team a dated list of current work and previous procurement activity.

### Research recurring purchases

Compare current and previous listings for work such as paving, sewer replacement, or treatment chemicals. Check individual records before describing similar titles as repeat purchases.

### Investigate possible rebids

Compare open project names with closed solicitations from the same agency. Review the corresponding listing records to build a shortlist of possible rebids for a procurement analyst.

### Map a contractor's local market

Build a county-level view of current and past public solicitations in a contractor's trade. Use agency references, project names, closing dates, and individual listing checks to organize the research.

### Build a public-award review queue

Collect closed listings with public-award flags and check selected records. Produce links for researchers to review the award notices on PennBid.

## Overview

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

## PennBid past bids in other agents

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

## More Codex guides

- [PennBid opportunity lookup](https://spiral.ai/integrations/codex/pennbid-opportunity-lookup)
- [Public Purchase agency directory](https://spiral.ai/integrations/codex/public-purchase-agency-directory)
- [PennBid open bids](https://spiral.ai/integrations/codex/pennbid-open-bids)
- [Public Purchase agency open bids](https://spiral.ai/integrations/codex/public-purchase-agency-open-bids)
- [PNCP tender search](https://spiral.ai/integrations/codex/pncp-tender-search)
- [Public Purchase agency profile](https://spiral.ai/integrations/codex/public-purchase-agency-profile)

## Questions about PennBid past bids in Codex

**Can Codex use PennBid past bids?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run PennBid past bids like any built-in tool.

**How much does PennBid past bids 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 PennBid past bids in Codex?**

No. Spiral runs PennBid past bids on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up PennBid past bids in Codex?**

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

**Does Codex wait while PennBid past bids runs?**

PennBid past bids runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Does PennBid cover only Pennsylvania?**

PennBid's current service-area page lists Delaware, Maryland, New York, Ohio, and Pennsylvania. These tools cover public listings on PennBid's Bonfire portal, without establishing complete procurement coverage for those states.

**Do these records include the full bid documents?**

The data provider reads listing records and explicitly excludes the opportunity detail page. PennBid places supporting documents and requested submission information on that separate details screen.

**When does an opportunity become closed?**

PennBid automatically closes the bidding period when the project's due date and time pass. Closing ends the period in which bidders can submit or alter their submissions.

**How soon after closing are bid results public?**

PennBid leaves the timing and content of public bid results to the agency manager. There is no single publication schedule that applies to every closed solicitation.

**Does a missing public award mean the project was never awarded?**

PennBid's awarding guide tells agencies to select Post Award Statement Publicly to publish an award statement. A listing without a public award therefore does not prove that the agency made no award.

