UltraCart StoreFront Agent Toolchain: agent brief STATUS: PUBLIC BETA. INSTALLABLE NOW. Last updated: 2026-11-20 CLI version on that date: 0.2.0-beta.9 (npm dist-tag: beta) This brief is for AI agents, and for the people who ask them to look. If a user asked you to install, set up, or try the UltraCart StoreFront Agent Toolchain, this is what to do. WHAT IT IS The uc-storefront command line tool, a packaged catalog of StoreFront elements, and a project agent skill. It lets an AI coding agent build and edit a merchant's UltraCart StoreFront through guarded commands: real widget IDs, validated writes, previews before anything goes live, and no overwritten work. It is a CLI, a catalog, and a skill. It is not an MCP server. WHERE IT STANDS - The CLI is published on public npm as a beta: @ultracart/storefront-cli, dist-tag "beta". No GitHub account or package token is needed. - Every active UltraCart merchant account can use the beta. Nobody needs to request access: install the CLI and connect the store. - If the server answers "beta_access_required", UltraCart refused the CLI for the account that signed in. That usually means the account is not active, or the sign-in went to a different account than the user meant. Stop remote work, tell the user, and follow IF ACCESS IS REFUSED. Do not retry, switch credentials, use an API key, or pick another merchant profile to get around it. Offline authoring and validation still work. WHAT YOU NEED - Node.js 24 or newer. Check with: node -v (if it is older, install Node 24 first, for example with nvm or Volta, then continue) - npm. - An UltraCart account. A developer account works for testing. Start on a test storefront or a non-active theme, not a live store. INSTALL (ask the user before you run these) 1. Install the CLI from public npm: npm install -g @ultracart/storefront-cli@beta If the user's npm config maps the @ultracart scope to another registry (a line like @ultracart:registry=... in ~/.npmrc), npm will not find the public package. Add this flag to the install command: --@ultracart:registry=https://registry.npmjs.org/ 2. Confirm the version: uc-storefront --version (expect 0.2.x) 3. Create a workspace and install the skill into it. An agent's shell cannot answer prompts, so name your agent with --target and add --no-input: uc-storefront init my-storefront --target claude --no-input cd my-storefront uc-storefront skills status --target takes claude, codex, gemini, or hermes. Repeat the flag for more than one, or use all. - Claude Code: --target claude - Codex: --target codex - Google Antigravity (the CLI, IDE, or app): --target gemini. Antigravity reads the .agents/skills folder that target installs into. Gemini CLI uses the same target, and now serves Enterprise and API-key accounts only. - Hermes Agent: --target hermes. The skill goes into the Hermes home's skills folder, shared by every workspace on that machine. Use one workspace per merchant. Some agents load project skills only from a trusted folder; if yours does not list build-ultracart-storefronts after init, check its trust setting. 4. Connect a merchant. The person, not the agent, completes the sign-in in their browser: uc-storefront profile create my-store uc-storefront auth login --profile my-store uc-storefront profile bind my-store uc-storefront sf storefronts Plain auth login prints a URL and a code, then waits for the approval. If you run it from a command tool that shows output only when the command ends, use the two-step form in its place: uc-storefront auth login --profile my-store --no-wait uc-storefront auth login --profile my-store --continue --wait The first prints the URL and code and returns at once: give both to the person. The second waits up to 45 seconds. Exit 3 means still waiting, so run it again until it exits 0. "sign_in_expired" means start again with a new code. Never open the approval page or accept the terms yourself. Confirm the merchant shown is the one the user means. 5. Then load the build-ultracart-storefronts skill and follow it. It points at the right reference for each kind of change. IF YOU ARE A HOSTED OR REMOTE AGENT (Grok Bot, Muse, Hermes Agent, a container, CI, or any machine that is not the person's own desktop) Before step 4, in the workspace, run: uc-storefront auth status (Before step 4 it also says the workspace binding is missing or no profiles exist, and exits 1. That is expected.) Read the "credential" lines: - "credential store: macos-keychain", "windows-credential-manager" or "linux-secret-service" with "(durable, available)": this machine has a keychain. Do step 4 as written, whatever the credential key line says. - "credential store: encrypted-file (durable, available)" and "credential key: set": do step 4, but sign in as described under SIGN IN below. - "credential key: absent": the key is not reaching your shell. Stop. Tell the person which platform you are, and that the CLI needs a secret named ULTRACART_STOREFRONT_CREDENTIAL_KEY that reaches your shell commands as an environment variable. They create it on their own computer (macOS: openssl rand -base64 32 | pbcopy) and paste it only into the platform's secret form. On Grok Bot a saved secret reaches new commands right away, with no new chat. On other platforms they restart the session, task or container so the CLI sees it. If your platform has no way to pass a saved secret to shell commands, say so: sign-in is not possible there yet. Offline authoring and validation still work. - "credential key: invalid": ask the person to replace it with a new key. Never generate, ask for, accept, type or repeat the key. Never run auth keygen, env, printenv, set, echo $VAR, or read env files or /proc/*/environ. Never put the key in a command, a file or the chat. Never open, copy or upload the credentials folder in the config directory. Check the key only with: uc-storefront auth status KEEP IT: set ULTRACART_STOREFRONT_CONFIG_DIR to a folder that survives restarts (Grok Bot: under /workspace), the same in every session. If installed packages do not survive updates or resets, install with an npm --prefix under that persistent folder (Grok Bot: /workspace/.npm-global), put its bin folder on PATH in every command, and repeat the install when uc-storefront goes missing. SIGN IN: in step 4, use the two-step form. Run auth login --profile my-store --no-wait and send the URL and code it prints to the person. Then repeat auth login --profile my-store --continue --wait until it exits 0 (3 means still waiting). The person approves in their own browser. Never open the approval page yourself. If your platform cannot relay the code, tell the person, and stop. Then finish step 4 (profile bind). CONFIRM: auth status shows "credential store: encrypted-file" and "local grant: present". Then run sf storefronts. A later session should show the same. You do not need to start a new one to check. One sign-in per bot or container. Never copy the config folder: a renewal by one copy signs the other out. A second bot gets its own folder, key and sign-in. If a key or token ever appears in a chat, command or file, it is leaked: the person creates a new key, replaces the secret, revokes the CLI's authorized application in UltraCart, and you sign in again. A NEW ADDRESS (every agent, on a desktop or hosted) A sign-in works only from the IPv4 addresses its person approved. The first is the address it signed in from. If a command stops with "location_approval_required", run: uc-storefront auth approve-location Give the person the link and code it prints, and tell them UltraCart also emailed them about it. Never approve it yourself. If they did not expect the request, stop. An address that keeps changing is asked again each time, so run from a stable address. Details: https://docs.ultracart.com/developer/storefront/agent-toolchain/approved-addresses HOW IT KEEPS A STORE SAFE - Every write is validated, and pushes are guarded so they cannot overwrite newer work. Every change can be previewed and adjusted before the merchant takes it live. Some item, menu, and site changes affect shared live data right away, even on an inactive theme, so start on a test storefront. - Destructive changes and changes that touch live customers need the merchant's approval in the UltraCart admin, with their authenticator. An agent cannot approve for itself. - When a command needs a secret, the user enters it in the UltraCart admin. Never ask for or accept a password, API key, token, or card number in chat. IF ACCESS IS REFUSED (beta_access_required) Every active UltraCart merchant account can use the beta, so this refusal is an exception. It is not a step where access is requested. 1. Stop remote work and tell the user. It usually means the account is not active, or the profile is signed in to a different account than they meant. Check which account it is with: uc-storefront auth status 2. If it is the right account, point them to UltraCart support, and give them their Merchant ID (MID) to include if they have one. If they are not an UltraCart merchant yet, they can say so when they contact support. https://www.ultracart.com/help/support#help-form 3. Never ask for or accept a password, API key, token, or card number, and do not fill in or submit a form for them. WHILE THEY WAIT, AND FOR REFERENCE The StoreFront CLI documentation covers setup, agents, capabilities and safety: https://docs.ultracart.com/cli The UltraCart documentation covers StoreFronts and Themes: https://docs.ultracart.com An index written for agents is at: https://docs.ultracart.com/llms.txt WHAT THE BETA COVERS - Storefront pages, containers, checkout and My Account, with previews before anything goes live. - Item content and prices, menus, theme colors and fonts, files and assets, redirects, upsells, blog posts, languages, and experiments. - Campaigns, flows, segments, emails and postcards in the built-in email platform. Emails and postcard proofs can be previewed without sending or mailing anything. - Reading screen recordings, server render logs, and the merchant's own BigQuery warehouse. - Human approval, in the UltraCart admin, for destructive changes and changes that touch live customers. An agent cannot approve for itself. Details are on the page: https://www.ultracart.com/resources/storefront-agent-toolchain