ssh root@76.13.242.128
cd /var/www/ai-generator
# Backup current
mv server server-backup-old
mkdir -p server/uploads server/temp
# Deploy new server
cat > server/server.js << 'SERVEREND'
[paste the server-cyberpunk.js content here]
SERVEREND
# Install dependencies
npm install
# Restart backend
pm2 restart allcd /var/www/ai-generator/client
# Install react-dropzone if not present
npm install react-dropzone
# Copy the new files
cat > src/App.js << 'APPEND'
[paste the App-cyberpunk.js content here]
APPEND
cat > src/cyberpunk-atlantean.css << 'CSSEND'
[paste the CSS content here]
CSSEND
cat > src/index.js << 'INDEXEND'
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './cyberpunk-atlantean.css';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<React.StrictMode><App /></React.StrictMode>);
INDEXEND
# Build
npm run build
# Copy to dist
rm -rf dist
mkdir -p dist
cp -r build/* dist/
# Restart frontend
pkill -f 'serve.*3000' || true
sleep 2
cd dist
nohup npx serve -s . -l tcp://0.0.0.0:3000 > /var/www/ai-generator/logs/frontend.log 2>&1 &- Go to https://huggingface.co/settings/tokens
- Click "New token"
- Name: "AI Image Generator"
- Role: "read"
- Click "Generate token"
- Copy the token (starts with
hf_)
Set it on your VPS:
ssh root@76.13.242.128
nano /var/www/ai-generator/.envAdd this line:
HUGGINGFACE_API_KEY=hf_your_token_hereSave: Ctrl+O, Enter, Ctrl+X
Restart:
pm2 restart all- Go to https://replicate.com/account/api-tokens
- Click "Create a new token"
- Name: "AI Image Generator"
- Copy the token (starts with
r8_)
Set it on your VPS:
ssh root@76.13.242.128
nano /var/www/ai-generator/.envAdd this line:
REPLICATE_API_TOKEN=r8_your_token_hereSave and restart:
pm2 restart all- Go to https://platform.openai.com/api-keys
- Click "Create new secret key"
- Name: "AI Image Generator"
- Copy the key (starts with
sk-)
Set it on your VPS:
ssh root@76.13.242.128
nano /var/www/ai-generator/.envAdd this line:
OPENAI_API_KEY=sk-your_key_hereSave and restart:
pm2 restart all- Cyberpunk/Matrix Theme: Green digital rain background
- Glitch Effects: Animated glitch text on title
- Neon Glows: Cyan/magenta color scheme
- Max Headroom Retro: 80s scan lines and effects
- Atlantean Accents: Teal highlights
- ✅ 6 Tabs: Generate, Advanced, Edit, Gallery, Workspace, System
- ✅ 10 Style Presets: Cyberpunk, Matrix, Atlantean, Max Headroom, Vaporwave, Steampunk, Fantasy, Sci-Fi, Retro, Horror
- ✅ 3 AI Providers: Hugging Face, OpenAI, Replicate
- ✅ Advanced Controls: Steps, CFG Scale, Resolution, Seed
- ✅ Batch Processing: Generate multiple images
- ✅ Image Editing: Upscale, Inpaint, Outpaint, Variations
- ✅ Enhanced Gallery: Grid/List views with filtering
- ✅ Workspace Management: Organize projects
- ✅ System Status: Real-time API status monitoring
- Better error handling
- More detailed logging
- Enhanced prompt processing
- Optimized build
- Responsive design
| App | URL |
|---|---|
| 🧠 Neural-OS | http://76.13.242.128 |
| 🎨 AI Generator v3.0 | http://76.13.242.128:3000 |
| 👤 Holosphere | https://holosphere.verilysovereign.online |
- Add your API key to
/var/www/ai-generator/.env - Restart with
pm2 restart all
- Check API key is valid
- Verify you have credits on the provider
- Check logs:
pm2 logs
- Check backend:
pm2 status - Verify port 5000:
ss -tlnp | grep 5000 - Check frontend:
ss -tlnp | grep 3000
Press Ctrl + Shift + R for hard refresh
- Node.js: 18+
- Memory: 2GB+ recommended
- Storage: 10GB+ for generated images
- Network: Open ports 3000 and 5000
Built with ❤️ using React, Node.js, and Cyberpunk aesthetics