Skip to main content

CLI Market — 3,760+ retailers VTEX, 67 countries, 12 lines. Commerce infrastructure for AI agents.

Project description

CLI Market

27 retailers 4 lines 8 countries MCP py MIT build Vercel

PyPI version PyPI downloads GitHub stars ProductHunt featured

CLI Market

Commerce infrastructure for AI agents.
27 retailers · 4 lines · 8 countries · 1 API.


What is CLI Market?

The problem: AI agents can't comparison-shop autonomously today. 27 verified VTEX retailers — Carrefour, Wong, Motorola, HEB — all share the same public API. But every retailer requires separate auth, separate search logic, no unified cart state, no cross-retailer pricing. Agents fail before the first query.

CLI Market fixes this. One API call across all retailers. One pip install. One JSON schema.

  • Search any product across 27 retailers in 8 countries
  • Compare prices cross-border in real time
  • Basket — compare full shopping carts across retailers, find the cheapest total
  • Inflation — track price changes across countries from the data moat
  • Purchase autonomously via 15 MCP tools (basket, inflation, categories)
  • Build on our data moat — 4,500+ prices every 4h, historical snapshots, cross-retailer intelligence

Stripe turned payments into APIs. We turn commerce into APIs.

cli-market.dev — full landing, live coverage, MCP docs

CLI Market demo

Quick start

Linux / macOS / WSL

# 1. Install
pip install cli-market

# 2. Start backend
market-server &

# 3. Use the CLI
market login
market search "leche" --country PE
market compare "aceite"
market add 3 --qty 2
market checkout --payment yape

# 4. Agent mode
market ask "compra arroz"
market --json

Windows (PowerShell)

# 1. Install
pip install cli-market

# 2. Start backend (in a separate terminal)
Start-Process -NoNewWindow python -ArgumentList "-m", "market_server"

# 3. Use the CLI
market login
market search "leche" --country PE
market compare "aceite"
market add 3 --qty 2
market checkout --payment yape

# 4. Agent mode
market ask "compra arroz"
market --json

Windows (CMD)

:: 1. Install
pip install cli-market

:: 2. Start backend (in a separate terminal)
start python -m market_server

:: 3. Use the CLI
market login
market search "leche" --country PE
market compare "aceite"
market add 3 --qty 2
market checkout --payment yape

:: 4. Agent mode
market ask "compra arroz"
market --json

Features

For humans For AI agents
Terminal CLI REST API + JSON
Rich tables 12 MCP Tools
Spanish / English CSV export
market search "milk" Autonomous workflows

Commands

login lines search compare add cart cart-update cart-remove cart-clear checkout orders reorder ask --json

MCP Server

python market_mcp.py

12 tools: market_login market_lines market_search market_compare market_add market_cart market_cart_update market_cart_remove market_checkout market_orders market_reorder market_ask

Compatible with DeepSeek TUI, Claude, Cursor, and any MCP client.

Coverage

27 retailers across 12 business lines in 8 countries.

Line Count Key retailers
👕 Fashion 1,560 Louis Vuitton · Gucci · Prada · Chanel · Dior · Zara · H&M · Levi's · Nike · Adidas · Renner · Lamborghini · Ferrari
📱 Electronics 571 Samsung · Apple · Sony · LG · Panasonic · Dell · HP · Lenovo · Yamaha · Dyson
🏠 Home 314 IKEA · Homecenter · Sodimac · Miele · Bosch · Smeg · Tefal · KitchenAid
⚽ Sports 306 Nike · Adidas · Reebok · Puma · Under Armour · Decathlon · Foot Locker · Patagonia
🛒 Supermarkets 252 Wong · Carrefour · Jumbo · Coto · Costco · Sainsbury's · Edeka · Albert Heijn
🍔 Food 176 Nestle · Unilever · Coca-Cola · Pepsi · Lindt · Heineken · Nespresso
💄 Beauty 170 Sephora · MAC · Clinique · Estee Lauder · Lancome · Lush · Yves Rocher
🏬 Department Stores 136 Mercado Libre · El Corte Ingles · Otto · Miniso · Lego · Americanas
💊 Pharmacies 51 Droga Raia · Drogasil · Boots · DM · Rossmann
🔧 Auto Parts 50 BMW · Mercedes-Benz · Audi · Tesla · Harley Davidson · Ducati
📚 Stationery 11 Staples · Office Depot

Countries: 8 countries across LATAM, Europe, and global

API

Base URL: https://cli-market-api.onrender.com
Swagger:  /docs
llms.txt: https://cli-market.dev/llms.txt

Endpoints

# Status
GET /

# Data Feed
GET /v1/feed/prices?query=cafe&country=PE&format=csv
GET /v1/feed/stats?period=7d

# Competitive Intelligence (CIaaS)
GET /v1/intel/competitor?product=leche&store_a=wong&store_b=plazavea
GET /v1/intel/delta?product=cafe&country_a=PE&country_b=CO
GET /v1/intel/alerts?product=arroz&threshold_pct=5

# Pricing
GET /v1/pricing

Rate limits

Tier Requests/min Requests/day CIaaS
Free 10 100 No
Paid Contact Contact Yes

Data Moat

The SQLite database is fed by an automated price collector. It queries 40 canonical products (milk, rice, oil, eggs, paracetamol, sneakers, jeans, TVs, laptops, etc.) across all 27 retailers every 4 hours.

# One-time run
python collect_prices.py

# Continuous daemon
python collect_prices.py --daemon --interval 4

# View stats
python collect_prices.py --status
python collect_prices.py --report
Feature Spec
Parallelism 50 stores simultaneous
Queries 40 seed products across 4 lines
Circuit breaker 5 consecutive failures = 5 min cooldown
Dedup UNIQUE(product_id, store) upsert
Rate limit 150ms between queries per store
Tables price_snapshots, collector_runs, store_health

Architecture

AI Agents (Claude, DeepSeek, GPT)
        |
   CLI Market API    ← You are here
        |
   26 VTEX retailers across 8 countries
        |
  SQLite data moat — price snapshots, search history

Why this exists

E-commerce is optimized for clicks, not agents. VTEX powers 27 retailers with the same public API — yet no one has built a unified agentic layer on top. CLI Market is that layer.

Links

Legal

Software: MIT License. Use, modify, distribute freely.

Data: Pricing data, SKU mappings, historical snapshots, and retailer indexes are proprietary. Licensed under the Data License Agreement. The software is open. The data moat is protected.

Documents:

MIT © 2026 CLI Market · Treevu AI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_market-1.0.24.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_market-1.0.24-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file cli_market-1.0.24.tar.gz.

File metadata

  • Download URL: cli_market-1.0.24.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cli_market-1.0.24.tar.gz
Algorithm Hash digest
SHA256 16faf34d5c52655c5601de37062984eac884d6d3c4eda6595c53705c398b12d3
MD5 6baa3ef0feb827f5c96468adf7d7897d
BLAKE2b-256 bd1442566cb03168a8764e4a6b6891e6324e678ce80e53a54cfbe3111f59d875

See more details on using hashes here.

File details

Details for the file cli_market-1.0.24-py3-none-any.whl.

File metadata

  • Download URL: cli_market-1.0.24-py3-none-any.whl
  • Upload date:
  • Size: 41.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cli_market-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 670d6be5310f7898e2e81cf0b33e21a0da32e176b171b17d51aab8c07c56076a
MD5 3097854b6be455cdc2b89286a0741b74
BLAKE2b-256 b8d755bf61813dd473db4177318920bbe9a0b86ba2b2696dc8e39f47c5580b21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page