[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Texas SmartBuy award search](https://spiral.ai/integrations/opencode/texas-smartbuy-award-search)

# How to Use Texas SmartBuy award search in opencode

Finds purchase-order awards posted without a solicitation, including vendors, award dates, and values. Use it to research recorded purchases within that coverage boundary.

|  |  |
| --- | --- |
| Model | Texas SmartBuy award search |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Texas SmartBuy award search in opencode

- Use Texas SmartBuy award search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Texas SmartBuy award search and tell me what changed since last week.
- Check Texas SmartBuy award search and summarize what you find in three bullet points.
- Pull the newest data from Texas SmartBuy award search and give me the result as a table.
- Check Texas SmartBuy award search every morning and tell me only when something changed.

## How to set up Texas SmartBuy award 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 Texas SmartBuy award 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": "txsmartbuy-gov/public-tenders/search_awards",
    "input": {
      "page": 1
    }
  }'
```

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

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

## Texas SmartBuy award search tools and prices

- [Texas SmartBuy ESBD · Search awards](https://spiral.ai/tools/alexandria/txsmartbuy-gov/public-tenders/search_awards) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 10000 | 1 | 1-based page; 24 rows per page (fixed by the site). Use next_page from the previous call. |
| keyword |  | — | Free-text keyword. Bare keyword searches over the whole ESBD can take a minute upstream; combine with status, agency_number or dates when possible. |
| nigp_code |  | — | NIGP class (3 digits) or class-item (5 digits) code, e.g. 925 or 92500 (see list_nigp_codes). Pattern: ^[0-9]{3}([0-9]{2})?$. |
| po_number |  | — | Exact purchase order number, e.g. 27P0001913. |
| award_type |  | — | Site award-type code as returned in award_type_code (e.g. 5 Other). Pattern: ^[0-9]{1,2}$. |
| awarded_to |  | — | Award-date upper bound, YYYY-MM-DD. Requires awarded_from. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## What can you do with Texas SmartBuy award search in opencode?

Build a Texas procurement or grant research report from ESBD records. A coding agent can organize buyer identities, commodity codes, notices, awards, and funding details in the project’s reporting workflow.

### Build a bid shortlist

Identify the buyer and commodity category, find relevant solicitations, review their scope, and compare related purchase-order awards before deciding which bids deserve attention.

### Prepare a public-buyer research brief

Resolve a Texas agency’s identity, organize its procurement notices by commodity code, and summarize recorded purchases alongside current requirements.

### Assess a new service category

Check which commodity codes match a proposed service, identify public buyers, and compare solicitation requirements with relevant award descriptions and vendors.

### Publish a procurement research bulletin

Organize notices and recorded awards by buyer and commodity category, then add scope summaries, deadlines, vendors, and links to supporting records.

## Overview

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

## Texas SmartBuy award search in other agents

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

## More opencode guides

- [Texas SmartBuy award details](https://spiral.ai/integrations/opencode/texas-smartbuy-award-details)
- [Texas SmartBuy commodity codes](https://spiral.ai/integrations/opencode/texas-smartbuy-commodity-codes)
- [Texas SmartBuy agency directory](https://spiral.ai/integrations/opencode/texas-smartbuy-agency-directory)
- [Texas SmartBuy grant details](https://spiral.ai/integrations/opencode/texas-smartbuy-grant-details)
- [Texas Comptroller sales tax permit search](https://spiral.ai/integrations/opencode/texas-comptroller-sales-tax-permit-search)
- [Texas SmartBuy grant search](https://spiral.ai/integrations/opencode/texas-smartbuy-grant-search)

## Questions about Texas SmartBuy award search in opencode

**Can opencode use Texas SmartBuy award search?**

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

**How much does Texas SmartBuy award 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 Texas SmartBuy award search in opencode?**

No. Spiral runs Texas SmartBuy award 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 Texas SmartBuy award search in opencode?**

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

**Does opencode wait while Texas SmartBuy award search runs?**

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

**What does the award search cover?**

It covers the ESBD section labeled Awards No Solicitations. An empty result there does not establish that an agency has never awarded a contract.

**How many solicitation results fit on a page?**

The documented solicitation search response uses pages of 24 results and includes pagination metadata. A single page should not be treated as the complete search.

**What timing information does ESBD show?**

Solicitation results show a response due date and time, a posting date, and a last-updated timestamp. These distinguish the submission deadline from when the notice was posted or changed.

**What can I learn from a grant’s details?**

Published grant details can include eligibility, funding amounts, and an agency contact. Use those details to assess the opportunity beyond its search listing.

**How are Texas procurement commodity codes structured?**

NIGP codes use three digits for the general class and two more for the item. The class identifies a broader category than the full class-item code.

