pvetui

module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2025 License: MIT

README ยถ

pvetui

A Terminal User Interface For Proxmox Virtual Environment

Pronounced: peeve-tooey

Features โ€ข Screenshots โ€ข Installation โ€ข Configuration โ€ข Usage โ€ข Theming โ€ข VNC Console

GitHub release License Go Version Build Status Total Downloads

https://github.com/user-attachments/assets/c8e1183a-7204-47ac-9a15-e39ba8e275ef

๐Ÿš€ Features

  • Lightning Fast: Intelligent caching for responsive performance
  • Complete Management: VMs, containers, nodes, and cluster resources
  • Multi-Profile Support: Manage multiple Proxmox connections with profile switching
  • Automatic Migration: Legacy configs seamlessly migrate to modern profile-based format
  • Secure Authentication: API tokens or password-based auth with automatic renewal
  • Integrated Shells: SSH directly to nodes, VMs, and containers
  • VNC Console Access: Embedded noVNC client with automatic authentication
  • Community Scripts: Install Proxmox community scripts directly from the TUI
  • Modern Interface: Vim-style navigation with customizable key bindings
  • Flexible Theming: Automatic adaptation to terminal emulator color schemes
  • Comprehensive Documentation: Detailed guides for configuration, theming, and development

๐Ÿ“ธ Screenshots

Node Management
Node Management - Real-time cluster monitoring and control

Guest Management
Guest Management - VM and container operations

๐Ÿ“ธ See docs/SCREENSHOTS.md for a complete showcase of all available screenshots and interface features

๐Ÿ“ฆ Installation

Quick Start

From Pre-compiled Binaries:

  1. Download from Releases
  2. Extract and run: ./pvetui

macOS Users: You may encounter Gatekeeper warnings with pre-compiled binaries. See Troubleshooting Guide for solutions including bypassing the warning or building from source.

From Source:

git clone --recurse-submodules https://github.com/devnullvoid/pvetui.git
cd pvetui
make install  # Build and install from source
# or: make install-go  # Install via Go toolchain

Note: The go install github.com/devnullvoid/pvetui/cmd/pvetui@latest command does not work because it doesn't fetch git submodules required for the embedded noVNC client. Use the source installation method above instead.

๐Ÿ”ง Configuration

First Run & Interactive Config Wizard

  • On first run, the app will offer to create and edit a config file in a user-friendly TUI wizard
  • Launch the wizard anytime with --config-wizard
  • Create and manage multiple connection profiles with validation
  • Edit, validate, and save your config (supports SOPS-encrypted files)
  • Only one authentication method (password or token) per profile is allowed
  • All errors and confirmations are shown in clear, interactive modals

Configuration Format

pvetui uses a modern multi-profile configuration format that supports multiple Proxmox connections:

profiles:
  default:
    addr: "https://your-proxmox-host:8006"
    user: "your-user"
    realm: "pam"
    # Choose one authentication method:
    password: "your-password"           # Method 1: Password auth
    # OR
    token_id: "your-token-id"          # Method 2: API token (recommended)
    token_secret: "your-secret"
    insecure: false
    ssh_user: "your-ssh-user"

  work:
    addr: "https://work-proxmox:8006"
    user: "workuser"
    token_id: "worktoken"
    token_secret: "worksecret"
    realm: "pam"
    insecure: false
    ssh_user: "workuser"

default_profile: "default"
debug: false

Profile Management

The built-in profile manager allows you to:

  • Switch between profiles (e.g., home, work, development)
  • Add new profiles with different Proxmox connections
  • Edit existing profiles with validation
  • Delete profiles with confirmation
  • Set default profile for automatic connection

Access the profile manager through the global menu.

  1. In Proxmox web interface: Datacenter โ†’ Permissions โ†’ API Tokens
  2. Click Add โ†’ Set user (e.g., root) โ†’ Enter token ID
  3. Copy the generated Token ID and Secret to your config

Note: Proxmox displays the Token ID in the form user@realm!tokenid (for example: root@pam!mytoken). When configuring pvetui, split those parts into separate fields:

profiles:
  default:
    addr: "https://your-proxmox-host:8006"
    user: "root"          # from user@realm!tokenid โ†’ user
    realm: "pam"          # from user@realm!tokenid โ†’ realm
    token_id: "mytoken"   # from user@realm!tokenid โ†’ tokenid
    token_secret: "YOUR_SECRET"

Encrypted Configuration

Supports SOPS encrypted config files. Point to an encrypted YAML file with --config and it will decrypt automatically.

๐Ÿ“– For detailed configuration options, key bindings, theming, and advanced features, see docs/CONFIGURATION.md

๐Ÿ“š Complete documentation is available in the docs/ folder

๐Ÿ”Œ Usage

# Auto-detects config at ~/.config/pvetui/config.yml
./pvetui

# Or specify custom config
./pvetui --config /path/to/config.yml

Command Line Options

Flag Short Description
--config -c Path to YAML config file
--profile -p Connection profile to use (overrides default_profile)
--no-cache -n Disable caching
--version -v Show version information
--config-wizard -w Launch interactive config wizard and exit
--addr Proxmox API URL
--user Proxmox username
--password Proxmox password
--token-id Proxmox API token ID
--token-secret Proxmox API token secret
--realm Proxmox realm
--insecure Skip TLS verification
--api-path Proxmox API path
--ssh-user SSH username
--debug Enable debug logging
--cache-dir Cache directory path

Environment Variables: All flags can also be set via environment variables with PVETUI_ prefix (e.g., PVETUI_ADDR, PVETUI_USER).

Key Bindings

Key Action Key Action
h j k l Navigate Alt+1/2/3 Switch views
Enter Select [ ] Previous/Next view
s SSH Shell v VNC Console
m Context Menu g Global Menu
/ Search a Auto-refresh
? Help q Quit

Customize keys via the key_bindings section in your config. See docs/CONFIGURATION.md#key-bindings for all options (including macOS Opt key support).

๐ŸŽจ Theming

pvetui supports semantic theming with automatic adaptation to your terminal's color scheme.

๐Ÿ“– For detailed theming options, built-in themes, and color customization, see docs/CONFIGURATION.md#theming and docs/THEMING.md

๐Ÿ“บ VNC Console Access

Built-in noVNC client provides seamless console access:

  • Zero Configuration: Works out of the box
  • Automatic Authentication: No separate login required
  • Universal Support: VMs, containers, and node shells
  • Secure Proxy: Local WebSocket proxy handles connections

Note: Node VNC shells require password authentication (Proxmox limitation).

Important: VNC ports must be opened and accessible on the connected Proxmox server. The TUI creates a local WebSocket proxy that connects to the Proxmox VNC endpoint, so ensure your Proxmox server's VNC ports are properly configured and accessible from your client machine.

๐Ÿ”ง Requirements

  • Access to Proxmox VE cluster
  • SSH access for shell functionality
  • Go 1.24+ (for building from source)

๐Ÿ’ก Tips

  • Use SSH keys for authentication: For best security and convenience, set up SSH key-based authentication with your Proxmox hosts. Avoid password-based SSH logins.
  • Passwordless pct access: Add a sudoers rule on your Proxmox hosts to allow your user to run pct enter and pct exec without being prompted for a password. Example sudoers line:
    youruser ALL=(ALL) NOPASSWD: /usr/sbin/pct enter *, /usr/sbin/pct exec *
    

๐Ÿ› ๏ธ Troubleshooting

Check our Troubleshooting Guide for solutions to common problems including:

  • ๐ŸŽ macOS Gatekeeper warnings (zsh: killed errors)
  • ๐ŸชŸ Windows SmartScreen and antivirus issues
  • ๐Ÿง Linux permission problems
  • ๐Ÿ”ง General installation and configuration issues

๐Ÿณ Docker Usage

git clone --recurse-submodules https://github.com/devnullvoid/pvetui.git
cd pvetui
cp .env.example .env  # Edit with your Proxmox details
docker compose run --rm pvetui

See docs/DOCKER.md for advanced usage.

๐Ÿค Contributing

Contributions welcome! Check the issues page.

๐Ÿ“ License

MIT License - see LICENSE file for details.

โ„ข๏ธ Trademark Notice

Proxmoxยฎ is a registered trademark of Proxmox Server Solutions GmbH in the EU, the U.S., and other countries. This project is not affiliated with, endorsed by, or sponsored by Proxmox Server Solutions GmbH. "Proxmox" is used solely to describe compatibility with Proxmox Virtual Environment software.

Directories ยถ

Path Synopsis
cmd
pvetui command
internal
adapters
Package adapters provides bridge implementations that connect internal application components with the external API package interfaces, enabling dependency injection and clean separation of concerns.
Package adapters provides bridge implementations that connect internal application components with the external API package interfaces, enabling dependency injection and clean separation of concerns.
app
bootstrap
Package bootstrap handles application initialization and startup logic.
Package bootstrap handles application initialization and startup logic.
cli
config
Package config provides configuration management for the pvetui application.
Package config provides configuration management for the pvetui application.
logger
Package logger provides a comprehensive logging system designed for TUI applications.
Package logger provides a comprehensive logging system designed for TUI applications.
onboarding
Package onboarding handles the first-time setup and configuration wizard flow.
Package onboarding handles the first-time setup and configuration wizard flow.
profile
Package profile handles connection profile management and resolution.
Package profile handles connection profile management and resolution.
ssh
Package ssh provides SSH client functionality for connecting to Proxmox nodes and containers.
Package ssh provides SSH client functionality for connecting to Proxmox nodes and containers.
ui
ui/theme
Package theme provides color theming support for the pvetui application.
Package theme provides color theming support for the pvetui application.
vnc
Package vnc provides VNC connection services for Proxmox VMs and nodes.
Package vnc provides VNC connection services for Proxmox VMs and nodes.
pkg
api
Package api provides a comprehensive client library for the Proxmox Virtual Environment API.
Package api provides a comprehensive client library for the Proxmox Virtual Environment API.
api/interfaces
Package interfaces defines the core interfaces used throughout the pvetui application.
Package interfaces defines the core interfaces used throughout the pvetui application.
api/testutils
Package testutils provides testing utilities, mocks, and helper functions for the pvetui API package.
Package testutils provides testing utilities, mocks, and helper functions for the pvetui API package.
test
testutils
Package testutils provides utilities and helpers for integration testing.
Package testutils provides utilities and helpers for integration testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL