Skip to content
VS Code

unlocalhost for VS Code

io.github.info-arnav/unlocalhost

Deploy localhost to a private, authenticated link from your AI coding agent.

client:VS Code transport:stdio runtime:npm

Install unlocalhost in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "unlocalhost-url",
      "description": "UNLOCALHOST_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unlocalhost-token",
      "description": "UNLOCALHOST_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "unlocalhost": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@unlocalhost/unlocalhost"
      ],
      "env": {
        "UNLOCALHOST_URL": "${input:unlocalhost-url}",
        "UNLOCALHOST_TOKEN": "${input:unlocalhost-token}"
      }
    }
  }
}

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

unlocalhost in other clients