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

opencode · E-commerce

How to Use Alibaba product details in opencode

Returns an Alibaba listing's title, minimum order, quantity unit, supplier identity, and gallery image URLs. Use it to identify the exact offer and prepare a product comparison.

Prompts to try with Alibaba product details in opencode

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

Use Alibaba product details for https://www.alibaba.com/product-detail/Custom-Logo-Dishwasher-Microwave-Safe-Ceramic_1601651021684.html and build a review component showing its title, minimum order, quantity unit, supplier, and gallery links.

Alibaba product detailsopencode
Try asking
  • Use Alibaba product details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Alibaba product details and tell me what changed since last week.

  • Check Alibaba product details and summarize what you find in three bullet points.

  • Pull the newest data from Alibaba product details and give me the result as a table.

How to set up Alibaba product details 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 Alibaba product details

    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": "alibaba/retail/product",
        "input": {
          "url": "<url>"
        }
      }'

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

Alibaba product details providers and prices

Spiral runs Alibaba product details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce

What can you do with Alibaba product details 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.

Compare purchasing volumes

For a ceramic mug listing, compare the advertised quantity bands with its minimum order and stated specifications. Show which order sizes fit the listing before seeking a final quotation.

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.

Questions about Alibaba product details in opencode

Can opencode use Alibaba product details?

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

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

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

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

Does opencode wait while Alibaba product details runs?

Alibaba product details 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.

Get started

Start using Alibaba product details 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