集中式 SDN 控制器,可通过现代化的 Web 界面配置、部署和监控多个站点的 VyOS 路由器
Multi-tenant network management platform to configure, deploy, and monitor VyOS instances across multiple sites. Quick Start · Documentation · Discord · Troubleshooting
Give us a ⭐ star to support us❤️
VyManager is an open‑source, enterprise‑grade control plane for VyOS routers. It provides a modern web interface to manage multiple instances across different sites, with role‑based access control, live dashboards, and configuration deployment – all from a single pane of glass.
User Interface supports Light, Dark and Custom themes.
The fastest way to get VyManager running is with our automated install script (Linux only) or the manual Docker Compose method.
Before you begin, make sure your VyOS routers are API‑ready – see the Prerequisites section below.
Regardless of which installation method you choose, you must first prepare your VyOS routers.
On each VyOS router you want to manage, SSH in and run:
configure
set service https api keys id vymanager key YOUR_SECURE_API_KEY
set service https api rest
set service https api graphql
set service https api graphql authentication type key
commit
save
exit[!IMPORTANT]
- GraphQL is required for live dashboard data.
- The API key you set here will be used in VyManager when adding the instance.
- Keep this key secure – it grants full access to the router’s API.
Once these prerequisites are satisfied, proceed with your preferred installation method below.
[!IMPORTANT]
The install script supports Ubuntu/Debian, Fedora, CentOS/RHEL, Arch Linux, and openSUSE. It automatically installs Docker, Docker Compose, and pulls the VyManager stack.
Run the following command as root or a user with sudo privileges:
wget https://raw.githubusercontent.com/Community-VyProjects/VyManager/beta/install.sh && bash install.shThe script will:
vymanager directory with a pre‑populated .env and docker-compose.yml.[!NOTE]
Your VyOS routers must already have the REST API and GraphQL enabled (see Prerequisites). The script does not configure your routers – only VyManager itself.
Run VyManager on the router it manages. Save the script, read it, then run it as vyos. Do not pipe curl into vbash.
curl -fsSL https://raw.githubusercontent.com/Community-VyProjects/VyManager/beta/install-vyos.sh -o install-vyos.sh
less install-vyos.sh
vbash install-vyos.shDetails (prompts, dest NAT, WAN warning): On-box VyOS install.
mkdir vymanager && cd vymanagerdocker-compose.ymlCopy the docker-compose.yml from the repository, or use the snippet below:
….env FileCreate a .env file in the same directory. You must change the following values:
| Variable | Description | Generate with |
|---|---|---|
POSTGRES_PASSWORD |
Database password (must match in DATABASE_URL) |
openssl rand -hex 32 |
BETTER_AUTH_SECRET |
Session token secret (must be the same in both places in the file) | openssl rand -base64 32 |
SSH_ENCRYPTION_KEY |
Encryption key for SSH private keys at rest | openssl rand -hex 32 |
BETTER_AUTH_URL / NEXT_PUBLIC_APP_URL |
The URL users will use to access VyManager | e.g., http://192.168.1.50:3000 |
TRUSTED_ORIGINS |
Comma‑separated list of all allowed origins | e.g., http://192.168.1.50:3000,http://localhost:3000 |
Example .env (replace placeholders):
# Shared
BETTER_AUTH_SECRET=Change-This-To-Something-Secret
# Backend
DATABASE_URL=postgresql://vymanager:CHANGE_ME_POSTGRES_PASSWORD@postgres:5432/vymanager
FRONTEND_URL=http://frontend:3000
SSH_ENCRYPTION_KEY=Change-This-To-A-Hex-String
# Frontend
NODE_ENV=production
VYMANAGER_ENV=production
BETTER_AUTH_URL=http://:3000
NEXT_PUBLIC_APP_URL=http://:3000
BACKEND_URL=http://backend:8000
TRUSTED_ORIGINS=http://:3000,http://localhost:3000[!WARNING]
Never commit the.envfile to version control. Keep your secrets safe.
docker compose up -dWait a minute for all services to become healthy, then open your browser to http://:3000.
If your VyOS routers use certificates signed by a private CA, you can add your CA certificates to the backend container:
certs directory next to your docker-compose.yml:mkdir certs.crt files inside:cp /path/to/my-ca.crt ./certs/docker compose restart backend[!NOTE]
All.crtfiles in that directory will be automatically imported on startup.
On first visit, the onboarding wizard will guide you through:
After completing the wizard, you’ll be logged in and redirected to the dashboard.
Run the update from the directory containing your docker-compose.yml file. For installations created by the automated script, this is /opt/vymanager:
cd /opt/vymanager
docker compose pull && docker compose build --no-cache && docker compose up -d --force-recreateThis pulls the latest images, rebuilds the local services without using cached layers, and recreates the containers. Your PostgreSQL data remains in the postgres_data volume. If you created the deployment manually, run the same command from your project directory instead.
# View logs
docker compose logs -f
# Stop all services
docker compose down
# Restart
docker compose restart
# Pull latest images and restart services
docker compose pull
docker compose up -d
# Remove everything (including database volume)
docker compose down -vVyManager supports multiple VyOS versions (1.4, 1.5+) using a version‑aware backend architecture.
The backend uses a three‑layer architecture:
Routers (API Endpoints)
↓
Builders (Batch Operations)
↓
Mappers (Version‑Specific Commands)
↓
VyOS Device (1.4 or 1.5)Every feature exposes a /capabilities endpoint that tells the frontend which features are available for the connected VyOS version. The frontend conditionally shows/hides features based on these capabilities.
[!NOTE]
This design ensures that VyManager remains compatible with future VyOS releases without requiring major rewrites.
If you want to contribute or run VyManager from source, follow the instructions below.
cd frontend
# Install dependencies
npm install
# Run dev server (with hot reload)
npm run dev
# Type check
npm run type-check
# Lint
npm run lint
# Build for production
npm run buildcd backend
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On暂无开放 Issues,或尚未同步最近议题。