[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Village company search](https://spiral.ai/integrations/opencode/village-company-search)

# 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.

|  |  |
| --- | --- |
| Model | Village company search |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | Up to $0.87295 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Village company search in opencode

- 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.
- 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.

```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 Village company 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": "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.

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

## Village company search tools and prices

- [Village · Company search](https://spiral.ai/tools/alexandria/village/companies/search) (Alexandria): Up to $0.87295 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| mode | auto, lookup, simple, complex | — | auto (default), lookup, simple or complex. complex searches take 20 to 60 seconds. |
| limit | 1 to 100 | 25 | Companies per page, 1 to 100. Village's default is 25. The price scales with the companies returned. |
| cursor |  | — | pagination.cursor from the previous page. |
| prompt |  | — | Plain-language search, such as "B2B SaaS companies with 50-200 employees in California". |
| filters |  | — | Structured filters, such as { industry, companySize, country, city, fundingStage, foundedAfter, hiring }. See Village's search-companies reference for every key. |

## 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.

## Overview

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

## Village company search in other agents

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

## More opencode guides

- [Village company profile](https://spiral.ai/integrations/opencode/village-company-profile)
- [Village email finder](https://spiral.ai/integrations/opencode/village-email-finder)
- [Village LinkedIn profile](https://spiral.ai/integrations/opencode/village-linkedin-profile)
- [Village people search](https://spiral.ai/integrations/opencode/village-people-search)
- [Village LinkedIn posts](https://spiral.ai/integrations/opencode/village-linkedin-posts)
- [Village reverse email lookup](https://spiral.ai/integrations/opencode/village-reverse-email-lookup)

## 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.

