[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [OregonBuys bid search](https://spiral.ai/integrations/opencode/oregonbuys-bid-search)

# How to Use OregonBuys bid search in opencode

Returns matching solicitation listings with descriptions, buyers, opening dates, and statuses. Use it to investigate a purchasing agency or service category, including closed solicitations.

|  |  |
| --- | --- |
| Model | OregonBuys bid search |
| 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 OregonBuys bid search in opencode

- Use OregonBuys bid search to find Department of Transportation solicitations mentioning maintenance and add the returned records to our internal review page.
- Use OregonBuys bid search to find closed Clackamas County solicitations mentioning photography and create a comparison table in the project's research view.
- Use OregonBuys bid search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OregonBuys bid search and tell me what changed since last week.
- Check OregonBuys bid search and summarize what you find in three bullet points.

## How to set up OregonBuys bid search 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 OregonBuys bid search**: 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": "oregonbuys-gov/public-tenders/search_bids",
    "input": {
      "buyer": "<buyer>"
    }
  }'
```

Then paste one of the prompts above: opencode finds OregonBuys bid search on Spiral, shows the price and runs it.

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

## OregonBuys bid search tools and prices

- [OregonBuys · Search bids](https://spiral.ai/tools/alexandria/oregonbuys-gov/public-tenders/search_bids) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| buyer |  | — | Buyer name text. |
| match | all, any | all | `all` (default): every filled criterion must match (the form's default). `any`: the site's Any/OR switch; the keyword is copied into the description, item description, bid number and alternate id fields, and a row matches when ANY filled criterion matches - so combining `any` with `status` or `type_code` returns every bid with that status or type, not the intersection. Use `any` for keyword-only quick searches and `all` when combining filters. |
| cursor |  | — | Row offset of the page to return (a multiple of 25), as given by the previous answer's `next_cursor`. Omit for the first page. The same criteria must be passed again; the site's session is re-established on every call. Pattern: ^[0-9]{1,6}$. |
| status | 2BA, 2BCL, 2BE, 2BIA, 2BO, 2BPO, 2BS | — | Status code: 2BA Approved, 2BCL Closed, 2BE Evaluated, 2BIA Intent To Award, 2BO Opened, 2BPO Bid to PO, 2BS Sent (open for responses). |
| keyword |  | — | Free text matched against the solicitation description (the form's Description field). With `match: any` it is also applied to the item description, bid number and alternate id, as the site's quick search does. |
| type_code | NN, SS, RI, IB, EP, GS, SP, 3Q, RP, RQ | — | Solicitation type: NN Other Public Notice, SS Sole Source Notice, RI Request for Information, IB Invitation to Bid, EP Emergency Procurement, GS GSA Notice, SP Special Procurement Notice, 3Q Three Quote Process (Closed), RP Request for Proposal, RQ Request for Quote. |

## What can you do with OregonBuys bid search in opencode?

Build an internal Oregon procurement review board from solicitation numbers, descriptions, agencies, and opening dates. Use OregonBuys records to populate the project and give reviewers a path to the selected bid's public documents.

### Daily opportunity review

Review current OregonBuys postings, narrow the list to relevant services, and inspect the shortlisted solicitations. Give the procurement team a brief showing the agency, description, opening date, and documents to review.

### Bid deadline planning

Build a review calendar from OregonBuys opening dates. Find relevant postings, inspect their details, and prioritize the solicitations that need a decision soonest.

### Agency pursuit brief

Prepare a procurement brief for opportunities from the Department of Transportation or Clackamas County. Combine listing descriptions and dates with the scope and attachment links from selected solicitations.

### Service fit screening

Screen OregonBuys postings for photography, janitorial work, or equipment supply. Use descriptions to shortlist candidates, then inspect line items and NIGP classifications to decide which deserve response preparation.

### Earlier solicitation research

Find closed OregonBuys solicitations for a service your business supplies. Compare agency descriptions and inspect selected records to understand how earlier requirements were described.

## Overview

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

## OregonBuys bid search in other agents

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

## More opencode guides

- [OregonBuys bid details](https://spiral.ai/integrations/opencode/oregonbuys-bid-details)
- [OregonBuys open bids](https://spiral.ai/integrations/opencode/oregonbuys-open-bids)
- [OpenSecrets race top contributors](https://spiral.ai/integrations/opencode/opensecrets-race-top-contributors)
- [PNCP tender details](https://spiral.ai/integrations/opencode/pncp-tender-details)
- [OpenSecrets race fundraising](https://spiral.ai/integrations/opencode/opensecrets-race-fundraising)
- [PNCP tender search](https://spiral.ai/integrations/opencode/pncp-tender-search)

## Questions about OregonBuys bid search in opencode

**Can opencode use OregonBuys bid search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run OregonBuys bid search like any built-in tool.

**How much does OregonBuys bid search 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 OregonBuys bid search in opencode?**

No. Spiral runs OregonBuys bid 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 OregonBuys bid search in opencode?**

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

**Does opencode wait while OregonBuys bid search runs?**

OregonBuys bid search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does OregonBuys cover every Oregon public purchasing opportunity?**

It covers state agencies and some local agencies. ODOT directs highway and bridge construction opportunities to eBids, so an OregonBuys review alone does not cover that purchasing channel.

**How many solicitation results come back at once?**

OregonBuys uses fixed pages of 25 solicitation results. Continue through the available pages when reviewing a broad search or the current Open Bids list.

**Can I research closed solicitations?**

Yes. OregonBuys supports searches for both open and closed solicitations, which makes it useful for reviewing earlier purchasing descriptions and statuses.

**Can a solicitation change after it appears?**

Yes. Agencies must post official ITB addendum notices through OregonBuys. A review made when a solicitation first appears can therefore miss later changes.

**Does an Open Bids listing always invite competitive bids?**

No. OregonBuys lists informational notices too: solicitation S-10700-00018405 explicitly begins with “NOT A BID.” Read the notice's purpose before treating it as a response opportunity.

