[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Alibaba product search](https://spiral.ai/integrations/opencode/alibaba-product-search)

# How to Use Alibaba product search in opencode

Returns wholesale offers with product links, advertised price text, minimum orders, and supplier information. Use it to find candidates before examining individual listings.

|  |  |
| --- | --- |
| Model | Alibaba product search |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Alibaba product search in opencode

- Use Alibaba product search for '11oz ceramic sublimation mug' and add a purchasing comparison view to this project showing product links, minimum orders, and supplying companies.
- Use Alibaba product search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Alibaba product search and tell me what changed since last week.
- Check Alibaba product search and summarize what you find in three bullet points.
- Pull the newest data from Alibaba product search and give me the result as a table.

## How to set up Alibaba product 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 Alibaba product 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": "alibaba/retail/search",
    "input": {
      "query": "<query>"
    }
  }'
```

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

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

## Alibaba product search tools and prices

- [Alibaba wholesale products · Search](https://spiral.ai/tools/alexandria/alibaba/retail/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | Opaque continuation token: pass next_cursor from a previous search response unchanged, with the same query. Omit for the first page. |

## What can you do with Alibaba product search in opencode?

Build a purchasing comparison in your project from Alibaba's advertised wholesale offers. A coding agent can organize product identities, specifications, quantity bands, or supplier summaries into the review format your team uses.

### Prepare a wholesale purchasing shortlist

Find ceramic mug offers, compare minimum orders and quantity pricing, review advertised specifications, and identify the supplying companies before requesting quotations.

### Draft comparable supplier inquiries

Turn packaging candidates into a quotation brief with product links, stated materials, order quantities, advertised price bands, and supplier names. List the stock and shipment questions that still need answers.

### Find a backup source for an enclosure

Find alternative aluminum enclosure listings, compare stated dimensions and materials, check minimum orders and quantity bands, and separate offers by supplying company.

### Choose candidates for sample evaluation

Find cotton tote bag offers and compare their advertised construction, minimum orders, quantity pricing, and supplier information. Produce a sample shortlist with specific claims to inspect.

### Screen supplier concentration

Review reusable drinkware search results and identify offers attached to the same supplying companies. Use product identities and supplier summaries to distinguish listing variety from supplier variety.

## Overview

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

## Alibaba product search in other agents

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

## More opencode guides

- [Alibaba product price tiers](https://spiral.ai/integrations/opencode/alibaba-product-price-tiers)
- [Alibaba product specifications](https://spiral.ai/integrations/opencode/alibaba-product-specifications)
- [Alibaba product details](https://spiral.ai/integrations/opencode/alibaba-product-details)
- [Alibaba supplier summary](https://spiral.ai/integrations/opencode/alibaba-supplier-summary)
- [Action weekly offers](https://spiral.ai/integrations/opencode/action-weekly-offers)
- [Allbirds collection links](https://spiral.ai/integrations/opencode/allbirds-collection-links)

## Questions about Alibaba product search in opencode

**Can opencode use Alibaba product search?**

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

**How much does Alibaba product 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 Alibaba product search in opencode?**

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

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

**Does opencode wait while Alibaba product search runs?**

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

**What part of Alibaba does this data cover?**

It covers public wholesale product and supplier listings, including advertised quantity pricing and specifications. That coverage is useful for finding and comparing sourcing candidates.

**Who is responsible for keeping Alibaba listing information current?**

Alibaba's terms require sellers to maintain and promptly amend the information they supply. This is a seller maintenance obligation, not evidence that Alibaba independently rechecks every listing on a fixed schedule.

**What does Verified Supplier verification add?**

The program produces an assessment report from a third-party inspection company, and Alibaba makes that report available to buyers. Review the underlying report when assessing a supplier.

**Do advertised certifications prove that a product meets my requirements?**

A certificate image may not cover the exact product configuration you are considering. Alibaba's electronics guidance specifically distinguishes the displayed certificate from coverage of the actual configuration.

**Can public Alibaba listings be collected into a separate database?**

Alibaba's terms prohibit systematic retrieval to compile collections, databases, or directories without written permission. The restriction covers automated tools and manual processes.

