Skip to content

Latest commit

 

History

History
593 lines (403 loc) · 13.3 KB

File metadata and controls

593 lines (403 loc) · 13.3 KB

Installation Guide

This guide walks you through installing Babysitter on your system. By the end, you will have a fully working Babysitter installation ready for your first run.

Estimated time: 5-10 minutes


Table of Contents


Prerequisites Check

Before installing Babysitter, let's verify your system is ready.

Required: Node.js 20.0.0+

node --version

Expected output: v20.x.x or v22.x.x

If you see a lower version or "command not found," install Node.js:

Using nvm (recommended):

# Install nvm if you don't have it
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# Restart your terminal, then:
nvm install 22
nvm use 22

Direct download: Visit nodejs.org and download the LTS version.

Required: Claude Code

claude --version

Expected output: Claude Code version information

If Claude Code is not installed, follow the Claude Code installation guide first.

Required: jq (JSON processor)

Many Babysitter commands output JSON that is processed with jq. Install it for your platform:

jq --version

Expected output: jq-1.6 or higher

Installation:

# macOS
brew install jq

# Ubuntu/Debian
sudo apt-get install jq

# Fedora/RHEL
sudo dnf install jq

# Windows (via Chocolatey)
choco install jq

# Windows (via Scoop)
scoop install jq

Verification Checkpoint

Run this command to verify all prerequisites:

echo "Node: $(node --version)" && echo "npm: $(npm --version)" && echo "Claude: $(claude --version 2>&1 | head -1)" && echo "jq: $(jq --version)"

You should see version numbers for all four tools. If not, address the missing requirement before continuing.


Installation Methods

Method 1: Quick Install (Recommended)

Copy and paste this single command to install everything:

claude plugin marketplace add a5c-ai/babysitter && \
claude plugin install --scope user babysitter@a5c.ai && \
claude plugin enable --scope user babysitter@a5c.ai

Then restart Claude Code and skip to Verification.

Method 2: Step-by-Step Install

If you prefer to understand each step, follow along below.

Step 1: Install the CLI Packages

Install the Babysitter CLI packages globally:

npm install -g @a5c-ai/babysitter-sdk@latest

What this installs:

  • @a5c-ai/babysitter-sdk - Orchestration runtime and commands

Expected output:

added 1 packages in 15s

Verify installation:

npx -y @a5c-ai/babysitter-sdk@latest --version

Step 2: Install the Claude Code Plugin

The plugin integrates Babysitter with Claude Code, providing the /babysit skill.

# Add the plugin repository
claude plugin marketplace add a5c-ai/babysitter

# Install the plugin
claude plugin install --scope user babysitter@a5c.ai

# Enable the plugin
claude plugin enable --scope user babysitter@a5c.ai

Expected output:

Plugin 'babysitter@a5c.ai' installed successfully
Plugin 'babysitter@a5c.ai' enabled

Step 3: Restart Claude Code

Important: You must restart Claude Code for the plugin to load.

  • Close all Claude Code windows/sessions
  • Reopen Claude Code

Platform-Specific Instructions

macOS

Prerequisites:

# Install Homebrew if you don't have it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Node.js via nvm (recommended)
brew install nvm
mkdir ~/.nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"' >> ~/.zshrc
source ~/.zshrc

nvm install 22
nvm use 22

Installation:

npm install -g @a5c-ai/babysitter-sdk@latest

Permission Issues? If you see EACCES permission errors:

# Option 1: Fix npm permissions (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc

# Then retry installation
npm install -g @a5c-ai/babysitter-sdk@latest

Linux

Ubuntu/Debian:

# Install Node.js via NodeSource
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs

# Verify
node --version  # Should show v22.x.x

# Install Babysitter
npm install -g @a5c-ai/babysitter-sdk@latest

Fedora/RHEL/CentOS:

# Install Node.js via NodeSource
curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
sudo yum install -y nodejs

# Install Babysitter
npm install -g @a5c-ai/babysitter-sdk@latest

Arch Linux:

sudo pacman -S nodejs npm
npm install -g @a5c-ai/babysitter-sdk@latest

Windows

Recommended: Use WSL2 (Windows Subsystem for Linux)

WSL2 provides the best experience for Babysitter on Windows:

# In PowerShell (Admin)
wsl --install

# Restart your computer, then open Ubuntu from Start Menu
# Follow the Linux (Ubuntu) instructions above

Native Windows (Git Bash):

  1. Install Node.js for Windows
  2. Install Git for Windows (includes Git Bash)
  3. Open Git Bash and run:
npm install -g @a5c-ai/babysitter-sdk@latest

Note: Some shell commands in Babysitter may require Git Bash or WSL. PowerShell/CMD support is limited.


Plugin Installation

The Claude Code plugin provides the /babysit skill that orchestrates Babysitter runs.

Install the Plugin

# Step 1: Add the marketplace repository
claude plugin marketplace add a5c-ai/babysitter

Expected: Marketplace 'a5c.ai' added

# Step 2: Install the plugin
claude plugin install --scope user babysitter@a5c.ai

Expected: Plugin 'babysitter@a5c.ai' installed

# Step 3: Enable the plugin
claude plugin enable --scope user babysitter@a5c.ai

Expected: Plugin 'babysitter@a5c.ai' enabled

Verify Plugin Installation

After restarting Claude Code, run:

/skills

You should see "babysit" in the list of available skills.

If you don't see it:

  1. Make sure you restarted Claude Code
  2. Try running claude plugin list to see installed plugins
  3. Check the Troubleshooting section

Recommended Tools

The following tools enhance your workflow when using Babysitter. These are optional but highly recommended for a more productive development experience.

Playwright Skill Plugin

Browser automation for testing and validation

The Playwright Skill Plugin enables Claude to write and execute browser automation tests, take screenshots, fill forms, and validate web applications. This is essential for testing web applications and verifying UI functionality during development.

Why use it:

  • Automate browser-based testing directly through Claude
  • Capture screenshots for visual validation
  • Test form submissions and user interactions
  • Verify web application behavior without leaving your terminal

Installation:

Run these commands in Claude Code CLI:

# Add the plugin from marketplace
/plugin marketplace add lackeyjb/playwright-skill

# Install the skill
/plugin install playwright-skill@playwright-skill

# Run setup to configure Playwright browsers
cd ~/.claude/plugins/marketplaces/playwright-skill/skills/playwright-skill && npm run setup

Note: Restart Claude Code after installation to activate the plugin.

GitHub CLI (gh)

Official GitHub command-line interface

The GitHub CLI allows Claude to seamlessly manage GitHub issues, pull requests, actions, and releases through natural language. Claude can create PRs, manage issues, check CI status, and debug GitHub Actions failures directly from the terminal.

Why use it:

  • Create and manage pull requests without leaving your workflow
  • Track and update issues through natural language commands
  • Monitor CI/CD pipeline status and debug failures
  • Manage releases and repository settings efficiently

Installation:

# macOS
brew install gh

# Linux (Debian/Ubuntu)
sudo apt install gh

# Linux (Fedora/RHEL)
sudo dnf install gh

# Windows
winget install GitHub.cli

Post-installation:

Authenticate with your GitHub account:

gh auth login

Follow the interactive prompts to complete authentication. This grants Claude access to manage your repositories and perform GitHub operations on your behalf.


Verification

Let's confirm everything is working correctly.

Verification Checklist

Run each command and verify the expected result:

1. SDK Installed

npx -y @a5c-ai/babysitter-sdk@latest --version

Expected: Version number (e.g., 0.0.123)

2. Plugin Active

In Claude Code, type:

/skills

Expected: "babysit" appears in the list

3. Full Integration Test

In Claude Code:

claude "/babysitter:call echo hello world"

Expected: Babysitter creates a run and executes successfully

Verification Summary

Check Command Expected
jq jq --version jq-1.6 or higher
SDK npx @a5c-ai/babysitter-sdk --version Version number
Plugin /skills in Claude Code "babysitter:call" listed

All checks passed? You're ready for the Quickstart!


Keeping Updated

Babysitter is actively developed. Keep your installation current for the latest features and fixes.

Update SDK Packages

npm update -g @a5c-ai/babysitter @a5c-ai/babysitter-sdk

Update Claude Code Plugin

# Update the marketplace repository
claude plugin marketplace update a5c.ai

# Update the plugin
claude plugin update babysitter@a5c.ai

Tip: Run updates regularly, ideally daily or weekly.

Check Current Versions

# SDK version
npx -y @a5c-ai/babysitter-sdk@latest --version

# Plugin version
claude plugin list | grep babysitter

Troubleshooting

Installation Issues

"command not found: npm" or "command not found: node"

Problem: Node.js is not installed or not in your PATH.

Solution:

  1. Install Node.js from nodejs.org
  2. Restart your terminal
  3. Verify: node --version

"EACCES: permission denied" during npm install

Problem: npm doesn't have permission to install global packages.

Solution (macOS/Linux):

# Create a directory for global packages
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'

# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc

# Retry installation
npm install -g @a5c-ai/babysitter-sdk@latest

"Cannot find module '@a5c-ai/babysitter-sdk'"

Problem: SDK not installed globally or PATH issue.

Solution:

# Verify global packages
npm list -g @a5c-ai/babysitter-sdk

# If not found, install
npm install -g @a5c-ai/babysitter-sdk@latest

# Alternative: use npx (always works)
npx -y @a5c-ai/babysitter-sdk@latest --version

Plugin Issues

Plugin not appearing in /skills

Problem: Plugin not installed, not enabled, or Claude Code not restarted.

Solution:

# Check if installed
claude plugin list

# If not listed, install
claude plugin marketplace add a5c-ai/babysitter
claude plugin install --scope user babysitter@a5c.ai
claude plugin enable --scope user babysitter@a5c.ai

# Restart Claude Code completely

"Plugin not found: babysitter@a5c.ai"

Problem: Plugin repository not added.

Solution:

# Add the marketplace first
claude plugin marketplace add a5c-ai/babysitter

# Then install
claude plugin install --scope user babysitter@a5c.ai

Runtime Issues

"Run encountered an error"

Problem: Journal conflict or corrupted state.

Solution:

# Check journal integrity
cat .a5c/runs/<runId>/journal/journal.jsonl | head

# Ask Claude to analyze
claude "Analyze the babysitter run error for <runId> and try to recover"

Getting More Help

If you're still stuck:

  1. Check the logs: Look for error messages in terminal output
  2. Search issues: GitHub Issues
  3. Ask the community: GitHub Discussions
  4. Report a bug: Create a new issue with:
    • Your OS and version
    • Node.js version
    • Claude Code version
    • Full error message
    • Steps to reproduce

Next Steps

Congratulations! You have Babysitter installed and ready to go.

Your next step: Quickstart Tutorial - Build your first feature in 10 minutes!


Quick Reference

Commands you'll use most often:

# Start a new babysitter run
claude "/babysitter:call <your request>"

# Resume a run
claude "/babysitter:call resume the babysitter run"

# Update everything
npm update -g @a5c-ai/babysitter @a5c-ai/babysitter-sdk
claude plugin update babysitter@a5c.ai