Vencloud is the official cloud settings sync API for Vencord, enabling cross-device synchronization of your Vencord/euidcord settings. This repository provides everything you need to self-host your own Vencloud instance.
- Cross-device sync - Access your Vencord settings from any device
- Secure authentication - Discord OAuth2 integration
- Easy deployment - One-click Railway deployment
- Privacy-focused - Your data stays on your server
- Fast & reliable - Built with Go and Redis
- Customizable - Full control over your instance
- Click the Railway button above or go to Railway
- Railway will automatically:
- Create a new project
- Add Redis database
- Set up all environment variables
- Only customize:
- Discord Client ID
- Discord Client Secret
- Deploy!
Click to expand manual setup instructions
- Go 1.23+ (for local development)
- Redis server
- Discord Application (for OAuth)
-
Fork and clone the repository:
git clone https://github.com/Monstroxx/Vencloud.git cd Vencloud
-
Install dependencies:
go mod download
-
Configure environment:
cp .env.example .env # Edit .env with your configuration
-
Run with Docker:
docker-compose up -d
-
Or run natively:
go run main.go
-
Create Discord Application:
- Go to Discord Developer Portal
- Click "New Application"
- Enter a name (e.g., "My Vencloud")
- Go to "OAuth2" β "General"
-
Get credentials:
- Copy Client ID and Client Secret
- Add Redirect URI:
https://your-domain.railway.app/v1/oauth/callback
-
Update Railway variables:
DISCORD_CLIENT_ID=your_client_id DISCORD_CLIENT_SECRET=your_client_secret
Variable | Description | Default | Required |
---|---|---|---|
HOST |
Server host | 0.0.0.0 |
No |
PORT |
Server port | 8080 |
No |
REDIS_URI |
Redis connection string | redis:6379 |
Yes |
DISCORD_CLIENT_ID |
Discord OAuth Client ID | - | Yes |
DISCORD_CLIENT_SECRET |
Discord OAuth Client Secret | - | Yes |
DISCORD_REDIRECT_URI |
Discord OAuth Redirect URI | - | Yes |
PEPPER_SETTINGS |
Settings encryption pepper | - | Yes |
PEPPER_SECRETS |
Secrets encryption pepper | - | Yes |
ROOT_REDIRECT |
Root redirect URL | https://vencord.dev |
No |
SIZE_LIMIT |
Max settings size (bytes) | 1048576 |
No |
ALLOWED_USERS |
Comma-separated Discord User IDs | - | No |
PROXY_HEADER |
Reverse proxy header | X-Forwarded-For |
No |
PROMETHEUS |
Enable Prometheus metrics | false |
No |
Use our pre-configured template for easy deployment:
# Copy railway-template.env to Railway Variables
# Only customize Discord credentials, everything else is auto-generated
- Open Vencord (in Goofcord or browser)
- Go to Settings β Cloud β Custom Server
- Enter your server URL:
https://your-domain.railway.app
- Save and test
- β Vencord (Desktop)
- β euidcord (Goofcord)
- β Vencord Web (Browser)
Method | Endpoint | Description | Auth Required |
---|---|---|---|
GET |
/v1 |
Health check | No |
GET |
/v1/oauth/settings |
OAuth settings page | No |
GET |
/v1/oauth/callback |
OAuth callback | No |
GET |
/v1/settings |
Get user settings | Yes |
PUT |
/v1/settings |
Update user settings | Yes |
HEAD |
/v1/settings |
Check if settings exist | Yes |
DELETE |
/v1/settings |
Delete user settings | Yes |
DELETE |
/v1 |
Delete all user data | Yes |
- β One-click deployment
- β Automatic HTTPS
- β Built-in Redis
- β Auto-scaling
- β Free tier available
- Encrypted storage - All settings are encrypted with your pepper keys
- OAuth2 authentication - Secure Discord integration
- HTTPS only - All communication encrypted
- No data collection - Your data stays on your server
- Use strong, unique pepper keys
- Regularly update dependencies
- Monitor access logs
- Use environment variables for secrets
- Enable user whitelisting if needed
Redis Connection Failed
panic: dial tcp: lookup redis: no such host
- Solution: Add Redis database to your Railway project
Discord OAuth Error
error: Invalid code
- Solution: Check Client ID, Secret, and Redirect URI
Settings Not Syncing
- Solution: Verify server URL in Vencord settings
Enable detailed logging by setting:
PROMETHEUS=true
- π Documentation: Vencord Wiki
- π¬ Discord: Vencord Support Server
- π Issues: GitHub Issues
curl https://your-domain.railway.app/v1
curl https://your-domain.railway.app/metrics
- Free Tier: $5 credits/month
- Pro Plan: $20/month unlimited
- Pay-as-you-go: $0.10/GB RAM/hour
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
- Vencord - The amazing Discord client mod
- Railway - Excellent deployment platform
- Go Fiber - Fast web framework
- Redis - In-memory data store
Made with β€οΈ for the Vencord community