[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Icypeas company count](https://spiral.ai/integrations/opencode/icypeas-company-count)

# How to Use Icypeas company count in opencode

Returns the number of companies matching a search in the Icypeas database. Use it to compare market segments before retrieving company records.

|  |  |
| --- | --- |
| Model | Icypeas company count |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | $0.013 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Icypeas company count in opencode

- Use Icypeas company count to compare software company segments in France and Germany, then add the returned counts to our market research report.
- Use Icypeas company count to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Icypeas company count and tell me what changed since last week.
- Check Icypeas company count and summarize what you find in three bullet points.
- Pull the newest data from Icypeas company count and give me the result as a table.

## How to set up Icypeas company count 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 Icypeas company count**: 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": "icypeas/companies/count",
    "input": {
      "query": {}
    }
  }'
```

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

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

## Icypeas company count tools and prices

- [Icypeas · Count companies](https://spiral.ai/tools/alexandria/icypeas/companies/count) (Alexandria): $0.013 per call.

## What can you do with Icypeas company count in opencode?

Build a company research feature that turns Icypeas results into searchable business records. A coding agent can connect counts, company pages, profile details, and shared inboxes to the project's existing company model.

### Build a reseller recruitment shortlist

Count a target company segment, retrieve candidates, resolve missing company-page URLs, and review their profiles. Find shared business inboxes for companies selected for a reseller discussion.

### Research potential suppliers

Size the supplier segment and retrieve matching businesses. Resolve company pages, compare profile details, and find shared inboxes for requesting product information.

### Plan a business event invitation list

Count companies in the intended audience and retrieve a shortlist. Review their company pages and specialties, then identify shared business addresses for an event inquiry.

### Find co-marketing partners

Compare the size of potential partner segments, retrieve candidates, resolve their company pages, and review their descriptions. Find shared inboxes for proposing a joint webinar or business collaboration.

### Compare market segments

Compare database match counts across company segments, then retrieve company records to inspect the businesses behind each count.

## Overview

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

## Icypeas company count in other agents

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

## More opencode guides

- [IP Australia trade mark search](https://spiral.ai/integrations/opencode/ip-australia-trade-mark-search)
- [Icypeas company page URL](https://spiral.ai/integrations/opencode/icypeas-company-page-url)
- [IP Australia trade mark details](https://spiral.ai/integrations/opencode/ip-australia-trade-mark-details)
- [Icypeas company profile](https://spiral.ai/integrations/opencode/icypeas-company-profile)
- [IP Australia advanced trade mark search](https://spiral.ai/integrations/opencode/ip-australia-advanced-trade-mark-search)
- [Icypeas company role emails](https://spiral.ai/integrations/opencode/icypeas-company-role-emails)

## Questions about Icypeas company count in opencode

**Can opencode use Icypeas company count?**

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

**How much does Icypeas company count cost in opencode?**

$0.013 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 Icypeas company count in opencode?**

No. Spiral runs Icypeas company count on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Icypeas company count in opencode?**

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

**Does opencode wait while Icypeas company count runs?**

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

**Does an Icypeas company count represent every business in a market?**

It counts companies matching a query in the Icypeas database. Use it as a database segment count, rather than a census of registered businesses.

**Where does the company profile information come from?**

Icypeas accepts a LinkedIn company-page URL and returns structured company details, including industry, headcount, headquarters, website, and specialties.

**What kind of email addresses does Icypeas domain search find?**

It targets shared role addresses such as contact@, sales@, and admin@. That makes it useful for reaching a business inbox without selecting an individual employee.

**How long can I pause between company search pages?**

Each lead database pagination token is valid for 15 minutes. Every returned page supplies a new token, so use the latest token for the next page.

**Should I search with a company name or its website?**

Icypeas recommends the website domain when you have it. Its documentation specifically says icypeas.com is more precise than Icypeas, although both work.

