← 返回
效率工具 中文

Secret Portal

Spin up a one-time web UI for securely entering secret keys and env vars. Supports guided instructions, single-key mode, and cloudflared tunneling.
启动一次性网页界面,用于安全输入密钥和环境变量,支持引导式说明、单密钥模式和 Cloudflare Tunnel。
awlevin
效率工具 clawhub v0.1.0 1 版本 99703.5 Key: 无需
★ 0
Stars
📥 1,345
下载
💾 22
安装
1
版本
#latest

概述

Secret Portal

Spin up a temporary, one-time-use web UI for securely entering secret keys and environment variables. No secrets ever touch chat history or terminal logs.

Quick Start

# Single key with cloudflared tunnel (recommended)
uv run --with secret-portal secret-portal \
  -k API_KEY_NAME \
  -f ~/.secrets/target-env-file \
  --tunnel cloudflared

# With guided instructions and a link to the key's console
uv run --with secret-portal secret-portal \
  -k OPENAI_API_KEY \
  -f ~/.env \
  -i '<strong>Get your key:</strong><ol><li>Go to platform.openai.com</li><li>Click API Keys</li><li>Create new key</li></ol>' \
  -l "https://platform.openai.com/api-keys" \
  --link-text "Open OpenAI dashboard →" \
  --tunnel cloudflared

# Multi-key mode (no -k flag, user enters key names and values)
uv run --with secret-portal secret-portal \
  -f ~/.secrets/keys.env \
  --tunnel cloudflared

Options

FlagDescription
-------------------
-k, --keyPre-populate a single key name (user only enters the value)
-f, --env-filePath to save secrets to (default: ~/.env)
-i, --instructionsHTML instructions shown above the input field
-l, --linkURL button for where to get/create the key
--link-textLabel for the link button (default: "Open console →")
--tunnelcloudflared (recommended), ngrok, or none
-p, --portPort to bind to (default: random)
--timeoutSeconds before auto-shutdown (default: 300)

Tunneling

Use --tunnel cloudflared — it's free, requires no account, has no interstitial pages, provides HTTPS, and auto-downloads the binary if missing.

ngrok free tier shows an interstitial warning page that blocks mobile and automated use.

Without a tunnel, the port must be open in your firewall/security group. The CLI will warn you if it detects the port is unreachable.

Security

  • One-time use: portal expires after a single submission
  • Token auth: URL contains a random 32-byte token
  • Secret values are never printed to stdout/stderr (enforced by tests)
  • Env file is written with 600 permissions (owner-only)
  • Secrets never touch chat history or terminal logs

Source

https://github.com/Olafs-World/secret-portal

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 02:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,754
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,141
developer-tools

Airbnb Search

awlevin
通过Airbnb公共前端API搜索房源,包含价格、评分和直接链接,无需用户API密钥。用于搜索Airbnb住宿、度假租赁或查询住宿价格。
★ 2 📥 2,295