← 返回 Skills 市场
pietro395

Bitaxe Monitor

作者 Pietro395 · GitHub ↗ · v1.0.2
cross-platform ✓ 安全检测通过
1546
总下载
1
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install bitaxe-monitor
功能描述
Monitor Bitaxe Gamma Bitcoin miner status via HTTP API. Use when the user wants to check the status, hashrate, temperature, power consumption, or statistics of a Bitaxe Gamma miner. Supports config file or environment variable for device IP configuration, fetching system info, and formatting output as human-readable text or JSON.
使用说明 (SKILL.md)

Bitaxe Monitor

Monitor and retrieve status information from Bitaxe Gamma (and compatible) Bitcoin miners via their HTTP API.

Overview

Bitaxe Gamma is an open-source Bitcoin miner based on the BM1370 ASIC. It exposes a REST API at http://\x3Cip>/api/system/info that returns real-time statistics including:

  • Hashrate (current, 1m, 10m, 1h averages)
  • Power consumption and voltage
  • Temperatures (ASIC, voltage regulator)
  • Fan speed and RPM
  • Share statistics (accepted/rejected)
  • Best difficulty found
  • WiFi status and signal strength
  • Pool connection info
  • Uptime and version info

Usage

Use the provided script to fetch and display miner status:

python3 scripts/bitaxe_status.py [ip_address] [--format {json,text}] [--set-ip IP]

IP Configuration

The script looks for the Bitaxe IP in this order:

  1. Command line argument
  2. Config file (~/.config/bitaxe-monitor/config.json)
  3. BITAXE_IP environment variable
  4. Error (if none found)

Saving IP Configuration

Option 1: Save to config file (recommended)

python3 scripts/bitaxe_status.py --set-ip 192.168.1.100

This saves the IP to ~/.config/bitaxe-monitor/config.json.

The config file is stored in a dedicated directory and does not modify your shell profile files.

Option 2: Set environment variable

export BITAXE_IP=192.168.1.100
python3 scripts/bitaxe_status.py

Option 3: Set for a single command

BITAXE_IP=192.168.1.100 python3 scripts/bitaxe_status.py

Checking Status

With IP configured:

python3 scripts/bitaxe_status.py

Override with different IP:

python3 scripts/bitaxe_status.py 192.168.1.105

Get raw JSON data:

python3 scripts/bitaxe_status.py --format json

API Endpoints

The Bitaxe API provides these main endpoints:

  • GET /api/system/info - Complete system status (used by default)
  • GET /api/system/asic - ASIC-specific settings
  • GET /api/system/statistics - Historical statistics (requires data logging enabled)
  • GET /api/system/statistics/dashboard - Dashboard-formatted statistics

Key Status Fields

Field Description Unit
hashRate Current hashrate GH/s
hashRate_1m 1-minute average GH/s
hashRate_10m 10-minute average GH/s
power Power consumption Watts
temp ASIC temperature °C
vrTemp Voltage regulator temp °C
fanspeed Fan speed percentage %
fanrpm Fan RPM RPM
sharesAccepted Accepted shares count
sharesRejected Rejected shares count
bestDiff Best difficulty found number
wifiRSSI WiFi signal strength dBm
uptimeSeconds System uptime seconds

Resources

scripts/

  • bitaxe_status.py - Main script to fetch and display Bitaxe status
    • Supports both text (human-readable) and JSON output formats
    • Handles connection errors gracefully
    • Formats key metrics with emoji indicators
    • Reads IP from config file or BITAXE_IP environment variable
    • Saves IP to config file with --set-ip

Configuration

Config File Location

The script stores configuration in:

~/.config/bitaxe-monitor/config.json

This directory is created automatically when using --set-ip.

Environment Variables

Variable Description Required
BITAXE_IP IP address of your Bitaxe miner Alternative to config file

Error Handling

The script handles common errors:

  • Connection failures (wrong IP, device offline)
  • Invalid JSON responses
  • Network timeouts
  • Missing IP (prompts user to configure IP)

Command Reference

Command Description
bitaxe_status.py Check status using saved configuration
bitaxe_status.py \x3CIP> Check status of specific IP (one-time)
bitaxe_status.py --set-ip \x3CIP> Save IP to config file
bitaxe_status.py --format json Output raw JSON
bitaxe_status.py --format text Output formatted text (default)

Examples

Quick setup (do once):

python3 scripts/bitaxe_status.py --set-ip 192.168.1.100

Daily usage:

python3 scripts/bitaxe_status.py

Check multiple miners:

python3 scripts/bitaxe_status.py 192.168.1.100
python3 scripts/bitaxe_status.py 192.168.1.101

References

For complete API documentation, see the official Bitaxe wiki: https://osmu.wiki/bitaxe/api/

The OpenAPI specification is available at: https://github.com/bitaxeorg/ESP-Miner/blob/master/main/http_server/openapi.yaml

安全使用建议
This skill appears to do exactly what it says: query a Bitaxe miner on your network and show status. Before installing, confirm you will only point it at miners you control (it contacts whatever IP you provide). The tool stores the IP in ~/.config/bitaxe-monitor/config.json; review that file if you want to manage stored addresses. The code is small and local — there are no external upload endpoints — but it comes from an unknown source (no homepage), so if you need higher assurance consider reviewing the script locally before running. Note: the script assumes numeric fields in the JSON and may raise runtime errors if the miner returns missing or non-numeric values; this is a quality bug, not a security red flag.
功能分析
Type: OpenClaw Skill Name: bitaxe-monitor Version: 1.0.2 The skill bundle is designed to monitor Bitaxe Gamma Bitcoin miners via their HTTP API. The `SKILL.md` provides clear, benign instructions without any prompt injection attempts. The `scripts/bitaxe_status.py` script uses standard Python libraries (`urllib.request`, `json`, `os`) to fetch data from a user-specified IP address (either via argument, config file `~/.config/bitaxe-monitor/config.json`, or `BITAXE_IP` environment variable) and display it. There is no evidence of data exfiltration, malicious execution, persistence, or obfuscation. All actions are consistent with the stated purpose.
能力评估
Purpose & Capability
Name/description (Bitaxe miner status via HTTP) match the implemented behavior: the script queries http://<ip>/api/system/info and formats the response. Requested artifacts (config file, BITAXE_IP env var) are appropriate and documented.
Instruction Scope
SKILL.md instructions match the script: they document CLI usage, config file location (~/.config/bitaxe-monitor/config.json), and BITAXE_IP. The runtime instructions do not ask the agent to read unrelated files, system credentials, or send data to endpoints other than the miner IP. They explicitly tell how IP is resolved and how to save it.
Install Mechanism
No install spec — instruction-only plus a small included Python script. No downloads, package installs, or archive extraction are performed.
Credentials
No secrets or cloud credentials requested. The only environment variable used is BITAXE_IP (documented in SKILL.md), which is proportional to the skill's purpose.
Persistence & Privilege
The skill does not request permanent inclusion or elevated privileges. It writes only to its own config file under the user's home (~/.config/bitaxe-monitor/config.json) when --set-ip is used.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bitaxe-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bitaxe-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Security fix: Replace shell profile modification with dedicated config file (~/.config/bitaxe-monitor/config.json). Removed all code that writes to ~/.bashrc, ~/.zshrc, or ~/.profile.
v1.0.1
Update - Enhanced error handling and documentation
v1.0.0
Initial release: Monitor Bitaxe Gamma status via API
元数据
Slug bitaxe-monitor
版本 1.0.2
许可证
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Bitaxe Monitor 是什么?

Monitor Bitaxe Gamma Bitcoin miner status via HTTP API. Use when the user wants to check the status, hashrate, temperature, power consumption, or statistics of a Bitaxe Gamma miner. Supports config file or environment variable for device IP configuration, fetching system info, and formatting output as human-readable text or JSON. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1546 次。

如何安装 Bitaxe Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bitaxe-monitor」即可一键安装,无需额外配置。

Bitaxe Monitor 是免费的吗?

是的,Bitaxe Monitor 完全免费(开源免费),可自由下载、安装和使用。

Bitaxe Monitor 支持哪些平台?

Bitaxe Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bitaxe Monitor?

由 Pietro395(@pietro395)开发并维护,当前版本 v1.0.2。

💬 留言讨论