← 返回 Skills 市场
vibrant

Domain Name Registration For Agents

作者 vibrant · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
1819
总下载
2
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install agentns
功能描述
Register and manage ICANN domains for AI agents. Wallet authentication (SIWE/SIWS), USDC payments on Base or Solana, full DNS management.
使用说明 (SKILL.md)

AgentNS - Domain Registration for AI Agents

Use this skill when you need to register domains, check domain availability, or manage DNS records for an agent or project.

Installation

pip install agentns-client

# For Solana wallet support:
pip install agentns-client[solana]

Complete Workflow

from agentns_client import AgentNSClient, load_or_create_wallet

# 1. Create client with wallet (auto-creates wallet.json if needed)
account = load_or_create_wallet()
client = AgentNSClient(account=account)

# 2. Check domain availability (no auth required)
result = client.check_domain("myagent.xyz")
if not result.available:
    print(f"{result.domain} is not available")
    # Search across 20 TLDs to find alternatives
    results = client.search_domains("myagent")
    available = [r for r in results if r.available]
    for r in available:
        print(f"{r.domain}: ${r.price_usdc} USDC")

# 3. Authenticate with wallet signature
client.login()

# 4. Create registrant profile (one-time, ICANN requirement)
client.ensure_registrant({
    "name": "Agent Smith",
    "street_address": "123 AI Street",
    "city": "San Francisco",
    "state_province": "CA",
    "postal_code": "94102",
    "country_code": "US",
    "email": "[email protected]",
    "phone": "+14155551234",
})

# 5. Register domain (payment handled automatically)
domain = client.register_domain("myagent.xyz")
print(f"Registered: {domain.domain}")
print(f"Expires: {domain.expires_at}")

# 6. Add DNS records
client.add_dns("myagent.xyz", type="A", host="@", value="192.0.2.1")
client.add_dns("myagent.xyz", type="CNAME", host="www", value="myagent.xyz")
client.add_dns("myagent.xyz", type="TXT", host="@", value="v=spf1 -all")

Wallet Setup

EVM (Base network - default):

from agentns_client import load_or_create_wallet
account = load_or_create_wallet("wallet.json")  # Creates if missing
print(f"Address: {account.address}")
# Fund with USDC on Base network before registering

Solana:

from agentns_client import load_or_create_solana_wallet
keypair = load_or_create_solana_wallet("solana_wallet.json")
print(f"Address: {keypair.pubkey()}")
# Fund with USDC on Solana before registering

Client Methods

Domain Operations

# Check single domain (no auth)
result = client.check_domain("example.com")
# Returns: DomainCheck(domain, available, price_usdc)

# Search across 20 TLDs (no auth)
results = client.search_domains("mycompany")
# Searches: com, io, net, co, ai, xyz, dev, app, org, tech,
#           club, online, site, info, me, biz, us, cc, tv, gg

# Register domain (requires auth + USDC balance)
domain = client.register_domain("example.xyz", years=1)
# Returns: DomainInfo(domain, owner_address, status, registered_at, expires_at)

# List owned domains
domains = client.list_domains()

DNS Management

# List DNS records
records = client.list_dns("example.xyz")

# Add record
record = client.add_dns(
    domain="example.xyz",
    type="A",           # A, AAAA, CNAME, MX, TXT, SRV, CAA
    host="@",           # @ for root, or subdomain name
    value="192.0.2.1",
    ttl=3600,           # 300-86400 seconds
    distance=10         # Required for MX/SRV only
)

# Update record
client.update_dns("example.xyz", record_id="12345", value="192.0.2.2")

# Delete record
client.delete_dns("example.xyz", record_id="12345")

Nameservers

# Get current nameservers
ns = client.get_nameservers("example.xyz")
# Default: ["ns1.namesilo.com", "ns2.namesilo.com"]

# Change to custom nameservers (e.g., Cloudflare)
client.set_nameservers("example.xyz", [
    "ns1.cloudflare.com",
    "ns2.cloudflare.com"
])

Registrant Profile

# Get profile
profile = client.get_registrant()

# Create profile (required before first domain registration)
profile = client.create_registrant({
    "name": "Required Name",
    "street_address": "123 Main St",
    "city": "San Francisco",
    "state_province": "CA",
    "postal_code": "94102",
    "country_code": "US",        # ISO 3166-1 alpha-2
    "email": "[email protected]",
    "phone": "+14155551234",
    "organization": "Optional Org",  # Optional
    "whois_privacy": True            # Optional, default True
})

# Update profile
client.update_registrant({"email": "[email protected]"})

# Get or create (recommended)
profile = client.ensure_registrant({...})

Error Handling

from agentns_client.exceptions import (
    AgentNSError,           # Base exception
    AuthenticationError,    # Invalid/expired JWT (401)
    PaymentRequiredError,   # Insufficient USDC balance (402)
    NotFoundError,          # Domain/record not found (404)
    ConflictError,          # Profile exists, domain taken (409)
    ValidationError,        # Invalid input (400)
    RateLimitError,         # Too many requests (429)
)

try:
    domain = client.register_domain("example.xyz")
except PaymentRequiredError as e:
    print(f"Need {e.payment_requirement.amount} USDC")
    print(f"Send to: {client.wallet_address}")
except ConflictError:
    print("Domain already registered or unavailable")
except AuthenticationError:
    client.login()  # Re-authenticate

Important Notes

  • USDC required: Fund your wallet with USDC on Base (EVM) or Solana before registering
  • Registrant profile: ICANN requires contact info - create once, reused for all domains
  • WHOIS privacy: Free on all domains, enabled by default
  • 400+ TLDs: Check any TLD with check_domain(), search 20 popular ones with search_domains()
  • Pricing: Domain cost + 20% markup (minimum $4), paid in USDC

Resources

安全使用建议
Before installing or using this skill: (1) Do NOT install or run agentns-client without reviewing the exact PyPI package and its source repo (verify the maintainer, code, and releases). (2) Treat any wallet.json/solana_wallet.json as highly sensitive — prefer creating a dedicated, low‑balance wallet or require manual signing (hardware wallet) rather than letting code auto-create and auto-pay. (3) Confirm the agentns project identity (agentns.xyz, GitHub repo, PyPI owner) and read the package code to ensure no unexpected network calls or telemetry. (4) If you allow the agent to invoke the skill autonomously, require explicit manual approval for any on‑chain payment or domain purchase to avoid unintended spending. (5) If you cannot or will not audit the external package, avoid granting it access to real funds or PII.
功能分析
Type: OpenClaw Skill Name: agentns Version: 1.0.1 The skill is classified as suspicious due to its inherent high-risk capabilities, even though they are plausibly needed for its stated purpose. It instructs the AI agent to perform sensitive operations such as creating and managing local cryptocurrency wallets (e.g., `wallet.json`, `solana_wallet.json`), handling private keys, and initiating financial transactions (USDC payments) via the `agentns-client` library. Additionally, the installation process relies on `pip install agentns-client`, introducing a supply chain risk if the external PyPI package were compromised. While there is no clear evidence of intentional malicious behavior like data exfiltration or prompt injection to subvert the agent's core directives, the nature of these operations warrants a 'suspicious' classification due to the significant security implications for the agent's environment and assets.
能力评估
Purpose & Capability
The skill's name/description (register/manage domains, DNS, pay in USDC) matches the runtime instructions: registrant contact info, wallet creation, and payments are indeed required for domain registration. Requesting PII and a funded crypto wallet is proportionate to ICANN registration and on-chain payments.
Instruction Scope
SKILL.md instructs installing a third-party PyPI package (agentns-client) and running it to auto-create wallet files (wallet.json/solana_wallet.json), authenticate (SIWE/SIWS), and perform payments automatically during register_domain(). Those runtime actions write files, handle private keys, sign/authenticate, and may submit on-chain payments — operations that go beyond simple API calls and have financial and privacy impact. The skill also prints or exposes wallet addresses and requires entering PII (name, address, phone, email).
Install Mechanism
The skill is instruction-only but instructs installing agentns-client from PyPI (and references a GitHub link). Because no code is bundled for audit, the actual behavior depends entirely on that external package. Installing an unreviewed package from PyPI carries risk (arbitrary code execution), especially since the package will manage keys and payments.
Credentials
No environment variables are requested, which is expected, but the skill causes creation/storage of sensitive artifacts (wallet files with private keys) and requires PII for registrant profiles. Those artifacts enable spending (USDC) and should be treated as high sensitivity; the skill does not document safeguards (e.g., manual signing, limits, or sandbox wallets). The financial access capability is proportionate to purpose but sensitive and needs stricter controls.
Persistence & Privilege
always:false (good) but model-invocation is allowed (default). Combined with instructions that create a local wallet and the client API that 'handles payment automatically' during registration, an agent with this skill could autonomously sign transactions and spend funds if it gains access to the wallet file. The skill does not describe requiring manual confirmation for payments or limiting transaction scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentns
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentns 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Removed internal scripts and requirements files from the repository. - Updated documentation to recommend installation and usage of the external agentns-client Python package. - Added examples showing both EVM (Base) and Solana wallet support. - Included concise workflow, methods, and error handling for the agentns-client library. - Documentation now focuses on Python client usage instead of shell scripts.
v1.0.0
- Initial release of AgentNS skill for domain registration via AgentNS.xyz. - Register and manage domains for AI agents with support for 400+ TLDs. - USDC payments on the Base blockchain, using wallet authentication (SIWE). - Free WHOIS privacy and DNS hosting included with all domains. - Full API and scriptable control for domain registration, DNS management, and renewals.
元数据
Slug agentns
版本 1.0.1
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Domain Name Registration For Agents 是什么?

Register and manage ICANN domains for AI agents. Wallet authentication (SIWE/SIWS), USDC payments on Base or Solana, full DNS management. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1819 次。

如何安装 Domain Name Registration For Agents?

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

Domain Name Registration For Agents 是免费的吗?

是的,Domain Name Registration For Agents 完全免费(开源免费),可自由下载、安装和使用。

Domain Name Registration For Agents 支持哪些平台?

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

谁开发了 Domain Name Registration For Agents?

由 vibrant(@vibrant)开发并维护,当前版本 v1.0.1。

💬 留言讨论