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

opencode · Lead Gen

How to Use Village company search in opencode

Find matching companies with names, domains, employee counts, industries, descriptions, and locations. Use it to build a shortlist by business criteria before researching individual companies.

Prompts to try with Village company search in opencode

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

Use Village company search to find software companies with 50 to 200 employees in California, then create a CSV of returned names, domains, industries, and locations.

Village company searchopencode
Try asking
  • Use Village company search to find fintech companies in London and populate this project's company directory with returned names, websites, and descriptions.

  • Use Village company search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Village company search and tell me what changed since last week.

  • Check Village company search and summarize what you find in three bullet points.

How to set up Village company 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.

    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 Village company 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": "village/companies/search",
        "input": {
          "prompt": "<prompt>"
        }
      }'

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

Village company search providers and prices

Spiral runs Village company search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
Village · Company search
village/companies/search

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Modeauto, lookup, simple, or complex

auto (default), lookup, simple or complex. complex searches take 20 to 60 seconds.

Limit1 to 10025

Companies per page, 1 to 100. Village's default is 25. The price scales with the companies returned.

Every API field of Village · Company search is on its tool page: open its card above.

What can you do with Village company search in opencode?

Build a company comparison table in your project using Village's business descriptions, domains, industries, and employee counts. A coding agent can turn returned company records into account pages or directory entries.

Prepare account briefs

Find companies matching a sales territory, then summarize each account's business description, industry, and employee count. For named accounts, start with their domains.

Build a competitor comparison

Discover companies in a business category or look up known competitors. Compare their descriptions, locations where returned, and employee counts in a research table.

Research potential partners

Create a shortlist of businesses in a target industry and region, or investigate named partners. Use company descriptions and websites to prepare a partnership review.

Fill company records in a CRM

Add company descriptions, industries, websites, and employee counts to existing account records. Search can supply candidate accounts; profile lookups can fill gaps for known domains.

Maintain a company directory

Populate a sector directory with company names, website links, and short descriptions. Discover entries through search or research a curated list of company domains.

Compare prospective vendors

Find suppliers in a business category or research an existing vendor shortlist. Organize their company descriptions, industries, and employee counts before a procurement review.

Questions about Village company search in opencode

Can opencode use Village company search?

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

How much does Village company search cost in opencode?

Up to $0.87295 per run. 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 Village company search in opencode?

No. Spiral runs Village company 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 Village company search in opencode?

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

Does opencode wait while Village company search runs?

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

How large is Village's company database?

Village advertises more than 52 million companies. That database size is not a promise that every query searches every company: its direct search documentation distinguishes network coverage from global coverage.

How fresh is Village's company data?

Village describes its database as refreshed quarterly and updated on demand. That describes its refresh approach, rather than guaranteeing that every company record reflects today's information.

Does every company have an industry classification?

No. Village reports 479 standardized industries covering 77.9% of companies, so an industry-based shortlist can leave out companies without that classification.

Where does Village get company information?

Village documents LinkedIn data supplied through HarvestAPI for company enrichment. When it does not recognize a domain, it can read the company's public website through ScrapingBee.

Are Village's company records guaranteed to be accurate?

No. Village's terms expressly decline to guarantee data accuracy, completeness, or reliability, including information made available through the service.

Get started

Start using Village company search 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