← 返回
开发者工具 中文

DataHive Installer

Automates DataHive sign-in using a magic link workflow: requests the link, retrieves it from Gmail via gog, and opens it in a Chrome DevTools tab.
自动化 DataHive 登录:请求魔术链接,通过 gog 从 Gmail 获取并在 Chrome DevTools 标签页中打开。
tuleyko
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 666
下载
💾 8
安装
1
版本
#latest

概述

datahive-installer

Automates installation of DataHive node.

DataHive context (for operators)

DataHive is a platform for high-quality AI training datasets and analytics use cases across domains such as e-commerce, reviews, audio, image, and video, with an emphasis on decentralized and passive data collection workflows. This skill is limited to dashboard authentication automation, specifically requesting a magic link, retrieving it, and opening the login tab, and does not cover dataset management.

Trigger phrases

Use this skill when the user says things like:

  • "run datahive-installer"
  • "log me into DataHive"
  • "start DataHive login flow"
  • "execute DataHive installer"
  • "setup DataHive"
  • "install DataHive"

Execution rule

Always execute this skill in the exact sequence defined in strict order, exactly as written in this SKILL.md.

Do not skip, reorder, or parallelize steps unless the user explicitly asks to change the sequence.

What this skill does

  1. Detect platform (ubuntu or macos) and stop with an error for any other OS.
  2. Install runtime prerequisites for the detected platform.
  3. Launch Chrome in persistent background mode with CDP enabled.
  4. Read your authenticated gog account email.
  5. Request a DataHive magic link via API.
  6. Find the latest DataHive login email in Gmail.
  7. Extract the magic login URL.
  8. Open the magic URL in a new browser tab over CDP.

Step 0 — Detect platform

Run:

./scripts/0_detect_platform.sh

Expected output:

  • ubuntu for Ubuntu hosts
  • macos for macOS hosts

Any other value or non-zero exit means unsupported platform.

Step 1 — Install prerequisites (platform-aware)

Run:

PLATFORM="$(./scripts/0_detect_platform.sh)" ./scripts/1_install_prerequisites.sh

Behavior by platform:

  • ubuntu: installs Chrome + xvfb via apt, applies managed extension policy, installs websocat.
  • macos: installs Chrome via Homebrew cask (if missing), applies managed extension policy in /Library/Managed Preferences/com.google.Chrome.plist, installs websocat.

Step 2 — Launch browser in persistent background mode (platform-aware)

Run:

PLATFORM="$(./scripts/0_detect_platform.sh)" ./scripts/2_launch_chrome_supervisor.sh

Behavior by platform:

  • ubuntu: launches google-chrome under xvfb-run.
  • macos: launches /Applications/Google Chrome.app/Contents/MacOS/Google Chrome directly.

Optional checks:

curl -sf http://localhost:9222/json/version
tail -f "$HOME/.chrome-datahive/chrome.log"

Step 3 — Get email from gog

gog auth list --json

Use the default account email from output (example: peter@gmail.com).

Step 4 — Request magic link

Use the helper script with your gog email:

./scripts/4_request_magic_link.sh <EMAIL>

(or EMAIL= ./scripts/4_request_magic_link.sh)

Expected response:

{"message":"If this email exists, a login link has been sent"}

Step 5 — Find latest DataHive magic-link email

gog gmail messages search 'from:datahive newer_than:7d' --max 10 --account <EMAIL>

Take the top/latest message ID and fetch it:

gog gmail get <MESSAGE_ID> --account <EMAIL> --json

Extract the URL from the HTML body:

https://dashboard.datahive.ai/auth?token=...

Step 6 — Open magic link

Run:

TARGET_URL='https://dashboard.datahive.ai/auth?token=<TOKEN>' ./scripts/6_open_magic_link.sh

Notes

  • Magic links expire quickly (about 15 minutes).
  • Treat magic links as secrets; do not share them.
  • If CDP is not available, start Chrome with remote debugging enabled.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 20:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ride Receipts

tuleyko
使用 gog 拉取 Gmail 乘车收据邮件,利用 OpenClaw Gateway /v1/responses 提取数据,构建本地 SQLite 乘车历史数据库。适用于...
★ 0 📥 822
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,427
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,838