← Back to Skills Marketplace
dinghaibin

Hostname Tool

by BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
38
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hostname-tool
Description
Display or set the system hostname. Use for identifying the current machine on a network and configuring system identity.
README (SKILL.md)

Hostname - System Name Utility

Show or modify the system's hostname. The hostname identifies the machine on the network and is used in shell prompts, logs, and network services.

Usage

hostname-tool [options] [new-hostname]

Running without arguments displays the current hostname. Provide a new hostname to change it (requires root privileges).

Examples

# Display current hostname
hostname-tool

# Show fully qualified domain name
hostname-tool --fqdn

# Display IP address associated with hostname
hostname-tool --ip-address
Usage Guidance
The package is small and the script just prints Python's socket.gethostname(), so it looks harmless, but the documentation promises additional features that are not implemented. If you need a tool that can set hostnames, compute FQDNs, or resolve IP addresses, do not rely on this skill as-is. Before installing or running it: (1) review the script contents yourself (it's short), (2) run it in a sandbox or non-production environment, and (3) avoid running unknown tools as root. If you expect the documented features, ask the publisher for a corrected version or use an alternative utility that explicitly implements those capabilities.
Capability Analysis
Type: OpenClaw Skill Name: hostname-tool Version: 1.0.0 The skill bundle provides a simple utility to retrieve the system hostname using Python's socket library in scripts/hostname.py. Although the documentation in SKILL.md describes additional features like setting the hostname or retrieving the FQDN that are not actually implemented in the code, the existing script is harmless and contains no indicators of malicious intent, data exfiltration, or security risks.
Capability Assessment
Purpose & Capability
The skill claims to 'Display or set the system hostname' and documents options (--fqdn, --ip-address, changing hostname) but the included script only prints socket.gethostname() and offers no CLI parsing or hostname-setting functionality. This is a clear mismatch between claimed capability and actual implementation.
Instruction Scope
SKILL.md describes commands that would display FQDN, associated IP, and change the hostname (requiring root). The runtime instructions do not appear in the shipped code: there are no flags, no logic to compute FQDN/IP, and no code to change system hostname. The instructions therefore overreach the actual runtime actions.
Install Mechanism
No install spec is provided and only a tiny Python script is included. Instruction-only with a small helper script is low-risk from an installation perspective.
Credentials
The skill requests no environment variables, credentials, or config paths. The code uses only Python's socket.gethostname() and does not access secrets or external network endpoints.
Persistence & Privilege
The skill does not request persistent presence, does not modify other skills or system config, and does not require any special platform flags. The SKILL.md notes that changing hostname would require root, which is accurate but not implemented in the code.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hostname-tool
  3. After installation, invoke the skill by name or use /hostname-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug hostname-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Hostname Tool?

Display or set the system hostname. Use for identifying the current machine on a network and configuring system identity. It is an AI Agent Skill for Claude Code / OpenClaw, with 38 downloads so far.

How do I install Hostname Tool?

Run "/install hostname-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Hostname Tool free?

Yes, Hostname Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Hostname Tool support?

Hostname Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hostname Tool?

It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.

💬 Comments