Docs Pigsty GitHub

Cloud Coding Sandbox Piglet Run

AI-Powered Development Environment with PostgreSQL

$ curl -fsSL https://repo.pigsty.cc/get | bash -s piglet
Piglet Run Architecture

What is Piglet Run?

πŸ€–

AI Coding Sandbox

Pre-installed Claude Code, VS Code, Jupyter

Python/Go/Node.js ready out of the box

🐘

Data Powerhouse

PostgreSQL 18 + 400+ Extensions

Vector, TimeSeries, Geo, Graph, Analytics

πŸ’Ύ

Shared Storage

JuiceFS stores workspace in database

Multi-Agent / Multi-User collaboration

Core Features

Development environment built for the AI era

⏱️ Time Machine

Restore to any point in time

  • Database PITR point-in-time recovery
  • File system snapshot support
  • AI broke your code? Roll back in seconds
Never fear data loss again Learn more
# Show backup information
pig pb info

# Restore to specific time
pig pb restore -t "2025-01-29 10:00:00"

πŸ”€ Instant Clone

Fork TB-scale databases in milliseconds

  • Copy-on-Write zero-copy cloning
  • 1TB database, 100ms to clone
  • Parallel branch development
Manage databases like Git Learn more
# Create database from template
pig pg psql -c "CREATE DATABASE dev TEMPLATE prod"

# Or restore backup to new location
pig pb restore --target-pgdata=/data/clone

🌐 One-Click Deploy

Built-in Nginx handles everything

  • Auto domain binding and SSL certificates
  • Reverse proxy, load balancing
  • From dev to prod in one command
Focus on code, not ops Learn more
# Check environment status
pig status

# Manage PostgreSQL
pig pg status

# View logs
pig pg log tail

πŸ“Š Full Observability

VictoriaMetrics + Grafana

  • 3000+ metrics out of the box
  • Database, system, app coverage
  • Dedicated Claude Code dashboard
See everything, control everything Learn more
Piglet Monitoring Dashboard

Built-in Services

Available after installation

Ready to get started?

One command to start your AI coding journey

$ curl -fsSL https://repo.pigsty.cc/get | bash -s piglet
Running Piglet