ComputeNexa

Use ComputeNexa from your AI assistant

Your AI assistant (Claude Code, Claude Desktop, Cursor, VS Code and others that support MCP, the Model Context Protocol) can find, launch, connect to and stop your GPUs for you. It shows you the price before anything is charged, and spends nothing until you agree.

What you need

1. Create an API key

  1. In the dashboard, open API keys in the sidebar.
  2. Name the key after where you'll use it, e.g. "Claude on my laptop".
  3. Under What it can do, choose:
    • Look only if you just want answers: prices, your machines, spending.
    • Launch and stop machines too if the assistant should launch, extend and stop machines for you.
  4. Click Create key and copy it. It starts with cnxk_ and is shown only once.

The key acts as you and spends your team's credits. Keep it like a password: never paste it into a chat, a document or a repository. More in Use the API.

2. Install uv

uv is a free tool that downloads and runs the ComputeNexa server for your assistant. Install it once, in a terminal:

# macOS or Linux curl -LsSf https://astral.sh/uv/install.sh | sh # or on macOS with Homebrew brew install uv # Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Open a new terminal and check it: uvx --version prints a version number. More: installing uv.

3. Add ComputeNexa to your assistant

Pick your assistant. In each, replace cnxk_... with your key.

Claude Code

In a terminal:

claude mcp add --env CNX_API_KEY=cnxk_... --transport stdio computenexa -- uvx computenexa-mcp

Add --scope user after add to use it in every project. Then start claude.

Claude Desktop

  1. Open the Claude menu in your computer's menu bar (not the settings inside a chat) and choose Settings…
  2. Open Developer in the left sidebar and click Edit Config. This opens claude_desktop_config.json.
  3. Paste this in. If the file already has an mcpServers section, add the computenexa entry inside it instead.{ "mcpServers": { "computenexa": { "command": "uvx", "args": ["computenexa-mcp"], "env": { "CNX_API_KEY": "cnxk_..." } } } }
  4. Save the file, then quit Claude Desktop completely and open it again.
  5. To check: click + at the bottom left of the message box, then Connectors. ComputeNexa should be listed with its tools.

Cursor

Put the same mcpServers entry as Claude Desktop in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project), then restart Cursor.

VS Code

Create .vscode/mcp.json in your project with the following. VS Code asks for the key the first time and keeps it out of the file, so the file is safe to share.

{ "inputs": [ { "type": "promptString", "id": "cnx-key", "description": "ComputeNexa API key", "password": true } ], "servers": { "computenexa": { "type": "stdio", "command": "uvx", "args": ["computenexa-mcp"], "env": { "CNX_API_KEY": "${input:cnx-key}" } } } }

4. Try it

First, check it's connected. Ask:

Who am I on ComputeNexa?

It answers with your email, team, balance and what the key may do. Your assistant may ask you to allow the tool the first time; allow it. Then try a whole session:

You: Which GPUs with at least 48 GB are in stock, and what do they cost? Assistant: NVIDIA RTX A6000 (48 GB), $0.72 an hour · NVIDIA L40S (48 GB) … · NVIDIA H100 (80 GB) … You: Launch the cheapest one with Data Science for one hour. Assistant: NVIDIA RTX A6000 with Data Science for 1 h: $0.72 charged now; unused time is refunded if it stops early. Shall I launch it? You: Yes. Assistant: Launched cnx-7f3a9c. It's starting; I'll tell you when it's ready. It's running. Connect with: ssh cnx-7f3a9c@ssh.computenexa.com · JupyterLab: https://… You: Stop it. Assistant: Stopped cnx-7f3a9c. $0.41 of unused time was refunded.

Prices and names above are examples; you'll see live ones. Other things to ask: "What did we spend on GPUs this month?", "Add an hour to my machine", "Keep my voice machine running for a week", "Create an endpoint called Acme Bank".

5. What happens when it spends money

What it can do

ToolWhat it doesKey needed
whoamiYour email, team, balance, GPU limit and what the key may doLook only
list_gpusGPUs with live prices and stock, cheapest first; filter by app, region or memoryLook only
list_appsThe apps a GPU can start with, their models, and what's installedLook only
list_machines · get_machineYour machines, and how to connect to one (SSH, browser apps, API, endpoint)Look only
get_usage · list_receiptsSpending and GPU hours; finished sessions and what each costLook only
list_projects · list_endpointsSaved projects; endpoints and the machine each one servesLook only
launch_machineLaunch a GPU: a quote first, then the launch once you agreeLaunch and stop
extend_machineAdd time at the same price (quote first)Launch and stop
set_keep_runningRenew a machine automatically from your team's balance, or turn it off (quote first)Launch and stop
stop_machineStop a machine; unused time is refundedLaunch and stop
create_endpoint · get_endpoint_keyCreate an endpoint (its key is shown once) or show an endpoint's key when you askLaunch and stop

You don't call these yourself: just ask in your own words and the assistant picks the tool.

If something doesn't work

What you seeWhat to do
Claude Desktop: ComputeNexa doesn't appear, or its log says “spawn uvx ENOENT”Claude Desktop can't find uvx. In a terminal, run which uvx (Windows: where uvx) and put the full path it prints in "command", e.g. "/Users/you/.local/bin/uvx". Then quit Claude Desktop completely and open it again.
“This API key may only look…”The key is Look only. Create a Launch and stop key and put it in place of the old one, then restart your assistant.
The key is refused (“Check CNX_API_KEY…”)The key was mistyped, revoked, or its creator left the team. Create a new key under API keys.
A launch is refused as above the limitAnything over $25 in one request is refused. Book fewer hours, or raise the limit (step 5).
Claude Code: is it connected?Run claude mcp list: computenexa should show as connected. Inside Claude Code, /mcp shows its status and tools.
Getting the newest versionuvx keeps the version it downloaded. To update, run uvx computenexa-mcp@latest --version once, then restart your assistant.

Your key and your data

More guides

Questions? Email support@computenexa.com.