Spiral gives your agent every tool with one account. Browse the tools →

opencode · Lead Gen

How to Use CSLB contractors by location in opencode

Find currently licensed California contractors by city or ZIP code. Use the results to build a local shortlist before checking individual license records.

Prompts to try with CSLB contractors by location in opencode

Copy an example into opencode, or ask in your own words.

Use CSLB contractors by location to retrieve licensed contractors in Sacramento and add the returned business results to a CSV in this project.

CSLB contractors by locationopencode
Try asking
  • Use CSLB contractors by location to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from CSLB contractors by location and tell me what changed since last week.

  • Check CSLB contractors by location and summarize what you find in three bullet points.

  • Pull the newest data from CSLB contractors by location and give me the result as a table.

How to set up CSLB contractors by location 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run CSLB contractors by location

    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": "cslb-ca-gov/licenses/find_contractors_by_location",
        "input": {
          "classification": "<classification>",
          "zip_code": "<zip_code>"
        }
      }'

Then paste one of the prompts above: opencode finds CSLB contractors by location on Spiral, shows the price and runs it.

CSLB contractors by location providers and prices

Spiral runs CSLB contractors by location through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
California CSLB contractor license lookup · Find contractors by location
cslb-ca-gov/licenses/find_contractors_by_location

What can you do with CSLB contractors by location in opencode?

Add CSLB contractor records to a procurement dashboard or vendor review report. A coding agent can turn license details, search results, public personnel affiliations, or complaint disclosures into reviewable tables in your project.

Build a local contractor shortlist

Find licensed businesses in Sacramento, inspect their license classifications, and review public complaint disclosures before requesting bids.

Find replacement maintenance vendors

Search the property's California city for alternatives, resolve business names, and compare license status, personnel affiliations, and disclosed complaints before replacing a vendor.

Compare remodel contractor candidates

Find businesses in San Diego and compare their recorded classifications, public license personnel, and complaint disclosures for a commercial remodeling bid list.

Clean a contractor business directory

Reconcile directory names against CSLB name matches and geographic results. Inspect detailed records and public personnel affiliations to review ambiguous business entries.

Prepare procurement research across cities

Build separate contractor candidate lists for Fresno and Sacramento, resolve named bidders, and assemble license, personnel, and complaint records for each city's procurement review.

Questions about CSLB contractors by location in opencode

Can opencode use CSLB contractors by location?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CSLB contractors by location like any built-in tool.

How much does CSLB contractors by location 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 CSLB contractors by location in opencode?

No. Spiral runs CSLB contractors by location on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up CSLB contractors by location in opencode?

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

Does opencode wait while CSLB contractors by location runs?

CSLB contractors by location runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What geographic area do CSLB contractor records cover?

These records concern California contractor licenses. CSLB's geographic search finds licensed contractors by California city or ZIP code.

How current are CSLB records?

License status can change at any time. CSLB also warns that workload can delay database entry, so a current lookup can still lack recently received information.

Does CSLB publish every complaint?

No. Public disclosure covers specified cases, including citations, accusation referrals, and qualifying serious investigations; disclosed allegations are not necessarily established findings.

Can a CSLB business name search have more results than the first page?

Yes. CSLB displays up to 50 business names at a time and provides another page when more matches exist.

Why might a full business name fail to find a CSLB record?

CSLB recommends starting with only the first 10 to 15 letters of the business name. If that finds nothing, its guidance is to try again with one or two fewer characters.

Get started

Start using CSLB contractors by location in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options