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

Steps

  1. Check Node.js. Run:

    node --version
    

    Expect v22 or a higher major version, for example v22.12.0 or v24.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."

  2. Find the package. The customer may have downloaded it already. Look for it:

    ls ~/Downloads/swipebatch-*.tgz
    

    Expect 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 file swipebatch-1.0.1.tgz has 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.

  3. Install and check the system.

    a. Install it, with the path from step 2:

    npm install -g /path/to/swipebatch-1.0.1.tgz
    

    Expect npm to finish with added <n> packages and no ERR! lines. If npm fails with EACCES, 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 use sudo unless the customer asks you to.

    b. Check the command:

    swipebatch help
    

    Expect a first line swipebatch <version> followed by a list of commands. If the shell says swipebatch: command not found, npm's global bin folder is not on PATH. Run npm prefix -g; the command is in that folder's bin subfolder 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 start keeps running until it is stopped, so ask the customer: "Please run swipebatch start in your own terminal and leave it open." If you can run a long-lived process in the background instead, run it there:

    swipebatch start
    

    Expect it to print a list of checks, then Preview: http://127.0.0.1:<port> (port 4317 unless it is taken) and Workspace: <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 doctor
    

    Expect the last line SwipeBatch is ready. Lines marked -- (such as the license, before step 4) are advice, not failures. If any line starts with FAIL, run swipebatch doctor --fix once (it installs Chromium when that is what failed), then swipebatch doctor again. If a FAIL line remains, stop and tell the customer the line and its Fix: text, and point them to https://swipebatch.com/docs/troubleshooting. For the results as JSON, run swipebatch doctor --json.

  4. Activate the license. Tell the customer: "Please run swipebatch activate in your terminal and paste your license key when it asks. The key is not shown on screen." Wait for them, then run:

    swipebatch license
    

    Expect valid (<license id>, issued <date>). It never prints the key. If it prints missing, the key was not saved: ask the customer to run swipebatch activate again. If it prints invalid (<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 says SWIPEBATCH_LICENSE takes precedence, tell them that variable holds a different key and must be unset (or set to the new key).

  5. Connect yourself. Run the line for the agent you are.

    If you are Claude Code:

    swipebatch connect claude-code
    

    Expect SwipeBatch is connected to Claude Code. Start a new Claude Code session to use it. Check with claude mcp get swipebatch: it should show the path to Node.js, the path to SwipeBatch's bin.js and the argument mcp.

    If you are Codex:

    swipebatch connect codex
    

    Expect SwipeBatch is connected to Codex. Start a new Codex session to use it. Check with codex mcp get swipebatch: it should show the path to Node.js, the path to SwipeBatch's bin.js and the argument mcp.

    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, run swipebatch connect cursor to 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_carousel and export_campaign. Call get_version: it reports the version and the license state. If the tools are not listed after a restart, run swipebatch connect <agent> --print to 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.