Skip to content
VS Code

OpenTrain for VS Code

io.github.opentrain-ai/opentrain

Hire human data labelers, RLHF annotators, and evaluators from your coding agent.

client:VS Code transport:stdio runtime:npm

Install OpenTrain in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "opentrain-personal-api-token",
      "description": "OPENTRAIN_PERSONAL_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "opentrain-api-base-url",
      "description": "OPENTRAIN_API_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "opentrain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@opentrain-ai/mcp"
      ],
      "env": {
        "OPENTRAIN_PERSONAL_API_TOKEN": "${input:opentrain-personal-api-token}",
        "OPENTRAIN_API_BASE_URL": "${input:opentrain-api-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

OpenTrain in other clients