Shopify AI Toolkit - AI Agent Plugin
Connect your AI tools to the Shopify platform.
The Toolkit gives your agent access to Shopify's documentation, API schemas, and code validation for building apps, and store management through the CLI's store execute capabilities. For more info, see the docs.
Install
-
For Claude Code: In your terminal, run claude plugin install:
claude plugin install shopify-ai-toolkit@claude-plugins-official
-
For OpenAI Codex: In your terminal, run codex plugin add:
codex plugin add shopify@openai-curated
-
For Antigravity CLI: In your terminal, install the Shopify plugin:
agy plugin install https://github.com/Shopify/shopify-ai-toolkit
-
For Cursor: In Cursor Chat, add the Shopify plugin:
/add-plugin shopify
-
For Hermes: In your terminal, download the install script and run it:
curl -fsSL https://raw.githubusercontent.com/Shopify/Shopify-AI-Toolkit/main/.hermes-plugin/install.sh -o /tmp/shopify-hermes-install.sh
bash /tmp/shopify-hermes-install.sh
-
For OpenClaw: In your terminal, install the package from npm:
openclaw plugins install npm:@shopify/ai-toolkit
Alternatively, install from ClawHub with openclaw plugins install clawhub:@shopify/ai-toolkit, or directly from the git mirror with openclaw plugins install git:github.com/Shopify/Shopify-AI-Toolkit. The plugin is recognized as a native OpenClaw plugin and a compatible Agent Plugins bundle.
-
For Pi: In your terminal, install the package from npm:
pi install npm:@shopify/ai-toolkit
Alternatively, install directly from the git mirror:
pi install git:github.com/Shopify/Shopify-AI-Toolkit
-
For VS Code:
-
Ensure the Agent plugins preview is enabled in your VS Code settings.
-
Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux) and run:
Chat: Install Plugin From Source
-
When prompted, enter the repository URL:
https://github.com/Shopify/shopify-ai-toolkit
What you get
- Docs and API schemas: Search Shopify's documentation and API schemas without leaving your editor
- Code validation: Validate GraphQL queries, Liquid templates, and UI extensions against Shopify's schemas
- Store management: Manage your Shopify store through the CLI's store execute capabilities
- Auto-updates: The plugin updates automatically as new capabilities are released
Telemetry
The skill scripts (scripts/search_docs.mjs, scripts/validate.mjs, scripts/log_skill_use.mjs) send a usage event to https://shopify.dev/mcp/usage on each invocation. The payload includes:
- tool name, skill name and version
- model name, client name, and client version (when supplied as flags)
- the search query text and search response or error text (for
search_docs.mjs)
- the validation result, the validated code when present, and validator-specific context such as API name, extension target, filename, file type, theme path, and file list (for
validate.mjs)
- artifact ID and revision number (when supplied)
- the routing-table topic in use — from
--topic for log_skill_use.mjs, and for
search_docs.mjs from --api on a scoped search or --topic on an unscoped one
- the user's most recent message verbatim (truncated to 2000 chars), when the agent passes it base64-encoded via
--user-prompt-base64 to validate.mjs (for topics with a validator) or log_skill_use.mjs (for topics without). Encoding the prompt keeps untrusted message text out of shell syntax. Exactly one designated capture point per topic — search_docs.mjs does not carry user_prompt.
- the agent's
sessionId and toolUseId (when supplied via --session-id / --tool-use-id) so analytics can join script events with the hook's skill_invocation event for the same activation.
The plugin also registers a PostToolUse hook (hooks/track-telemetry.sh, .ps1) on Claude Code, Cursor, and GitHub Copilot. It emits a skill_invocation event to the same endpoint whenever the agent calls the host Skill tool with a Shopify AI Toolkit skill or reads a known SKILL.md under the running hook's own plugin or standalone-skill install root. The root is derived from the hook script's physical location, so unrelated repositories that merely mimic an install-path suffix do not trigger telemetry. The payload includes: