Skip to content

Search Tensiq

Pages, GPUs on the list, your machines and actions.

Language中文

Connect an AI agent (MCP)

Connect Claude, Claude Desktop, Claude Code, Codex, Cursor or any MCP client, by signing in or with a key, and rent GPUs with ten tools.

View as Markdown

Tensiq runs an MCP server, so an AI agent can rent GPUs on its own within the daily limit you set.

There are two ways to connect:

  • Sign in. Claude, Claude Desktop, Claude Code, Codex and other apps that support it open Tensiq. You sign in, choose what the app may spend a day, and approve it. No key to copy.
  • An API key. For any client that can send a header. Make one on API keys.

Either way, the app shows on your API keys page with its daily limit. Revoke it there to disconnect it and stop its machines.

Claude and Claude Desktop

  1. In Claude, open Settings, then Connectors, and choose Add custom connector.
  2. Name it Tensiq and enter the address https://tensiq.cc/mcp. Leave the advanced settings as they are.
  3. Choose Connect. Tensiq opens: sign in, set the daily limit, and choose Approve.

The connector works in Claude on the web, in Claude Desktop and in the mobile apps. On a Team or Enterprise plan, an owner adds custom connectors for the organization.

Sign in from Claude Code or Codex

Claude Code

On your computer
claude mcp add --transport http --scope user tensiq https://tensiq.cc/mcp

Then run /mcp in Claude Code, pick tensiq and choose Authenticate. Your browser opens Tensiq to approve it.

Codex

On your computer
codex mcp add tensiq --url https://tensiq.cc/mcp
codex mcp login tensiq

codex mcp login opens your browser to approve it.

Connect with an API key

Give the key a GPU daily limit for an agent that starts machines. A read-only key can only list and price. Keep the key in an environment variable, so it never lands in a file you share:

On your computer
export TENSIQ_API_KEY=tq_...

Add that line to ~/.zshrc or ~/.bashrc to keep it.

Claude Code with a key

On your computer
claude mcp add --transport http --scope user tensiq https://tensiq.cc/mcp --header "Authorization: Bearer $TENSIQ_API_KEY"

Run /mcp in Claude Code to check that Tensiq is connected.

Codex with a key

On your computer
codex mcp add tensiq --url https://tensiq.cc/mcp --bearer-token-env-var TENSIQ_API_KEY

Codex reads the key from TENSIQ_API_KEY each time it starts. Run codex mcp list to check it.

Cursor

Add this to ~/.cursor/mcp.json:

~/.cursor/mcp.json
{
  "mcpServers": {
    "tensiq": {
      "url": "https://tensiq.cc/mcp",
      "headers": { "Authorization": "Bearer ${env:TENSIQ_API_KEY}" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json. VS Code asks for the key once and keeps it encrypted:

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "tensiq-key",
      "description": "Tensiq API key",
      "password": true
    }
  ],
  "servers": {
    "tensiq": {
      "type": "http",
      "url": "https://tensiq.cc/mcp",
      "headers": { "Authorization": "Bearer ${input:tensiq-key}" }
    }
  }
}

Windsurf

Add this to ~/.codeium/windsurf/mcp_config.json:

mcp_config.json
{
  "mcpServers": {
    "tensiq": {
      "serverUrl": "https://tensiq.cc/mcp",
      "headers": { "Authorization": "Bearer ${env:TENSIQ_API_KEY}" }
    }
  }
}

Gemini CLI

Add this to ~/.gemini/settings.json:

~/.gemini/settings.json
{
  "mcpServers": {
    "tensiq": {
      "httpUrl": "https://tensiq.cc/mcp",
      "headers": { "Authorization": "Bearer $TENSIQ_API_KEY" }
    }
  }
}

Other clients

Any client that speaks Streamable HTTP connects to https://tensiq.cc/mcp: with sign-in (OAuth) when it supports it, or with the header Authorization: Bearer tq_....

Add the Tensiq skill

The skill teaches a coding agent the whole job: rent, wait, connect over SSH, copy files, and stop the machine when the work is done. Claude Code and Codex load it by themselves when a task needs a GPU.

Claude Code
mkdir -p ~/.claude/skills/tensiq && curl -fsSL https://tensiq.cc/skill.md -o ~/.claude/skills/tensiq/SKILL.md
Codex
mkdir -p ~/.codex/skills/tensiq && curl -fsSL https://tensiq.cc/skill.md -o ~/.codex/skills/tensiq/SKILL.md

Read it first at tensiq.cc/skill.md.

Try it

Ask your agent something like:

Rent the cheapest RTX 4090 for 2 hours with my SSH key, run nvidia-smi on it, then stop it and tell me what it cost.

The agent calls rent, reads status until the machine is running, connects with its SSH command, and calls stop.

The tools

ToolWhat it doesNeeds a daily limit
rentStarts the cheapest machine that fits, in one callYes
list_machinesMachines on the list, cheapest first, with filtersNo
quoteA price for one machine or cluster, held 60 secondsNo
startStarts a quoted machineYes
statusOne rental with its SSH command and cost, or all running onesNo
stopStops a machine or cluster; billing ends at onceYes
extendMore hours before it stops by itself, never past 7 daysYes
list_clustersClusters on the listNo
start_clusterStarts a quoted cluster, every node or noneYes
balanceBalance, what is free, the key's spend today, how to top upNo

rent, start, extend and start_cluster take a client_request_id. Send the same one again after a timeout and nothing starts twice.

Limits

  • 120 requests a minute per key. Over that, requests get 429 with a Retry-After header: wait that many seconds, then try again.
  • The key's own ceilings: see API keys.
  • Tool texts and answers are in English.

Next

REST API for the same actions from your own code.