[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Companies House advanced company search](https://spiral.ai/integrations/opencode/companies-house-advanced-company-search)

# How to Use Companies House advanced company search in opencode

Returns matching company names, numbers, status, registered offices, incorporation dates, and SIC codes. Use it to build a shortlist that meets several business criteria.

|  |  |
| --- | --- |
| Model | Companies House advanced company 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 Companies House advanced company search in opencode

- Use Companies House advanced company search to find active companies with Tesco in their registered name, then add their names, numbers, and incorporation dates to a comparison table in this project.
- Use Companies House advanced company search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Companies House advanced company search and tell me what changed since last week.
- Check Companies House advanced company search and summarize what you find in three bullet points.
- Pull the newest data from Companies House advanced company search and give me the result as a table.

## How to set up Companies House advanced 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 Companies House advanced 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": "find-and-update-company-information-service-gov-uk/companies/advanced_search",
    "input": {
      "page": 1
    }
  }'
```

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

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

## Companies House advanced company search tools and prices

- [Companies House · Advanced search](https://spiral.ai/tools/alexandria/find-and-update-company-information-service-gov-uk/companies/advanced_search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 500 | 1 | One-based, 20 rows per full page; source stops at 10,000 results. |
| types |  | — | types |
| sic_code |  | — | Exactly one SIC code. The website does not accept lists. Pattern: ^[0-9]{5}$. |
| statuses |  | — | statuses |
| subtypes |  | — | subtypes |
| dissolved_to |  | — | YYYY-MM-DD. Dissolution bounds must be 2010 or later. |

## What can you do with Companies House advanced company search in opencode?

Build a company research view that connects registered identities to filings, charges, and published case records. A coding agent can organize the returned records in your project and link summaries to the underlying documents.

### Match an invoice to a legal entity

Compare registered names, company numbers, and addresses before assigning an invoice to a customer or supplier. Search historic dissolved records when the invoice names an older entity.

### Research a historic company name

Find current and dissolved companies associated with a business name, compare incorporation and dissolution dates, and read available filings to document name changes.

### Resolve duplicate corporate customer records

Compare similarly named companies using their registration numbers and registered details. Investigate old dissolved entities before combining records that share a trading name.

### Build a sector research shortlist

Find companies meeting a business classification and incorporation period, then compare their registered status, SIC codes, and filing deadlines.

### Prepare an acquisition research file

Resolve the target's legal identity and similarly named historic entities, then collect filings, charge particulars, and insolvency records. Include any identified corporate officer disqualification record for review.

## Overview

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

## Companies House advanced company search in other agents

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

## More opencode guides

- [Companies House PSC snapshot status](https://spiral.ai/integrations/opencode/companies-house-psc-snapshot-status)
- [Companies House alphabetical company search](https://spiral.ai/integrations/opencode/companies-house-alphabetical-company-search)
- [Colorado business search](https://spiral.ai/integrations/opencode/colorado-business-search)
- [Companies House charge details](https://spiral.ai/integrations/opencode/companies-house-charge-details)
- [Colorado business filing history](https://spiral.ai/integrations/opencode/colorado-business-filing-history)
- [Companies House company charges](https://spiral.ai/integrations/opencode/companies-house-company-charges)

## Questions about Companies House advanced company search in opencode

**Can opencode use Companies House advanced company search?**

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

**How much does Companies House advanced company 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 Companies House advanced company search in opencode?**

No. Spiral runs Companies House advanced 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 Companies House advanced company search in opencode?**

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

**Does opencode wait while Companies House advanced company search runs?**

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

**Does Companies House cover every UK business?**

No. Sole traders and ordinary partnerships are not required to register, so the register cannot provide a complete list of UK businesses.

**How fresh is Companies House information?**

Companies House describes its own API data as live and real-time. Its company and disqualified-director search disclaimer describes those results as extracts from registers updated regularly.

**Does Companies House independently verify filed information?**

Companies House says it does not independently verify the accuracy of information filed by companies. A published entry therefore should not be treated as an independently verified statement.

**How far back can I search dissolved companies?**

Advanced search shows companies dissolved since January 1, 2010. The separate historic dissolved search covers January 1, 1989, through December 31, 2009.

**Can another business copy public register information?**

Companies House says other organizations may copy information available on the public register. Organizations holding personal information are responsible for complying with data protection law.

