Install SwipeBatch for a customer (agent guide)
You are an AI agent installing SwipeBatch for the customer you are working with. Follow the steps in order. Each step has a command to run and the result to expect. When a step says stop, stop and tell the customer what it says; do not work around it.
SwipeBatch is a local tool that designs, renders and exports TikTok slideshows and Instagram carousels. After setup, you drive it through its MCP tools: you research and write, it renders. The customer has bought a license and has a license key. The human guide is https://swipebatch.com/docs/install and troubleshooting is at https://swipebatch.com/docs/troubleshooting.
Rules for the license key
- The customer types the key themselves: in the download page in their browser, and in
swipebatch activatein their own terminal. - Never put the key in a URL, and never download the package yourself: the download needs the key.
- If the customer pastes the key to you anyway, run
swipebatch activate <license key>once with it. Never write the key into a file, a note, a config, a commit or a log, and never repeat it back. - If anything asks for the key by email, it is not from SwipeBatch. Support (hello@dimsou.com) never needs the key.
Steps
Check Node.js. Run:
node --versionExpect
v22or a higher major version, for examplev22.12.0orv24.1.0. If the command is missing or the major version is below 22, stop and tell the customer: "SwipeBatch needs Node.js 22 or newer. Please install it from https://nodejs.org, then ask me to continue."Find the package. The customer may have downloaded it already. Look for it:
ls ~/Downloads/swipebatch-*.tgzExpect one path such as
/Users/name/Downloads/swipebatch-1.0.1.tgz. If there are several, use the highest version. If there is none, or only an older version, tell the customer: "Open https://swipebatch.com/download in your browser, paste your license key and click Download. Tell me when the fileswipebatch-1.0.1.tgzhas downloaded." You cannot download it: the key must not go in a URL or a command line. Wait for them, then look again. If it is still not there, ask the customer where they saved the file and use that path.Install and check the system.
a. Install it, with the path from step 2:
npm install -g /path/to/swipebatch-1.0.1.tgzExpect npm to finish with
added <n> packagesand noERR!lines. If npm fails withEACCES, stop and tell the customer: "npm cannot write to its global folder. See https://swipebatch.com/docs/troubleshooting#npm-eacces-on-a-global-install, then ask me to continue." Do not usesudounless the customer asks you to.b. Check the command:
swipebatch helpExpect a first line
swipebatch <version>followed by a list of commands. If the shell saysswipebatch: command not found, npm's global bin folder is not on PATH. Runnpm prefix -g; the command is in that folder'sbinsubfolder on macOS and Linux, and in the folder itself on Windows. Stop and tell the customer to add that folder to their PATH (https://swipebatch.com/docs/troubleshooting#swipebatch-command-not-found), then ask you to continue.c. Start SwipeBatch.
swipebatch startkeeps running until it is stopped, so ask the customer: "Please runswipebatch startin your own terminal and leave it open." If you can run a long-lived process in the background instead, run it there:swipebatch startExpect it to print a list of checks, then
Preview: http://127.0.0.1:<port>(port 4317 unless it is taken) andWorkspace: <folder>. On the first run it also creates the sample campaign and may download Chromium (about 150 MB), which can take a few minutes.d. Check the system:
swipebatch doctorExpect the last line
SwipeBatch is ready.Lines marked--(such as the license, before step 4) are advice, not failures. If any line starts withFAIL, runswipebatch doctor --fixonce (it installs Chromium when that is what failed), thenswipebatch doctoragain. If aFAILline remains, stop and tell the customer the line and itsFix:text, and point them to https://swipebatch.com/docs/troubleshooting. For the results as JSON, runswipebatch doctor --json.Activate the license. Tell the customer: "Please run
swipebatch activatein your terminal and paste your license key when it asks. The key is not shown on screen." Wait for them, then run:swipebatch licenseExpect
valid (<license id>, issued <date>). It never prints the key. If it printsmissing, the key was not saved: ask the customer to runswipebatch activateagain. If it printsinvalid (<reason>), stop and tell the customer the reason. A lost or wrong key can be sent again from https://swipebatch.com/recover with their purchase email. If the output also saysSWIPEBATCH_LICENSEtakes precedence, tell them that variable holds a different key and must be unset (or set to the new key).Connect yourself. Run the line for the agent you are.
If you are Claude Code:
swipebatch connect claude-codeExpect
SwipeBatch is connected to Claude Code. Start a new Claude Code session to use it.Check withclaude mcp get swipebatch: it should show the path to Node.js, the path to SwipeBatch'sbin.jsand the argumentmcp.If you are Codex:
swipebatch connect codexExpect
SwipeBatch is connected to Codex. Start a new Codex session to use it.Check withcodex mcp get swipebatch: it should show the path to Node.js, the path to SwipeBatch'sbin.jsand the argumentmcp.Both normally also print
Installed 3 SwipeBatch skills for .... If it says your command was not found on PATH, it prints a command or a config snippet instead of connecting. Run that command, or add the snippet where it says, then check again. If you are another agent, runswipebatch connect cursorto print a standard MCP server entry (command and arguments) and add it to your own MCP settings. Tell the customer this setup is untested.Then tell the customer: "SwipeBatch is installed. Please start a new session so I can load its tools, then ask me to make a campaign, for example: Make a seven-day campaign for https://your-product.example"
Also tell the customer that you may ask them before you run a SwipeBatch tool, and that the answer is their choice (https://swipebatch.com/docs/troubleshooting#the-agent-asks-before-it-runs-a-swipebatch-tool); do not change your approval settings yourself.
In the new session, the SwipeBatch tools are listed, such as
get_version,create_campaign,render_carouselandexport_campaign. Callget_version: it reports the version and the license state. If the tools are not listed after a restart, runswipebatch connect <agent> --printto see the exact settings, compare them with your MCP config, and see https://swipebatch.com/docs/troubleshooting#the-agent-cannot-see-the-swipebatch-tools.
Where the results go
Everything is saved in the customer's workspace, ~/SwipeBatch unless the SWIPEBATCH_HOME environment variable points elsewhere. Exports (PNG slides, caption.txt files and campaign ZIPs) are in its exports folder. The preview from step 3c shows them in the browser.
If you get stuck
Tell the customer what failed and the exact message. They can write to hello@dimsou.com from their purchase address with the output of swipebatch doctor. They must not send their license key.