Answer-first summary

InstaTunnel docs wa doko kara hajimeru no ga yoi desu ka?

Kono junban ga suisho desu: CLI install -> auth -> first tunnel, sono ato use case ni awasete MCP/webhooks/referrals. Nichijou unyou wa CLI Flags to Troubleshooting o tsukatte kudasai.

Last reviewed: March 5, 2026
Compatibility: Core docs wa CLI v1 default to streaming client no tame no MCP --transport v2 ni taiou shiteimasu.

Quick command

instatunnel auth login -e you@example.com && instatunnel 3000 --subdomain docs-demo

Common failures and quick fixes

  • Auth not persisted-instatunnel auth set-key it_your_api_key de key o local ni hozon shite kudasai.
  • Webhook 401 signature errors-Production test mae ni /docs/webhooks no provider betsu secret verification guide o shiyou shite kudasai.

Evidence and trust

Compatibility, reliability, security posture no kakunin ni tsukatte kudasai.

Release cadence

CLI to docs no release notes wa tsune ni update sare, version goto no compatibility note ga arimasu.

View release notes

Security controls

Security whitepaper de policy enforcement, auth layer, operational safeguards o kakunin dekimasu.

Open security whitepaper

MCP Usage

MCP mode de local MCP endpoint o remote client ni kaisetsu dekimasu. MCP wa Pro / Business plan de riyo dekimasu.

Plan requirement: MCP mode wa Pro matawa Business no login-zumi API key ga hitsuyo desu.

1. Install CLI

$ npm install -g instatunnel

2. Authenticate (new vs existing users)

New user

$ instatunnel auth login -e you@example.com
# Verify email from inbox and copy API key from verification page
$ instatunnel auth set-key "it_your_api_key"

Existing user

$ instatunnel auth show-key --reveal --copy
# If key is not saved locally:
$ instatunnel auth login -e you@example.com
# Use recovery email, then save the new/current key:
$ instatunnel auth set-key "it_your_api_key"
$ Set-Clipboard "it_your_api_key" # Windows PowerShell helper
$ instatunnel auth set-key "$(Get-Clipboard)"
$ pbpaste | xargs -I {} instatunnel auth set-key "{}" # macOS
$ xclip -o -selection clipboard | xargs -I {} instatunnel auth set-key "{}" # Linux

2a. Use Dashboard MCP Setup Wizard (recommended)

Guided flow ga hitsuyo nara dashboard de MCP Setup Wizard v2 o tsukatte kudasai. dashboard.

  • Setup mae ni MCP plan no shikaku o check shimasu.
  • Port to subdomain ni awasete instatunnel ... --mcp --transport v2 command o seisei shimasu.
  • VS Code, Cursor, Claude Desktop, Windsurf, Codex, Gemini Antigravity yoke no one-click JSON o seisei shimasu.

3. Start MCP tunnel (v1 default)

v1 wa default transport de, hiroku compatible desu.

$ instatunnel 8787 --mcp
$ instatunnel 8787 --mcp --subdomain my-mcp

4. Use streaming transport v2 when needed

Streaming ga hitsuyo na toki dake v2 o shiyou shite kudasai. Mayottara v1 de hajimete, streaming client no toki ni v2 e kirikaete kudasai.

$ instatunnel 8787 --mcp --transport v2
$ instatunnel 8787 --mcp --transport v2 --subdomain my-mcp
Compatibility: --transport v2 requires newer InstaTunnel CLI versions (1.1.7+). Recommended update: npm install -g instatunnel@latest.

5. Optional MCP token header (staged rollout)

InstaTunnel wa defense in depth no tame ni MCP token header o support shimasu. Genzai no staged rollout de wa saisho warn mode, ato de enforce mode ni naru baai ga arimasu.

$ export INSTATUNNEL_MCP_TOKEN="your-shared-secret"
$ instatunnel 8787 --mcp --transport v2

5a. Generate YOUR_MCP_TOKEN

Tsuyoi token o seisei shite MCP JSON no Authorization header de YOUR_MCP_TOKEN toshite tsukatte kudasai.

$ node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
$ node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" | Set-Clipboard # Windows
$ node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" | pbcopy # macOS
$ node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" | xclip -selection clipboard # Linux

6. Configure your MCP client/server

Seisei sareta HTTPS URL o MCP client no setting ni tsukai, local MCP server no kitai suru path o settei shite kudasai.

https://your-subdomain.instatunnel.my

6a. Do you need Authorization headers?

  • Local stdio MCP server de wa hitsuyo arimasen. Header wa tsukawaremasen.
  • Remote MCP server ga auth o kyosei shinai nara hitsuyo arimasen.
  • MCP server ga bearer token o motomeru baai nomi hitsuyo desu (public endpoint de suisho).
  • VS Code, Cursor, Claude Desktop, Windsurf, Codex, Gemini Antigravity ni tekio. Client gawa wa bearer auth o kyosei sezu, server policy de kimarimasu.

7. One-click MCP config generator

VS Code, Cursor, Claude Desktop, Windsurf, Codex, Gemini Antigravity no JSON o one-click de seisei/copy dekimasu.

Loading MCP setup...

Notes

  • v1 wa compatibility no tame no default transport no mama desu.
  • Mayottara v1 kara hajimete kudasai.
  • MCP Streamable HTTP to nagai streaming response ni wa v2 o tsukatte kudasai.
  • --transport v2 ni wa CLI 1.1.7+ ga hitsuyo desu. npm install -g instatunnel@latest de update shite kudasai.
  • MCP tunnel ni wa MCP-senyo rate limit o fukumu yori strict na protection ga arimasu.
  • Account usage ni wa instatunnel --stats, request log ni wa instatunnel --logs o tsukatte kudasai.
  • Ninsho o tsukai, kikan na tool o public ni sarasanai de kudasai.
Loading MCP FAQ...

Need a quick path?

Plan o mite, hitsuyo na toki ni guided start o tsukatte kudasai.

Pro/Business no MCP endpoint de wa tsugi o tsukatte kudasai: instatunnel 8787 --mcp.

Docs | InstaTunnel