Multi-provider LLMs
Anthropic, OpenAI, Google, OpenRouter, Vercel AI Gateway, and NVIDIA NIM. Each provider keeps its own saved model, and supported providers can use custom base URLs.
Ask in natural language. The agent reads, searches, and operates your Commerce Layer data with built-in docs lookup, multiple account profiles, and explicit confirmation before every mutation. Local-first, bring your own LLM.
npx cl-agent-cli
This is an independent open-source project. Not maintained, endorsed, or affiliated with Commerce Layer.
Everything you need to run Commerce Layer from a single terminal session — without ever giving up control.
Anthropic, OpenAI, Google, OpenRouter, Vercel AI Gateway, and NVIDIA NIM. Each provider keeps its own saved model, and supported providers can use custom base URLs.
Cancel, capture, refund, update. No write action runs without an explicit, auditable confirmation prompt.
List, search, and mutate orders, customers, SKUs, and more — using ransack-style filters and JSON:API responses.
Built-in Commerce Layer docs search uses the official docs MCP server by default and falls back to fast local keyword lookup when the MCP is unavailable.
Production, staging, and test in one place. Dedicated account management and environment badges warn you when you’re about to touch live data.
Plug in stdio or SSE MCP servers and use their tools alongside built-in ones. Destructive tools get wrapped in the same confirmation flow.
Natural language in. Real Commerce Layer actions out — with you in the loop.
Requires Node.js 20+ and a Commerce Layer organization endpoint.
npm install -g cl-agent-cli
npx cl-agent-cli
pnpm dlx cl-agent-cli
bunx cl-agent-cli
On first run, a setup wizard walks you through the provider key or AI_GATEWAY_API_KEY,
model selection, and your first Commerce Layer account using client credentials or a raw access token.
0600 permissions.*.commercelayer.io blocked unless explicitly allowed.