OpenPets Installation Guide
Quick Install
Install OpenPets with a single command:
curl -fsSL https://pets.raggle.co/install | bashOr use the direct GitHub URL:
curl -fsSL https://raw.githubusercontent.com/raggle-ai/raggle-repo/main/core/openpets/install.sh | bashOr download and inspect before running:
curl -fsSL https://pets.raggle.co/install -o install.sh
chmod +x install.sh
./install.shWhat the Installer Does
The install script will:
- ✅ Check for required dependencies (Node.js, npm)
- 📦 Download the latest
openpetspackage from npm - 📥 Install to
~/.openpetsdirectory - 🛠️ Set up
petsandpets-mcpCLI commands - 🔧 Add to your shell PATH automatically
- ✅ Verify the installation
Installation Options
Install Latest Version
curl -fsSL https://raw.githubusercontent.com/raggle-ai/raggle-repo/main/core/openpets/install.sh | bashInstall Specific Version
VERSION=1.0.1 curl -fsSL https://pets.raggle.co/install | bashManual Installation
If you prefer to install via npm/pnpm directly:
npm install -g openpetsOr with pnpm:
pnpm add -g openpetsPost-Installation
After installation, you can use these commands:
pets --help # Show available commands
pets list # List installed pets
pets validate ./pets/my-pet # Validate a specific pet directory
pets-mcp # Start MCP serverInstallation Location
OpenPets is installed to:
- Binaries:
~/.openpets/bin/ - Libraries:
~/.openpets/lib/node_modules/
The installer automatically adds ~/.openpets/bin to your PATH.
Requirements
- Node.js 18+ (recommended: Node.js 20+)
- npm (comes with Node.js)
- Bash shell (for install script)
- curl (for downloading the installer)
Supported Platforms
- ✅ macOS (Intel & Apple Silicon)
- ✅ Linux (x64 & ARM64)
- ✅ Windows (via WSL or Git Bash)
Troubleshooting
Node.js Not Found
Install Node.js from https://nodejs.org/
Permission Denied
If you see permission errors during installation:
# Ensure install directory is writable
mkdir -p ~/.openpetsPackage Not Found
If the package hasn't been published to npm yet:
# Install from the repository directly
cd /path/to/raggle-repo/core/openpets
pnpm install
pnpm run build
npm linkCommand Not Found After Install
If pets command isn't found after installation:
Restart your shell or source your config:
bash# For zsh source ~/.zshrc # For bash source ~/.bashrc # For fish source ~/.config/fish/config.fishCheck PATH:
bashecho $PATH | grep -o ~/.openpets/binManually add to PATH if needed:
bashexport PATH="$HOME/.openpets/bin:$PATH"
Reinstalling
To reinstall or upgrade:
curl -fsSL https://pets.raggle.co/install | bashUninstalling
To completely remove OpenPets:
# Remove installation directory
rm -rf ~/.openpets
# Remove PATH entry from your shell config
# Edit ~/.zshrc, ~/.bashrc, or ~/.config/fish/config.fish
# and remove the line containing: ~/.openpets/binFor Developers
Local Development
If you're developing OpenPets locally:
# Clone the repository
git clone https://github.com/raggle-ai/pets.git
cd raggle-repo/core/openpets
# Install dependencies
pnpm install
# Build all packages
pnpm run build
# Link for local testing
cd src/core
npm linkPublishing Updates
When the package is published to npm, users can upgrade with:
VERSION=x.x.x curl -fsSL https://pets.raggle.co/install | bashDesign Philosophy
The installer is designed to be:
- Simple: Single command installation
- Safe: Installs to user directory (no sudo required)
- Idempotent: Safe to run multiple times
- Fast: Minimal dependencies and smart caching
- Reliable: Checks dependencies before proceeding
- Informative: Clear feedback at each step
- Familiar: Similar to popular tools like OpenCode