[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Openmart brand search](https://spiral.ai/integrations/opencode/openmart-brand-search)

# How to Use Openmart brand search in opencode

Returns company records consolidated into one row per brand, with business descriptions, categories, websites, and store counts. Use it to review company accounts without counting each physical store as a separate business.

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

## Prompts to try with Openmart brand search in opencode

- Use Openmart brand search to retrieve 25 brand records and build a table in this project showing names, websites, categories, and reported store counts.
- Use Openmart brand search to retrieve the first 50 brand records, save the returned continuation cursor, and summarize which coffee businesses appear in that sample.
- Use Openmart brand search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Openmart brand search and tell me what changed since last week.
- Check Openmart brand search and summarize what you find in three bullet points.

## How to set up Openmart brand 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 Openmart brand 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": "openmart/companies/search",
    "input": {
      "search_param": {}
    }
  }'
```

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

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

## Openmart brand search tools and prices

- [Openmart · Brand search](https://spiral.ai/tools/alexandria/openmart/companies/search) (Alexandria): Up to $0.69836 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| pagination |  | — | limit (1 to 100, default 10) and encoded_cursor, copied from the previous page's encoded_cursor. Each brand returned costs 10 credits. |
| estimate_total |  | — | Add an approximate total match count as total. |

## What can you do with Openmart brand search in opencode?

Add business categories and reported store counts to an account review tool. Coding agents can turn Openmart records into project data and compare retrieved companies with accounts already in the repository.

### Prepare company research briefs

Turn known business websites or returned brand records into briefs covering business category, website, ownership type, and reported store count.

### Separate single-store and multi-store prospects

Use reported store counts to sort existing business accounts or a retrieved brand sample into different sales review queues.

### Add business context to CRM accounts

Look up existing account domains or review discovered brands before adding categories, ownership classifications, and store counts to internal account records.

### Review potential commercial partners

Compare known partner websites or a sample of returned brands by business type and store footprint to decide which companies merit further research.

### Maintain an internal competitor reference

Refresh known competitor websites or inspect returned brands for relevant competitors. Compare reported categories and store counts with previously saved results.

### Build a business category research sample

Classify a supplied domain list or a retrieved brand sample using Openmart's categories. Summarize the sample's composition without treating it as a census.

## Overview

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

## Openmart brand search in other agents

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

## More opencode guides

- [OpenSanctions entity search](https://spiral.ai/integrations/opencode/opensanctions-entity-search)
- [Openmart business lookup](https://spiral.ai/integrations/opencode/openmart-business-lookup)
- [OpenSanctions entity profile](https://spiral.ai/integrations/opencode/opensanctions-entity-profile)
- [Openmart local business search](https://spiral.ai/integrations/opencode/openmart-local-business-search)
- [OpenSanctions dataset details](https://spiral.ai/integrations/opencode/opensanctions-dataset-details)
- [OrbiSearch company profile](https://spiral.ai/integrations/opencode/orbisearch-company-profile)

## Questions about Openmart brand search in opencode

**Can opencode use Openmart brand search?**

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

**How much does Openmart brand search cost in opencode?**

Up to $0.69836 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 Openmart brand search in opencode?**

No. Spiral runs Openmart brand 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 Openmart brand search in opencode?**

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

**Does opencode wait while Openmart brand search runs?**

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

**Where does Openmart get its business information?**

Openmart identifies Google, Yelp, and Meta business profiles as sources. It also says its local business data comes from publicly available records.

**Does Openmart cover businesses outside the US?**

Yes. Its July 2026 expansion announcement describes 17 international countries across Europe, Canada, Australia, and New Zealand, with about 16.3 million business records at launch.

**How often does Openmart update its data?**

Openmart publishes two schedules: weekly record updates on its API product page and monthly database verification in its general FAQ. These statements do not establish that every business detail refreshes immediately after a change.

**Will every business have an email address or phone number?**

No. Openmart's documented brand response includes null business email and phone fields, so a matched company does not necessarily come with contact details.

**Does one response contain every matching business?**

Openmart documents limited result pages and cursors for retrieving subsequent pages. A returned page is a portion of the results, rather than a complete market count.

