How to Use Oregon contractor search in opencode
Finds matching licenses in Oregon's active contractor and trade-license records. Use it to build a local contractor shortlist or resolve a business name before reviewing an individual license.
Prompts to try with Oregon contractor search in opencode
Copy an example into opencode, or ask in your own words.
Use Oregon contractor search to find Portland businesses with residential general contractor endorsements, then add a review table of returned business names and license numbers to this project.
Use Oregon contractor search to find BCD electrical contractor businesses in Salem and populate this project's vendor comparison view with the returned license credentials.
Use Oregon contractor search for Hoffman Construction and add the matching business names, locations and license numbers to a review document in this project.
Use Oregon contractor search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Oregon contractor search and tell me what changed since last week.
How to set up Oregon contractor search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Oregon contractor 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": "data-oregon-gov/licenses/search_contractors", "input": { "zip": "<zip>" } }'
Then paste one of the prompts above: opencode finds Oregon contractor search on Spiral, shows the price and runs it.
Oregon contractor search providers and prices
Spiral runs Oregon contractor search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 100 | 25 | Licences per page. |
| Source | ccb or bcd | ccb |
|
Every API field of Oregon Open Data Portal · Search contractors is on its tool page: open its card above.
What can you do with Oregon contractor search in opencode?
Build a contractor review table that matches Oregon businesses to published license credentials and expiration dates. A coding agent can add CCB endorsements, bond and insurance information to a project's vendor records while keeping BCD trade credentials separate.
Prepare a contractor shortlist
Find construction businesses in Portland or Bend, then review their published endorsements and license expiration dates before requesting bids.
Review vendor onboarding records
Match a contractor's business name to its Oregon license and prepare a review sheet with the published license, bond and liability insurance information.
Plan renewal follow-ups
Identify upcoming expiration dates in the published records for a contractor roster so procurement staff can request updated documentation.
Review residential and commercial endorsements
Compare the CCB endorsements published for shortlisted businesses and show which records list residential or commercial work.
Check trade contractor credentials
Find electrical or plumbing contractor businesses in BCD records and examine their published license types and expiration dates.
Resolve similar business names
Compare matching business names and locations, then use the selected license number to keep a bid review attached to the intended contractor.
More on Oregon contractor search and opencode
Overview
Oregon contractor search in other agents
Questions about Oregon contractor search in opencode
Can opencode use Oregon contractor search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Oregon contractor search like any built-in tool.
How much does Oregon contractor 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 Oregon contractor search in opencode?
No. Spiral runs Oregon contractor 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 Oregon contractor search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Oregon contractor search runs?
Oregon contractor search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Which Oregon licenses does the source cover?
It covers CCB active contractor licenses and Building Codes Division active trade licenses. BCD includes electrical, plumbing, boiler, elevator, prefab and manufactured dwelling licenses, plus inspector code certifications.
How fresh are the license records?
The provider documents daily updates for CCB and monthly updates for Building Codes Division. BCD records therefore have a longer refresh interval than CCB records.
Can I retrieve an expired or suspended license?
These tools use active-license datasets. The provider states that an expired or suspended Oregon license comes back as not found, so the results are not a complete licensing history.
Does an old registration date prove continuous licensing?
No. CCB defines its original registration date as the first license term regardless of subsequent activity, so that date alone cannot establish uninterrupted licensing.
Why might a contractor's business name return no match?
CCB specifically warns that spelling and punctuation differences can hide a name match. It recommends using the CCB license number for the most accurate lookup or trying a shorter business name.
Start using Oregon contractor search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


