[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Public Purchase agency profile](https://spiral.ai/integrations/opencode/public-purchase-agency-profile)

# How to Use Public Purchase agency profile in opencode

Returns one agency’s identity, region, website, and Public Purchase page links. Use it to confirm the buyer behind an opportunity or turn an agency page URL into a structured agency record.

|  |  |
| --- | --- |
| Model | Public Purchase agency profile |
| 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 Public Purchase agency profile in opencode

- Use Public Purchase agency profile for https://www.publicpurchase.com/gems/bellevue,wa/buyer/public/home and add the returned agency identity and website links to this project’s buyer page.
- Use Public Purchase agency profile to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Public Purchase agency profile and tell me what changed since last week.
- Check Public Purchase agency profile and summarize what you find in three bullet points.
- Pull the newest data from Public Purchase agency profile and give me the result as a table.

## How to set up Public Purchase agency profile 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 Public Purchase agency profile**: 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": "publicpurchase-com/public-tenders/get_agency",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Public Purchase agency profile on Spiral, shows the price and runs it.

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

## Public Purchase agency profile tools and prices

- [Public Purchase · Get agency](https://spiral.ai/tools/alexandria/publicpurchase-com/public-tenders/get_agency) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Alternatively, a pasted agency page URL (https://www.publicpurchase.com/gems/bellevue,wa/buyer/public/home or .../gems/buyer/public/home?syndicatedOrgId=6252&region=UT). |

## What can you do with Public Purchase agency profile in opencode?

Build a procurement dashboard that connects Public Purchase regions and agency records to public open-bid summaries. A coding agent can populate the project with real buyers and organize available bid dates for review.

### Build a regional opportunity shortlist

Check whether Washington is represented, find relevant agencies, confirm each buyer’s identity and links, and collect its public open bids. Sort the resulting shortlist by closing date.

### Evaluate a new service territory

Check directory coverage for Alberta and British Columbia, identify listed agencies, and inspect their profiles and current bid summaries. Use the results to assess which buyers warrant further procurement research.

### Prepare a weekly procurement briefing

Use the available regions to organize a Washington and Oregon briefing, locate agencies, attach their official identities and links, and summarize their public open opportunities by deadline.

### Audit a procurement watchlist’s coverage

Compare a supplier’s Utah and Wyoming watchlist with the regions and agencies Public Purchase lists. Confirm agency records and check public open-bid listings to identify buyers missing from the watchlist.

### Create a bid deadline queue

Find Washington buyers, confirm their agency records, and arrange their public open bids by end date. Give an estimating team a queue of opportunities to review next.

### Flag changes in public bid listings

Resolve selected agencies and compare successive public bid summaries for changed closing dates or addendum dates. Flag changes for review without claiming to explain amendments whose documents are outside the public coverage.

## Overview

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

## Public Purchase agency profile in other agents

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

## More opencode guides

- [Public Purchase agency open bids](https://spiral.ai/integrations/opencode/public-purchase-agency-open-bids)
- [Public Purchase regions](https://spiral.ai/integrations/opencode/public-purchase-regions)
- [Public Purchase agency directory](https://spiral.ai/integrations/opencode/public-purchase-agency-directory)
- [SAM.gov active exclusions list](https://spiral.ai/integrations/opencode/sam-gov-active-exclusions-list)
- [PennBid past bids](https://spiral.ai/integrations/opencode/pennbid-past-bids)
- [SAM.gov business exclusion lookup](https://spiral.ai/integrations/opencode/sam-gov-business-exclusion-lookup)

## Questions about Public Purchase agency profile in opencode

**Can opencode use Public Purchase agency profile?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Public Purchase agency profile like any built-in tool.

**How much does Public Purchase agency profile 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 Public Purchase agency profile in opencode?**

No. Spiral runs Public Purchase agency profile on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Public Purchase agency profile in opencode?**

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

**Does opencode wait while Public Purchase agency profile runs?**

Public Purchase agency profile runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Public Purchase cover Canadian agencies?**

Its directory includes Canadian regions alongside US regions. Alberta, Ontario, and Northwest Territories appear in the geographic directory; inclusion describes Public Purchase’s directory coverage, not a count of all government buyers.

**What information appears in a public bid summary?**

Public Purchase’s public bid table shows the title, start date, end date, time left, and addendum information. These are listing summaries; full bid detail pages and documents are outside the documented public endpoint coverage.

**Can I retrieve closed bids or full solicitation documents?**

The documented public coverage excludes closed bids, full bid detail pages, documents, and bid search. The available bid listings focus on an individual agency’s open opportunities.

**Does Public Purchase guarantee that its information is current?**

Public Purchase’s buyer agreement expressly declines to guarantee timely or uninterrupted content. A current open-bid listing therefore carries no contractual guarantee of immediate updates.

**Does public visibility mean unrestricted reuse?**

Public Purchase’s user agreement requires prior express written permission to monitor, copy, or reproduce its pages or their content using automated devices or manual processes. Public visibility alone does not establish permission for those activities.

