NVCurve Logo

NVCurve

Linux NVIDIA GPU V/F Curve Editor & OC Tool


NVCurve brings MSI Afterburner-style per-point voltage-frequency curve control to Linux. It calls undocumented NvAPI functions directly via libnvidia-api.so, giving you precise frequency offsets control. A Python CLI handles scripting and headless use; a React web UI provides interactive curve editing, profile management, and live hardware monitoring.

Warning

This tool is experimental. It has been verified on a range of NVIDIA GPUs and recent drivers, but compatibility is not guaranteed across all hardware and driver versions. The underlying NvAPI functions are undocumented and may change or disappear between driver releases.

Read operations are generally safe. Write operations alter GPU operational parameters. Follow the first-time setup steps below before applying any changes, and proceed with caution.

NVCurve curve editor

Features

  • Per-Point Curve Editing: Independently adjust the frequency offset for any voltage point on the GPU's V/F curve.
  • Curve Flattening: Select multiple points and flatten them to a common frequency in one click using anchor-point targeting.
  • Live Monitoring: Tracks GPU voltage, clock speed, temperature, and power draw via NvAPI and NVML.
  • Profile Management: Save, apply, and set a default (auto-apply on startup) profile. Profile commands work with or without the server running.
  • Multi-GPU Support (experimental): Manage multiple NVIDIA GPUs simultaneously from a single server instance; switch between GPUs in the web UI. Untested on real multi-GPU hardware — feedback welcome.
  • Modern Web UI: Interactive curve graph, point table, real-time monitoring dashboard, and GPU selector, all in the browser.

Prerequisites

  • OS: Linux
  • GPU: NVIDIA GPU (tested on RTX 5090, Blackwell architecture)
  • Python: 3.12+
  • Privileges: Root access is required for hardware interactions. The CLI will prompt for elevated privileges via sudo when needed.

Installation

We recommend installing with uv:

uv tool install nvcurve

For frontend development, use pnpm install and pnpm run dev in the frontend/ directory.

Getting started

Step 1 — Verify hardware compatibility

Before touching anything, confirm NvAPI is working correctly on your GPU and driver. Do not skip this on an untested configuration.

nvcurve setup

This runs four checks in sequence:

  1. NvAPI function probe — verifies all required functions resolve in the driver
  2. Curve read — reads and displays your current V/F curve as a baseline
  3. Write-verify — writes +5 MHz to the last GPU-domain point, reads it back, and confirms the driver accepted it and no other points were unexpectedly modified
  4. Restore — automatically restores the snapshot from before the test write

Only continue if setup reports Compatible.

Override the test point or delta with nvcurve setup --point N --delta 5. Pass --full-mask if writes fail on older GPUs (Pascal and earlier).

Step 2 — Launch the web UI

With compatibility confirmed, the web UI is the primary interface for curve editing, monitoring, and profile management:

nvcurve

This starts the backend server and opens the UI in your browser at http://localhost:8042.

NVCurve web UI dashboard

To run the server in the background:

nvcurve serve start --detach
nvcurve serve status
nvcurve serve stop

Step 3 — (Optional) Install as a systemd service

Register the nvcurve daemon as a systemd service so it starts automatically on boot:

nvcurve service install

The daemon handles auto-loading GPU profiles on boot. The web server is separate and starts on demand (nvcurve serve start). To also have the web server start automatically on boot, pass --auto-serve:

nvcurve service install --auto-serve
# optionally: --host 0.0.0.0 --port 8042

This enables and starts the service immediately. Manage it with:

nvcurve service start
nvcurve service stop
nvcurve service restart
nvcurve service status        # shows daemon state + web server config
nvcurve service uninstall

To change the web server auto-start setting or address after install, use service configure — it updates the config and restarts the daemon in one step:

sudo nvcurve service configure --auto-serve
sudo nvcurve service configure --no-auto-serve
sudo nvcurve service configure --host 0.0.0.0 --port 8042

Upgrading

uv tool upgrade nvcurve

If you are running nvcurve as a systemd service, restart it afterwards to pick up the new version:

nvcurve service restart

Changelog

See CHANGELOG.md for a complete history of changes.

Web UI controls

Curve editor

Action Result
Click point Select (clears other selections)
Shift+click point Add/remove point from selection
Ctrl/Cmd+A Select all active points
Escape Clear selection
Drag point Stage a frequency offset edit
Drag point (multi-selection) Moves all selected points together
Enter (single point selected) Open inline input to type an exact offset
↑ / ↓ arrow keys Nudge selected point(s) ±1 MHz
Ctrl/Cmd + ↑ / ↓ Nudge ±10 MHz
Tab / Shift+Tab Step through points one by one
Shift+drag on background Box select; draw a rubber-band rectangle
Drag on background Pan the X axis
Alt+scroll Zoom X axis around the cursor

Point table

Action Result
Click row Select point
Ctrl/Cmd+click Toggle point in/out of selection
Shift+click Range select from last selected to clicked
Drag across rows Range select by dragging
Select Before / Select After Expand selection to all points before or after the currently selected one (appears when exactly one point is selected)

Toolbar

The Global Offset slider appears when all active points share a uniform delta. Dragging it stages that offset across every point simultaneously; equivalent to nvcurve write --global but interactive.

CLI reference

The CLI is suited for scripting, headless systems, or quick one-off operations. All write commands support --dry-run to preview changes without applying them.

Reading

nvcurve read                   # Condensed V/F curve
nvcurve read --full            # All points
nvcurve read --json            # JSON output

Writing

Note

If you use LACT or similar tools, disable them first. Concurrent writes will overwrite each other.

# Preview first
nvcurve write --global --delta 50 --dry-run
nvcurve write --point 80 --delta 100 --dry-run

# Apply
nvcurve write --global --delta 50
nvcurve write --point 80 --delta 100
nvcurve write --range 70-90 --delta 75
nvcurve write --reset          # Reset all offsets to 0

Snapshots are saved automatically before each write. Manual snapshot management:

nvcurve snapshot save
nvcurve snapshot list
nvcurve snapshot restore

Profiles

Profile commands work whether or not the server is running. Apply and default operations escalate to root automatically when bypassing the server.

nvcurve profile save balanced          # Save current curve as a profile
nvcurve profile apply balanced         # Apply a saved profile
nvcurve profile list                   # List profiles with active/default markers
nvcurve profile default balanced       # Set profile to apply on server startup
nvcurve profile default --clear        # Clear the startup default
nvcurve --gpu 1 profile default perf   # Set default for a specific GPU (multi-GPU)

Note

If you use LACT or similar tools and have a default profile set, disable the lactd service first — it applies its own curve on startup and will overwrite NVCurve's auto-applied profile:

sudo systemctl disable --now lactd

Diagnostics

nvcurve read --diag            # Probe all NvAPI functions
nvcurve inspect --point 80     # Raw buffer fields for a point
nvcurve inspect --range 78-82

Architecture

NVCurve has two components:

  • Python backend (nvcurve/): Talks directly to libnvidia-api.so (via ctypes) and libnvidia-ml.so to read and write hardware state. Exposes everything through a FastAPI REST + WebSocket server, keeping privileged operations isolated from the browser.
  • React frontend (frontend/): Runs in the browser and communicates with the backend over HTTP and WebSockets. Handles curve visualization, point editing, live monitoring, and profile management.

Disclaimer

This software is provided as-is. The NvAPI functions it relies on are undocumented, unsupported officially by NVIDIA, and may change or break without notice between driver releases. NVCurve has been verified on a range of NVIDIA GPUs and recent drivers; behaviour on other hardware or driver versions is not guaranteed. Write operations alter GPU state. The authors accept no responsibility for hardware damage, system instability, or data loss resulting from the use of this software.

S
Description
Linux NVIDIA GPU V/F Curve Editor
Readme MIT
1.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 65.9%
TypeScript 33.2%
Shell 0.4%
CSS 0.2%
Makefile 0.1%
Other 0.1%