New to Claude Skills? Learn how to install them →

Cnvidia on GitHub

cuOpt Install

OfficialFree

Easily install cuOpt for Python, C, or as a REST server.

by nvidia2.8k stars on nvidia/skills
1 views
Updated Aug 7, 2026
Get this skill

Free · Opens the source repo

What cuOpt Install does

cuOpt Install is a straightforward tool designed to help users install the cuOpt library for optimization tasks in Python, C, or as a REST server. This skill simplifies the installation process by providing clear instructions for using popular package managers such as pip, conda, and Docker. It ensures that users can quickly set up their environment to leverage the capabilities of cuOpt for their optimization needs.

The installation process is tailored to the user's environment, whether they are working on a local machine with an NVIDIA GPU, a cloud instance, or using Docker. Users can select the appropriate installation method based on their preferred package manager and CUDA version. The skill also includes verification steps to confirm successful installation, ensuring that users can start utilizing cuOpt without unnecessary delays.

This skill is particularly beneficial for developers and data scientists who require efficient optimization solutions for their applications. By streamlining the installation process, cuOpt Install allows users to focus on building and deploying their optimization models rather than troubleshooting installation issues. The skill also provides guidance on common problems that may arise during installation, helping users resolve issues quickly and effectively.

In summary, cuOpt Install is an essential tool for anyone looking to integrate cuOpt into their projects, offering a hassle-free installation experience and ensuring compatibility with the necessary system requirements.

When to use it

Use this skill when you need to install cuOpt for Python, C, or as a REST server in your development environment.

When not to use it

This skill is not suitable for users without an NVIDIA GPU or those who do not require the cuOpt library for optimization tasks.

What you can build with it

Local Development Setup

Quickly install cuOpt on your local machine to start developing optimization models using Python or C.

Cloud Deployment

Easily set up cuOpt in a cloud environment to leverage powerful GPU resources for optimization tasks.

Docker Containerization

Use Docker to run cuOpt in a containerized environment, ensuring consistent setups across different machines.

How to install cuOpt Install

View source

1. Install with the skills CLI

npx skills add nvidia/skills/cuopt-install --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by nvidia

cuOpt Install (user)

Install cuOpt to use it from Python, C, or as a REST server. For building cuOpt from source to contribute or modify it, see cuopt-developer.

System requirements

  • GPU: NVIDIA Compute Capability ≥ 7.0 (Volta or newer). Examples: V100, A100, H100, RTX 20xx/30xx/40xx. Not supported: GTX 10xx (Pascal).
  • CUDA: 12.x or 13.x. The package CUDA suffix must match the runtime CUDA (e.g. cuopt-cu12 / libcuopt-cu12 with CUDA 12).
  • Driver: NVIDIA driver compatible with the CUDA version.
  • cuopt-cuXX (Python) depends on libcuopt-cuXX (C), so installing the Python package also installs the C library and headers. Installing libcuopt-cuXX on its own does not install the Python API.

Required questions

Ask these if not already clear:

  1. Interface — Python, C, or REST server? Server can be called from any language via HTTP.
  2. CUDA version — What is installed? Check with nvcc --version or nvidia-smi.
  3. Package manager — pip, conda, or Docker preferred?
  4. Environment — Local machine with GPU, cloud instance, Docker/Kubernetes, or remote/server (no local GPU)?

Python API

Choose one — do not run both. The second install would override the first and can cause CUDA / package mismatch.

pip

  • CUDA 13.x:
    pip install --extra-index-url=https://pypi.nvidia.com cuopt-cu13
    
  • CUDA 12.x:
    pip install --extra-index-url=https://pypi.nvidia.com 'cuopt-cu12==26.2.*'
    

conda

conda install -c rapidsai -c conda-forge -c nvidia cuopt

Verify

import cuopt
print(cuopt.__version__)
from cuopt import routing
dm = routing.DataModel(n_locations=3, n_fleet=1, n_orders=2)

C API

The C API ships in libcuopt-cuXX, which is also pulled in as a dependency of cuopt-cuXX — so if you already installed the Python package, the C library and headers are already present. Install libcuopt standalone only when you want the C API without Python. Choose one of pip or conda — do not run both.

pip

  • CUDA 13.x:
    pip install --extra-index-url=https://pypi.nvidia.com libcuopt-cu13
    
  • CUDA 12.x:
    pip install --extra-index-url=https://pypi.nvidia.com 'libcuopt-cu12==26.2.*'
    

conda

conda install -c rapidsai -c conda-forge -c nvidia libcuopt

Verify

See references/verification_examples.md for the canonical C-API header/library find commands (conda and pip/venv variants).

Server (REST)

pip

pip install --extra-index-url=https://pypi.nvidia.com cuopt-server-cu12 cuopt-sh-client

conda

conda install -c rapidsai -c conda-forge -c nvidia cuopt-server cuopt-sh-client

Docker

docker pull nvidia/cuopt:latest-cuda12.9-py3.13
docker run --gpus all -it --rm -p 8000:8000 nvidia/cuopt:latest-cuda12.9-py3.13

Verify

python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000 &
sleep 5
curl -s http://localhost:8000/cuopt/health | jq .

Common Issues

  • No module named 'cuopt' → check pip list | grep cuopt, which python, reinstall with the correct extra-index-url.
  • CUDA not available → run nvidia-smi and nvcc --version; ensure the package CUDA suffix (cu12 vs cu13) matches the installed CUDA.
  • Python vs C → cuopt-cuXX pulls in libcuopt-cuXX as a transitive dependency, so the C library (libcuopt.so) and headers (cuopt_c.h) are already available after installing the Python package. The reverse is not true: libcuopt-cuXX alone does not install the Python bindings.

See also

  • verification_examples.md — full verification recipes for Python, C, server, and Docker.
  • cuopt-developer — build cuOpt from source and contribute to the codebase.

Frequently asked questions about cuOpt Install

Similar skills