Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
nvidia avatar

Cuopt Server Api Python

  • 1.9k installs
  • 2.8k repo stars
  • Updated August 4, 2026
  • nvidia/skills

cuopt-server-api-python is an agent skill that cuopt rest server — start server, endpoints, python/curl client examples. use when the user is deploying or calling the rest api.

About

cuopt-server-api-python is an agent skill from nvidia/skills that cuopt rest server — start server, endpoints, python/curl client examples. use when the user is deploying or calling the rest api. # cuOpt Server — Deploy and client (Python/curl) This skill covers **starting the server** and **client examples** (curl, Python). Server has no separate C API (clients can be any language). ## Start server ```bash # Development python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000 # Docker docker run --gpus all -d -p 8000:8000 -e CUOPT Developers invoke cuopt-server-api-python during build/integrations work for data science & ml tasks. The skill documents triggers, prerequisites, and step-by-step workflows grounded in SKILL.md. Compatible with Claude Code, Cursor, and Codex agent runtimes that load marketplace skills.

  • cuOpt Server — Deploy and client (Python/curl)
  • This skill covers **starting the server** and **client examples** (curl, Python). Server has no separate C API (clients
  • python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000
  • docker run --gpus all -d -p 8000:8000 -e CUOPT_SERVER_PORT=8000 \
  • nvidia/cuopt:latest-cuda12.9-py3.13

Cuopt Server Api Python by the numbers

  • 1,894 all-time installs (skills.sh)
  • +45 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #81 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

cuopt-server-api-python capabilities & compatibility

Capabilities
cuopt server — deploy and client (python/curl) · this skill covers **starting the server** and ** · python m cuopt_server.cuopt_service ip 0.0.0. · docker run gpus all d p 8000:8000 e cuopt_s · nvidia/cuopt:latest cuda12.9 py3.13
Use cases
orchestration
From the docs

What cuopt-server-api-python says it does

This skill covers **starting the server** and **client examples** (curl, Python). Server has no separate C API (clients can be any language).
SKILL.md
python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000
SKILL.md
docker run --gpus all -d -p 8000:8000 -e CUOPT_SERVER_PORT=8000 \
SKILL.md
npx skills add https://github.com/nvidia/skills --skill cuopt-server-api-python

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.9k
repo stars2.8k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositorynvidia/skills

What it does

cuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.

Who is it for?

Developers working on data science & ml during build tasks.

Skip if: Tasks outside Data Science & ML scope described in SKILL.md.

When should I use this skill?

cuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.

What you get

Completed data science & ml workflow aligned with SKILL.md steps.

  • Python REST client integration
  • Optimization API response handling

By the numbers

  • Default CUOPT_SERVER_URL http://localhost:8000
  • Health check timeout set to 2 seconds in client.py

Files

SKILL.mdMarkdownGitHub ↗

cuOpt Server — Deploy and client (Python/curl)

This skill covers starting the server and client examples (curl, Python). Server has no separate C API (clients can be any language).

Start server

# Development
python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000

# Docker
docker run --gpus all -d -p 8000:8000 -e CUOPT_SERVER_PORT=8000 \
  nvidia/cuopt:latest-cuda12.9-py3.13

Verify

curl http://localhost:8000/cuopt/health

Workflow

1. POST to /cuopt/request → get reqId 2. Poll /cuopt/solution/{reqId} until solution ready 3. Parse response

Python client (routing)

import requests, time
SERVER = "http://localhost:8000"
HEADERS = {"Content-Type": "application/json", "CLIENT-VERSION": "custom"}
payload = {
    "cost_matrix_data": {"data": {"0": [[0,10,15],[10,0,12],[15,12,0]]}},
    "travel_time_matrix_data": {"data": {"0": [[0,10,15],[10,0,12],[15,12,0]]}},
    "task_data": {"task_locations": [1, 2], "demand": [[10, 20]], "task_time_windows": [[0,100],[0,100]], "service_times": [5, 5]},
    "fleet_data": {"vehicle_locations": [[0, 0]], "capacities": [[50]], "vehicle_time_windows": [[0, 200]]},
    "solver_config": {"time_limit": 5}
}
r = requests.post(f"{SERVER}/cuopt/request", json=payload, headers=HEADERS)
req_id = r.json()["reqId"]
# Poll: GET /cuopt/solution/{req_id}

Terminology: REST vs Python API

Python APIREST
order_locationstask_locations
set_order_time_windows()task_time_windows
service_timesservice_times

Use travel_time_matrix_data (not transit_time_matrix_data). Capacities: [[50, 50]] not [[50], [50]].

Debugging (422 / payload)

Validation errors: Check field names against OpenAPI (/cuopt.yaml). Common mistakes: transit_time_matrix_datatravel_time_matrix_data; capacities per dimension [[50, 50]] not per vehicle [[50], [50]]. Capture reqId and response body for failed requests.

Runnable assets

Run from each asset directory (server must be running; scripts exit 0 if server unreachable). All use Python requests:

  • assets/vrp_simple/ — Basic VRP (no time windows)
  • assets/vrp_basic/ — VRP with time windows
  • assets/pdp_basic/ — Pickup and delivery
  • assets/lp_basic/ — LP via REST (CSR format)
  • assets/milp_basic/ — MILP via REST

See assets/README.md for overview.

Escalate

For contribution or build-from-source, see the developer skill.

Related skills

FAQ

What does cuopt-server-api-python do?

cuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.

When should I use cuopt-server-api-python?

During build integrations work for data science & ml.

Is cuopt-server-api-python safe to install?

Review the Security Audits panel on this listing before production use.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.