Back to list
sztwiorok

tunnel

by sztwiorok

0🍴 0📅 Jan 25, 2026

SKILL.md


name: tunnel description: This skill should be used when the user asks to "expose localhost", "create tunnel", "share local server", "test webhooks locally", "tunnel to localhost", "make local dev accessible", "public URL for localhost", or mentions exposing local services, testing webhooks, or sharing development servers.

Buddy Tunnels

Expose local services to the internet via secure Buddy tunnels. Ideal for webhook testing, client demos, mobile testing, and temporary service sharing.

CRITICAL: AI Agent Requirements

STOP: Read this section completely before creating any tunnel.

1. Run tunnels in background (MANDATORY)

Tunnel commands run in foreground and WILL BLOCK your execution. You MUST use run_in_background: true parameter in Bash tool:

Bash tool call:
  command: bdy tunnel http localhost:3000
  run_in_background: true

2. Ask about HTTP authentication (MANDATORY)

Before creating ANY HTTP tunnel, you MUST use AskUserQuestionTool to ask about authentication.

DO NOT skip this step. DO NOT proceed until user has made a choice.

Question: "Do you want to protect this HTTP tunnel with authentication?"

Options:

  1. "HTTP Basic Auth (username:password)" → use -a username:password flag
  2. "Buddy Authentication" → use --buddy flag
  3. "No authentication (public access)" → proceed without auth

3. Verify app binds to 0.0.0.0

Applications MUST bind to 0.0.0.0 (all interfaces), NOT 127.0.0.1 (localhost only). If tunnel shows "connection refused", this is likely the cause.

Prerequisites

Authentication Required: Verify with bdy workspace ls. If it fails, user must run bdy login in a separate terminal (AI agents cannot perform interactive login).

Quick Start

HTTP Tunnel (most common)

bdy tunnel http localhost:3000                    # basic
bdy tunnel http localhost:3000 -a user:pass       # with HTTP basic auth
bdy tunnel http localhost:3000 --buddy            # with Buddy auth
bdy tunnel http localhost:3000 -n my-tunnel       # named tunnel

TCP Tunnel (databases, SSH)

bdy tunnel tcp localhost:5432    # PostgreSQL
bdy tunnel tcp localhost:3306    # MySQL
bdy tunnel tcp localhost:22      # SSH

TLS Tunnel (custom certificates)

bdy tunnel tls localhost:8443 --key key.pem --cert cert.pem

Common Options

OptionDescription
-n, --nameNamed tunnel for identification
-a, --auth user:passHTTP basic authentication
--buddyBuddy account authentication
-r, --region eu|us|asRegional endpoint
-w, --whitelistIP CIDR restrictions
-t, --timeoutConnection timeout (seconds)

Troubleshooting

Connection Refused

  • Verify app is running on specified port
  • Check app binds to 0.0.0.0, not 127.0.0.1

Authentication Failed

  • Run bdy workspace ls to verify auth
  • User may need to run bdy login in separate terminal

References

For detailed options, configurations, and examples see:

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon