Ecode2254/replit-alternative
๐ Replit Alternative โ Free Self-Hosted Coding Environment A fully free, self-hosted coding platform combining the best features from Replit, Gitpod, GitHub Codespaces, and more. Run your own cloud IDE with AI assistance, instant deployments, and collaborative features. โจ Features Feature What You Get ๐ฅ๏ธ Browser IDE Full VS Code in your browser (code-server) ๐ค AI Coding Assistant Local LLM-powered autocomplete & chat (Continue.dev + Ollama) ๐โฆ See the full description on the dataset page: https://huggingface.co/datasets/Ecode2254/replit-alternative.
๐ Replit Alternative โ Free Self-Hosted Coding Environment
A fully free, self-hosted coding platform combining the best features from Replit, Gitpod, GitHub Codespaces, and more. Run your own cloud IDE with AI assistance, instant deployments, and collaborative features.
โจ Features
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ YOUR SERVER / VPS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Traefik โ โ Coolify โ โ code-server โ โ
โ โ (SSL/Proxy) โ โ (PaaS) โ โ (VS Code) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Ollama โ โ Filebrowser โ โ Uptime Kuma โ โ
โ โ (Local LLM) โ โ (Files) โ โ (Monitoring) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ Quick Start
Option 1: One-Command Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/yourusername/replit-alternative/main/install.sh | bashOption 2: Manual Install
# 1. Clone the repo
git clone https://github.com/yourusername/replit-alternative.git
cd replit-alternative
# 2. Configure environment
cp .env.example .env
# Edit .env with your domain and passwords
# 3. Start everything
make install๐ Requirements
- Server: Any Linux machine (VPS, old PC, Raspberry Pi)
- Minimum: 2 CPU, 4GB RAM
- Recommended: 4 CPU, 8GB+ RAM (for AI models)
- OS: Ubuntu 20.04+, Debian 11+, or any Docker-capable Linux
- Domain: Optional (use
*.localhostfor local testing) - Docker: Will be auto-installed if missing
Free VPS Options
- Oracle Cloud Free Tier โ 2x AMD instances forever free
- Hetzner CX21 โ โฌ4.51/mo (very cheap)
- GitHub Codespaces โ Free tier available
- Your old laptop/PC at home
๐ฎ Usage
Start/Stop Services
make start # Start all services
make stop # Stop all services
make restart # Restart all services
make status # Check service status
make logs # View all logsAccess Your Services
AI Coding Assistant Setup
- Open VS Code at
http://localhost:8443 - Install the Continue extension from the marketplace
- It will automatically connect to your local Ollama instance
- Start coding with AI autocomplete and chat!
Pull AI Models
make pull-models
# Or manually:
docker compose exec ollama ollama pull codellama:7b-code
docker compose exec ollama ollama pull qwen2.5-coder:7bUsing Devcontainers
Pre-configured environments for:
- ๐ Python โ Python 3.11 + Jupyter + Black
- ๐ข Node.js โ Node 20 + TypeScript + Prettier
- ๐ต Go โ Go 1.21 + gopls
- ๐ฆ Rust โ Rust + rust-analyzer
- โ Java โ Java 21 + Maven + Gradle
- ๐ Full-Stack โ Node + Python + PostgreSQL
Use them in VS Code: Ctrl+Shift+P โ Dev Containers: Open Folder in Container
โ๏ธ Configuration
Environment Variables (.env)
Custom Domains
- Point DNS A records to your server IP:
code.yourdomain.comโ Your Server IPdeploy.yourdomain.comโ Your Server IPfiles.yourdomain.comโ Your Server IP
- Update
.envwith your domains
- Restart:
make restart
Traefik will automatically obtain SSL certificates via Let's Encrypt.
๐ Security
- All services behind Traefik reverse proxy with auto-SSL
- Code-server password protected
- Coolify has its own authentication
- Ollama only accessible internally (not exposed publicly)
- Filebrowser requires login
โ ๏ธ Important: Change default passwords in .env before exposing to the internet!
๐ ๏ธ Advanced
Add Daytona (Dev Environment Manager)
# Install Daytona CLI
curl -fsSL https://get.daytona.io | bash
# Create workspace from any Git repo
daytona create https://github.com/your/projectGPU Support (NVIDIA)
Uncomment the deploy section in docker-compose.yml for the ollama service:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]Backup & Restore
make backup # Create backup
# Restore from backup:
docker run --rm -v replit-alternative_code-server-data:/data -v $(pwd)/backups:/backup alpine sh -c "cd /data && tar xzf /backup/replit-backup-XXXX.tar.gz"๐ Project Structure
replit-alternative/
โโโ docker-compose.yml # Main orchestration
โโโ .env.example # Configuration template
โโโ install.sh # One-command installer
โโโ Makefile # Quick commands
โโโ README.md # This file
โโโ continue-config/ # AI assistant settings
โ โโโ config.json
โโโ devcontainers/ # Pre-built environments
โ โโโ python/
โ โโโ nodejs/
โ โโโ go/
โ โโโ rust/
โ โโโ java/
โ โโโ fullstack/
โโโ filebrowser.json # File manager config๐ค Contributing
Contributions welcome! Areas to improve:
- More devcontainer templates
- Better documentation
- Additional integrations
- Performance optimizations
๐ License
MIT License โ use it, modify it, sell it, whatever. It's yours.
๐ Credits
Built with amazing open-source projects:
- code-server โ VS Code in browser
- Coolify โ Self-hosted PaaS
- Ollama โ Local LLMs
- Continue.dev โ AI coding assistant
- Traefik โ Reverse proxy & SSL
- Daytona โ Dev environment manager
Enjoy your free, self-hosted coding environment! ๐
