← 返回 Skills 市场
qidu

ip lookup ( get ip )

作者 christo · GitHub ↗ · v1.0.2
cross-platform ✓ 安全检测通过
1905
总下载
1
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install get-ip
功能描述
Get current public IP address and geolocation information. Use when users ask about IP addresses, network location, or want to check their public IP. Supports both fetching IP info and displaying it clearly.
使用说明 (SKILL.md)

IP Lookup Skill

Overview

This skill provides a simple way to check your public IP address and its geolocation information.

Usage

When users ask:

  • "What is my IP?"
  • "What is my current IP address?"
  • "What's my public IP?"
  • "Where am I?"
  • "Where am I located?"
  • "Check location"
  • "Check my IP location"
  • "Get location"
  • "Locate me"
  • "What's the IP?"
  • "What's your IP?"

Execute the workflow below.

Workflow

Basic IP Check

Run this command to get your public IP and location:

curl -s myip.ipip.net

Example output:

Current IP:8.8.8.8  From: SF CA USA Google
Current IP:1.1.1.1  From: SF CA USA Cloudflare

Alternative Methods

If the above fails, try these alternatives:

Method 1: icanhazip.com (fallback)

curl -s icanhazip.com

Method 2: ipify API

curl -s https://api.ipify.org

Method 3: ifconfig.me

curl -s ifconfig.me

Full Geolocation Lookup

For more detailed geolocation info:

curl -s https://ipinfo.io/$(curl -s https://api.ipify.org)/json

Display Format

Present the information clearly:

IP Address: [address] Location: [city], [region], [country] ISP: [ISP name] Org: [organization]

Error Handling

If the primary service (myip.ipip.net) fails:

  1. Try alternative services one by one
  2. Report which service succeeded
  3. If all fail, inform the user about the network issue
安全使用建议
This skill appears to be what it claims: it makes simple network calls to public IP/geolocation services and prints results. Before installing, consider: (1) The skill will contact external services (myip.ipip.net, api.ipify.org, ifconfig.me, ipinfo.io) and thereby reveal your public IP to those third parties — that's inherent to the function. (2) The metadata does not list required binaries, but the script uses curl and python3; ensure your environment provides them. (3) If you require that lookups be done only via a particular provider for privacy reasons, review/modify the SKILL.md or get_ip.sh to use your chosen endpoint. Overall this package is coherent and low-risk, but review and trust the external endpoints if you are concerned about exposing your public IP.
功能分析
Type: OpenClaw Skill Name: get-ip Version: 1.0.2 The skill is designed to fetch and display public IP address and geolocation information, which is clearly aligned with its stated purpose. The `SKILL.md` instructions guide the agent to use standard `curl` commands against reputable IP lookup services (e.g., `myip.ipip.net`, `api.ipify.org`, `ipinfo.io`) and do not contain any prompt injection attempts to deviate from this purpose. The `get_ip.sh` script implements this functionality safely, using `curl` with timeouts and parsing JSON output via a hardcoded Python script, without any signs of data exfiltration, malicious execution, or persistence mechanisms. The `scripts/package_skill.py` file is a benign utility for packaging the skill.
能力评估
Purpose & Capability
The skill's name/description match its behavior: SKILL.md and get_ip.sh only fetch public IP and geolocation from public APIs (myip.ipip.net, api.ipify.org, ifconfig.me, ipinfo.io). One minor inconsistency: the skill metadata declares no required binaries, but the instructions and get_ip.sh rely on curl and python3 being present.
Instruction Scope
Runtime instructions and the shell script limit themselves to calling external IP lookup/geolocation endpoints and formatting results. The SKILL.md does not instruct the agent to read local files, secrets, or unrelated system state, nor to transmit data to unexpected endpoints beyond the listed IP services.
Install Mechanism
There is no install spec; this is effectively an instruction-only skill with two small helper scripts. No downloads from remote URLs or archive extraction are used by the skill itself, so installation risk is low.
Credentials
The skill requests no environment variables or credentials, which is appropriate. As noted above, it implicitly requires curl and python3 but does not declare them in required binaries; this is a minor metadata omission rather than a privilege escalation.
Persistence & Privilege
The skill is not always-enabled and does not request permanent presence or modification of other skills or system-wide settings. It also does not persist credentials or change agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install get-ip
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /get-ip 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Expanded list of trigger phrases to recognize more queries about IP address and location. - Improved clarity in user prompts such as "Where am I?", "Locate me", and "Get location". - No changes to core functionality or workflow.
v1.0.1
- Updated skill name to "ip-lookup" and expanded description for clarity. - Added clear, step-by-step workflow for retrieving public IP and geolocation details. - Listed multiple fallback methods using different online services for higher reliability. - Provided recommended information display format (IP address, location, ISP, org). - Included explicit error handling instructions for service failures.
元数据
Slug get-ip
版本 1.0.2
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

ip lookup ( get ip ) 是什么?

Get current public IP address and geolocation information. Use when users ask about IP addresses, network location, or want to check their public IP. Supports both fetching IP info and displaying it clearly. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1905 次。

如何安装 ip lookup ( get ip )?

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

ip lookup ( get ip ) 是免费的吗?

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

ip lookup ( get ip ) 支持哪些平台?

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

谁开发了 ip lookup ( get ip )?

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

💬 留言讨论