Troubleshooting

Start with swipebatch doctor. It checks your system and prints the fix for anything that is wrong. This page explains each check and the other problems people run into, with what to do about them.

Reading the doctor's output

swipebatch doctor

Each line starts with a mark, then the check's name and what it found:

The last line is SwipeBatch is ready. when every required check passes. Fix the FAIL lines, then run swipebatch doctor again. Run swipebatch doctor --json to get the same results as JSON, and swipebatch doctor --fix to install Chromium when it is missing.

node

SwipeBatch needs Node.js 22 or newer. If this check fails, it shows the version it found.

Fix: install Node.js 22 or newer from https://nodejs.org, then install SwipeBatch again with npm install -g ./swipebatch-1.0.1.tgz. Packages installed globally belong to one Node.js installation, so a new Node.js needs SwipeBatch installed again.

workspace

SwipeBatch keeps your data in a workspace folder: ~/SwipeBatch, or the folder in the SWIPEBATCH_HOME environment variable. This check opens it and writes a test file. It can fail three ways:

chromium

SwipeBatch renders slides with Chromium, a browser that Playwright installs for it. This check starts Chromium to make sure it works.

Fix: run swipebatch doctor --fix to install Chromium. swipebatch start also installs it on its first run. If Chromium is installed but still cannot start, read Chromium needs system libraries below. Also see The Chromium download fails.

license

Shows whether a valid license is activated: valid with the license id and issue date, missing, or invalid with the reason. It never shows your key. This check is advice: SwipeBatch starts without a license, but rendering and export need one.

Fix: run swipebatch activate and paste your key when asked, or swipebatch activate <license key>. Buy a license at https://swipebatch.com/buy. Lost your key? Get it again at https://swipebatch.com/recover. Also see LICENSE_REQUIRED.

agent:claude-code, agent:codex and agent:cursor

One line per agent: whether SwipeBatch is in that agent's MCP settings, and whether the agent's command (claude or codex) is on your PATH. These checks are advice. You only need the agent you use.

Fix: run swipebatch connect claude-code or swipebatch connect codex, then start a new session of the agent. Cursor has not been tested with SwipeBatch: swipebatch connect cursor prints the settings to add to ~/.cursor/mcp.json yourself. Also see The agent cannot see the SwipeBatch tools.

preview

Shows where the local preview is running, or whether its usual port (4317) is free. This check never fails. If the port is in use, swipebatch start uses the next free port. See The preview port is in use.

updates

Shows where license holders download updates: https://swipebatch.com/download. SwipeBatch never checks for updates itself.

npm EACCES on a global install

npm install -g writes to npm's global folder. If npm stops with EACCES (permission denied), your user cannot write there. This happens most often when Node.js was installed system-wide.

Fix: point npm's global folder at a folder you own, then install again.

If you use macOS or Linux:

mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global

Then add ~/.npm-global/bin to your PATH. For example, add this line to ~/.zshrc or ~/.bashrc and open a new terminal:

export PATH="$HOME/.npm-global/bin:$PATH"

A Node.js version manager such as nvm also installs global packages in a folder you own.

If you use Windows, run the terminal as your own user (not another account), and make sure the folder that npm prefix -g prints is writable by you.

swipebatch: command not found

The install worked, but your shell cannot find the command, because npm's global bin folder is not on your PATH.

Find the folder:

npm prefix -g

The Chromium download fails

On first use, swipebatch start (or swipebatch doctor --fix) downloads a headless Chromium through Playwright, once. The download is about 150 MB; measured on Linux with SwipeBatch 0.1.0, it takes about 300 MB once unpacked. Sizes differ a little on other systems. It is saved in Playwright's own folder, not in your workspace:

If the download fails or stalls:

If you use Linux: Chromium needs system libraries

On Linux, Chromium needs some system libraries that a minimal or server installation may not have. The chromium check then fails even after the download, and swipebatch start says Chromium still cannot start.

Fix: install the libraries (this needs administrator rights), then run swipebatch doctor again:

sudo npx playwright install-deps chromium

The agent cannot see the SwipeBatch tools

  1. Restart the agent. Agents load their MCP servers when a session starts. After swipebatch connect, start a new session.
  2. Check the connection. Run swipebatch doctor and look at the line for your agent. It should say SwipeBatch is configured. If not, run swipebatch connect claude-code or swipebatch connect codex again. Re-running it is safe.
  3. See the exact settings. Run swipebatch connect claude-code --print or swipebatch connect codex --print. It prints the command or settings without changing anything. Compare them with your agent's MCP settings (for Codex, ~/.codex/config.toml).
  4. Was the agent's command on PATH? If swipebatch connect said claude or codex was not found, it did not change anything; it printed what to run or add instead. Run that where the agent is installed.
  5. Moved or reinstalled Node.js? The settings hold the full path to Node.js and to SwipeBatch. After reinstalling either, run swipebatch connect again.

If the tools are listed but a call fails, the agent sees an error with a hint. Ask the agent to show you the message.

The agent asks before it runs a SwipeBatch tool

This is the agent's own safety check, not an error. Codex asks about three tools: create_product_profile, create_carousel and create_campaign. They save records in your workspace and download the images the agent lists. Saving again under the same id replaces what was there, including a campaign's carousels.

Whether to allow them in advance is your choice. SwipeBatch never changes these settings for you.

Codex shows a question such as Allow the swipebatch MCP server to run tool "create_campaign"? Choose Allow to run it once, or Always allow to stop the question for that tool.

Claude Code may run the tools without asking, depending on its permission mode. When it asks Do you want to proceed?, the choice "Yes, and don't ask again" stops the question for that tool in that folder.

codex exec runs without you, so nobody can answer and the three tools fail. To allow them, open ~/.codex/config.toml, find the line [mcp_servers.swipebatch] and add this line directly below it:

default_tools_approval_mode = "approve"

It then applies to every SwipeBatch tool and every Codex session, not only to codex exec. Delete the line to be asked again.

Running swipebatch connect codex again keeps these choices while the paths to Node.js and SwipeBatch are the same. If either has moved, or SwipeBatch was switched off in Codex's settings (enabled = false), Codex's entry is replaced, and you need to allow the tools again.

LICENSE_REQUIRED

Rendering and export need an active license. Without one, the agent gets a LICENSE_REQUIRED error that says why: no license is installed, or the installed one is invalid.

Fix: run swipebatch activate and paste your key, then check with swipebatch license. It should print valid with your license id. The agent can try again right away; nothing needs restarting.

SWIPEBATCH_LICENSE takes precedence. If the SWIPEBATCH_LICENSE environment variable is set, SwipeBatch uses the key in it instead of the one you activated. When that key is wrong or old, you see LICENSE_REQUIRED even after activating, and the message names SWIPEBATCH_LICENSE. swipebatch activate still saves your key, then tells you the variable takes precedence. Unset the variable (in your shell, and in your agent's environment) or set it to your current key, then start a new agent session so it picks up the change.

Lost your key? Enter your purchase email at https://swipebatch.com/recover.

The preview port is in use

The preview runs on your computer only, at http://127.0.0.1:4317. If something else uses port 4317, swipebatch start takes the next free port and prints the address it uses.

Where renders and exports are written

Everything is in your workspace (~/SwipeBatch, or the folder in SWIPEBATCH_HOME):

The preview shows the same files in your browser.

Contacting support

Write to hello@dimsou.com from the email address you bought SwipeBatch with. Include:

Never send your license key. Support never needs it: your purchase email identifies your license. swipebatch license shows your license id, which is safe to share.