AI-powered development platform with integrated Git hosting and deployment.
TFGrid AI Stack is an app that deploys a complete AI-powered development platform on a single VM. It automatically installs and configures three integrated components:
- Nginx Reverse Proxy: Public API gateway with routing, SSL termination, and monitoring
- AI Agent Service: AI-powered project creation and code generation (Node.js API)
- Gitea Git Server: Git repository hosting with web interface
All components run on the same VM and are accessible through clean URLs on a single domain.
Deploy the complete AI development environment:
tfgrid-compose up tfgrid-ai-stack- π€ AI-Powered Development: Create projects with AI assistance
- π¦ Integrated Git Hosting: Built-in Gitea for version control
- π Public Deployment: Automatic web deployment with SSL
- π Monitoring: Prometheus + Grafana dashboards
- π Secure Networking: WireGuard VPN for inter-VM communication
- β‘ One-Click Deployment: Single command setup
- π Automated Backups: Scheduled backups with retention policies
Internet
β
[Single VM]
βββ Nginx Reverse Proxy β routing, SSL, monitoring
βββ AI Agent Service β project creation & code generation
βββ Gitea Git Server β repository hosting & web interface
https://yourdomain.com/
βββ / β Gateway dashboard/API
βββ /git/ β Gitea web interface
βββ /api/ β AI Agent API endpoints
βββ /monitoring/ β Prometheus/Grafana
βββ /project1/ β AI-generated projects
tfgrid-compose up tfgrid-ai-stacktfgrid-compose exec tfgrid-ai-stack create "portfolio website"tfgrid-compose exec tfgrid-ai-stack projects# Get deployment URLs
tfgrid-compose address tfgrid-ai-stack
# SSH into VMs
tfgrid-compose ssh tfgrid-ai-stack# Monitor project logs
tfgrid-compose exec tfgrid-ai-stack monitor <project-name>
# Delete a project
tfgrid-compose exec tfgrid-ai-stack delete <project-name>
# Manual backup
tfgrid-compose exec tfgrid-ai-stack backup
# Restore from backup
tfgrid-compose exec tfgrid-ai-stack restore <backup-file>The pattern supports extensive customization through variables:
domain: Custom domain name for public accessssl_email: Email for SSL certificate (required if domain set)
vm_cpu/memory/disk: Single VM resources (all services co-located)
api_rate_limit: API rate limitingmax_concurrent_projects: Concurrent project creation limit
backup_retention_days: Backup retention periodbackup_schedule: Cron schedule for automated backups
- ThreeFold Grid account with sufficient TFT
- tfgrid-compose CLI installed
- SSH key configured
- CPU: 8 cores total (default)
- Memory: 16GB total (default)
- Disk: 200GB total (default)
- Cost: ~$15-20/month (varies by node pricing)
tfgrid-ai-stack/
βββ tfgrid-compose.yaml # App definition (single-vm pattern)
βββ deployment/ # Component orchestration hooks
β βββ setup.sh # Install all components on single VM
β βββ configure.sh # Configure nginx routing
β βββ healthcheck.sh # Verify component health
βββ scripts/ # AI project management scripts
βββ README.md # This file
βββ LICENSE # Apache 2.0
This app is maintained by TFGrid Studio. It integrates components from:
- tfgrid-ai-agent - AI coding assistant logic
- tfgrid-gitea - Git hosting setup
- Single-VM pattern from tfgrid-compose - Infrastructure
This is an official TFGrid Studio application. For support:
- Documentation: https://docs.tfgrid.studio
- Issues: https://github.com/tfgrid-studio/tfgrid-compose/issues