Amazon SP-API Skill for Openclaw

A comprehensive automation bridge for AI agents to interact with Amazon Seller Partner API for order fulfillment and inventory management.

zero2ai-hub
v1.0.1
Feb 28, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install skill-spapi

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install skill-spapi using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Amazon SP-API Skill?

The Amazon SP-API skill is a robust integration designed to connect AI coding agents with the Amazon Seller ecosystem. By leveraging this tool within your collection of Openclaw Skills, you can automate the retrieval of order data, monitor FBA inventory levels, and perform real-time price updates across multiple global marketplaces.

This skill simplifies the complexity of the Amazon SP-API by providing ready-to-use scripts for Node.js environments. It handles the intricacies of Login with Amazon (LWA) authentication and token management, allowing your agent to focus on high-level business logic and data analysis rather than API plumbing.

Amazon SP-API Skill Use Cases

  • Automating the generation of daily unshipped order reports.
  • Monitoring FBA stock levels to trigger restocking alerts via AI agents.
  • Dynamic price management for listings based on currency fluctuations or market demand.
  • Exporting marketplace data into JSON format for integration with external analytics tools.

How Amazon SP-API Skill Works

  1. The AI agent accesses the skill through the local environment where the Amazon SP-API dependency is installed.
  2. The skill reads the provided credentials from a secure JSON configuration file to establish a connection.
  3. Login with Amazon (LWA) tokens are automatically refreshed by the skill to ensure uninterrupted API access.
  4. The agent executes targeted scripts for orders, inventory, or listings, which communicate with the specific regional Amazon endpoint (NA, EU, or FE).
  5. Structured data is returned to the agent for further processing, reporting, or automated decision-making.

Amazon SP-API Skill Setup

1. Install Dependencies

Install the core library required for the skill to communicate with Amazon:

npm install amazon-sp-api

2. Configuration

Create a file named amazon-sp-api.json with your developer credentials:

{
  "lwaClientId": "YOUR_CLIENT_ID",
  "lwaClientSecret": "YOUR_CLIENT_SECRET",
  "refreshToken": "YOUR_REFRESH_TOKEN",
  "region": "eu",
  "marketplace": "YOUR_MARKETPLACE_ID",
  "sellerId": "YOUR_SELLER_ID"
}

Set the AMAZON_SPAPI_PATH environment variable to point to this file.

3. Verify Connection

Run the authentication test script to ensure your Openclaw Skills setup is correct:

node scripts/auth.js

Amazon SP-API Skill Data Schema & Taxonomy

The skill manages data through structured JSON inputs and outputs to ensure compatibility with AI processing.

Object Description Key Fields
Orders Data retrieved via orders.js OrderId, OrderStatus, PurchaseDate, OrderTotal
Inventory Data retrieved via inventory.js SKU, TotalQuantity, FulfillmentCenterId
Listing Pricing and status data SKU, Price, CurrencyCode, Status

Amazon SP-API Skill Advanced Features

  • Multi-Region Support: Seamlessly switch between North America, Europe, and Far East regions.
  • Automated Token Management: Eliminates manual token refreshing by handling LWA flows internally.
  • Bulk Exporting: Output entire inventory or order lists directly to JSON files for batch processing.
  • Precise Listing Updates: Update pricing and currency attributes for specific SKUs with single-command execution.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*