---
name: tensiq
description: Rent NVIDIA GPU machines on Tensiq (RTX 4090 to H200, clusters of 8-GPU nodes) and run work on them over SSH, paid per second from a Tensiq balance. Use when a task needs a GPU (training, fine-tuning, inference, benchmarks, CUDA builds) or the user asks to rent, start, check or stop a GPU on Tensiq.
---

# Tensiq GPUs

Tensiq rents whole GPU machines by the second. You start one, connect over SSH, run the work, copy results back, and stop it. Every machine costs money while it runs, so stop it as soon as the work is done.

## Connect

Use the Tensiq MCP tools if they are listed (`rent`, `status`, `stop`, `balance` and more). If they are not, tell the user to add the server once. Signing in needs no key: the browser opens Tensiq to approve the app and set its daily limit.

```bash
claude mcp add --transport http --scope user tensiq https://tensiq.cc/mcp
codex mcp add tensiq --url https://tensiq.cc/mcp && codex mcp login tensiq
```

In Claude Code, `/mcp` then **Authenticate** finishes the sign-in. With an API key from https://tensiq.cc/keys instead:

```bash
claude mcp add --transport http --scope user tensiq https://tensiq.cc/mcp --header "Authorization: Bearer $TENSIQ_API_KEY"
codex mcp add tensiq --url https://tensiq.cc/mcp --bearer-token-env-var TENSIQ_API_KEY
```

Without MCP, the same actions are a REST API at `https://tensiq.cc/api/v1` with `Authorization: Bearer $TENSIQ_API_KEY` (docs: https://tensiq.cc/docs/api).

Never print, log or commit the API key.

## Rent a machine

1. Read `balance` first: `available_usd` is what is free to spend, and `key.left_today_usd` is what this connection may still spend today.
2. Find the SSH public key: `cat ~/.ssh/id_ed25519.pub`. If there is none, make one with `ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519`. Only ever send the `.pub` line.
3. Call `rent` with a model and a top price, for example `{ "model": "RTX 4090", "max": 0.6, "ssh_key": "ssh-ed25519 AAAA...", "ttl_hours": 2, "client_request_id": "train-run-0001" }`. To compare machines first, use `list_machines`, then `quote` and `start`.
4. Set `ttl_hours` to a little more than the work needs: the machine stops by itself then, even if you forget.
5. If a call times out, send it again with the same `client_request_id`: nothing starts twice.

## Wait until it runs

Call `status` with the `rental_id` about every 15 seconds. Most machines run within a few minutes.

- `starting`: wait.
- `running`: connect with its `ssh` command.
- `paused`: billing is paused because the machine stopped answering; wait or stop it.
- `failed`: it never started and nothing was billed. Rent another.

## Work on it

```bash
ssh -o StrictHostKeyChecking=accept-new -p PORT root@HOST 'nvidia-smi'
rsync -az -e "ssh -p PORT" ./project/ root@HOST:/root/project/
ssh -p PORT root@HOST 'cd /root/project && nohup python train.py > train.log 2>&1 &'
ssh -p PORT root@HOST 'tail -n 20 /root/project/train.log'
rsync -az -e "ssh -p PORT" root@HOST:/root/project/out/ ./out/
```

Take `PORT` and `HOST` from the `ssh` command `status` gives. The default app has PyTorch, CUDA and Jupyter. Its `tunnel` command opens Jupyter on your own computer.

Run long jobs with `nohup` or `tmux`, so they keep going if the SSH session drops.

## Stop it

Copy back everything you need, then call `stop` with the `rental_id`. Billing ends at once and the machine is deleted with everything on it, except `/data` when the account mounted it. Tell the user what it cost: `cost_usd` from `status`.

## Rules

- Ask the user before renting anything that costs more than a few dollars an hour, or a cluster.
- Never leave a machine running after the work is done.
- Keep secrets you cannot lose off rented machines: whoever owns the hardware can read it.
- A key runs at most 4 machines, or 1 cluster, at once.
- If `balance_short` or `prepay_needed` comes back, tell the user to top up at https://tensiq.cc/balance. You cannot top up.
- Amounts are US dollars as decimal strings. Times are UTC.
