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

opencode · Lead Gen

How to Use TheirStack company search in opencode

Returns matching company profiles and associated technology data. Use it to build a prospect list by company size, headquarters, or detected technology before investigating individual accounts.

Prompts to try with TheirStack company search in opencode

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

Use TheirStack company search to find US-headquartered companies with at least 500 employees that mention PostgreSQL. Add a table of returned company names, domains, industries, and employee counts to our account research page.

TheirStack company searchopencode
Try asking
  • Use TheirStack company search to retrieve profiles for stripe.com, shopify.com, and hubspot.com. Update our research fixture with the real returned company names, domains, industries, and employee counts.

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

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

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

How to set up TheirStack 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 TheirStack 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": "theirstack/companies/search",
        "input": {
          "company_domain_or": [
            "<company_domain_or>"
          ]
        }
      }'

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

TheirStack company search providers and prices

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

AlexandriaLead Gen
TheirStack · Company search
theirstack/companies/search

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Pagea number from 0

Zero-based page number.

Limit1 to 100

Companies per page, 1 to 100. Defaults to 25. Each company returned is billed.

Min employee counta number from 0

Companies with at least this many employees.

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

What can you do with TheirStack company search in opencode?

Build an account research view that combines company profiles with technologies and business topics found in job postings. A coding agent can add confidence, supporting job counts, and mention dates to the project's account records.

Build a prospect list with evidence

Find companies of a suitable size and headquarters location, examine their detected technologies for product compatibility, and review buying topics for relevant business priorities.

Prepare an account meeting brief

Combine a company's profile, detected tech stack, and hiring-derived business topics into a short briefing. Include confidence, supporting job counts, and mention dates when discussing the signals.

Prioritize existing business accounts

Review company size alongside technology compatibility and repeated buying-topic mentions. Use the evidence to choose which accounts deserve further research before a sales conversation.

Route accounts to the right specialist

Use company profiles to establish account context, technologies to identify integration expertise, and buying topics to suggest relevant consulting specialties. Keep each routing recommendation tied to returned evidence.

Compare technology-based market segments

Find companies mentioning a target technology, compare their profiles, then inspect their broader stacks and business topics. Summarize patterns within the returned sample without treating it as the entire market.

Review changes across an account watchlist

Compare saved company profiles, technology evidence, and buying topics with later results. Flag changes in detected mentions, confidence, or supporting job counts for an account review.

Questions about TheirStack company search in opencode

Can opencode use TheirStack company search?

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

How much does TheirStack company search cost in opencode?

Up to $5.2377 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 TheirStack company search in opencode?

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

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

Does opencode wait while TheirStack company search runs?

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

How broad is TheirStack's company coverage?

TheirStack reports 13 million company profiles across 238 countries. That describes the company database, rather than a guarantee that every company has technology or buying-signal data.

Where do TheirStack's company signals come from?

TheirStack collects job postings from job boards, applicant tracking systems, and company websites. Its technology and buying signals reflect what those postings mention.

How quickly does new hiring evidence appear?

TheirStack checks high-volume job sources every 10 minutes, but says job counts become more complete after about two to three days. New technology signals are processed every minute as postings arrive, which does not guarantee immediate discovery at every source.

Does a missing technology mean a company does not use it?

No. TheirStack can miss a technology when a company uses it without naming it in job postings, or when the company is not hiring. Recent mentions also carry more weight in its technology confidence scoring.

What does high confidence mean for a buying signal?

TheirStack defines high confidence as at least four jobs mentioning the topic in the last 90 days. This measures repeated hiring evidence for a topic, rather than a confirmed purchase.

Get started

Start using TheirStack 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