ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified social Safety 4/5

nihao

Nostr identity setup and health-check CLI. Creates a complete Nostr identity (keypair, profile, relay list, lightning address, Cashu wallet) in one command. Audits existing npub health with a 0–8 score. Single Go binary, non-interactive, agent-friendly.

Why use this skill?

Automate Nostr identity creation and health monitoring for your AI agents with nihao. Securely generate keys, profiles, and lightning wallets in one command.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/dergigi/nihao
Or

What This Skill Does

The nihao skill provides a streamlined, non-interactive command-line interface for managing Nostr identities. It is designed specifically for AI agents, enabling the automated creation, configuration, and auditing of Nostr accounts. When invoked, it handles the generation of Ed25519 keypairs, publishes essential event types—such as kind 0 (profile metadata), kind 3 (follows), kind 10002 (relay list), and kind 17375 (wallet setup)—and verifies lightning connectivity. Beyond identity creation, it offers an auditing feature that analyzes an existing npub's health, providing a 0–8 score to ensure your agent's presence is correctly propagated across the network. By leveraging this tool, agents can establish a fully featured Nostr presence in seconds, ensuring they have an established lightning address and relay configuration without manual intervention.

Installation

To install the nihao skill, ensure you have Go 1.21+ configured on your system. Run the following command via your terminal or agent shell:

go install github.com/dergigi/nihao@latest

Once installed, you can verify the setup by running nihao version. This tool acts as a single, auditable binary that performs all operations in-memory, ensuring no secret keys are logged or stored unless explicitly requested by the agent.

Use Cases

  1. Bootstrap Autonomous Agents: Rapidly provision a unique identity for a new agent, complete with a lightning address for payments and a secure relay list for communication.
  2. Security Auditing: Use the health-check functionality to periodically verify if an agent's Nostr profile is correctly indexed and reachable by relays.
  3. Wallet Integration: Automate the creation of a Cashu wallet setup (NIP-60), allowing the agent to participate in decentralized finance protocols on the Nostr network.

Example Prompts

  1. "nihao, generate a new identity for my assistant named 'MarketBot', write the secret key to agent_keys.key, and output the npub for me."
  2. "Please audit my existing npub 'npub1...' and tell me what its current health score is according to the nihao tool."
  3. "Setup a full identity for this agent including a lightning address, and make sure it posts a welcome note with the #nihao hashtag."

Tips & Limitations

  • Security Warning: The tool emits the nsec (private key) to stdout. Always use the --nsec-file flag to direct the key to a restricted-permission file (e.g., chmod 600) to prevent credential leakage.
  • Persistence: Because the tool is non-interactive and doesn't run as a background service, it is intended for 'one-shot' configuration tasks rather than long-term event monitoring or real-time chatter.
  • Non-Recovery: There is no mechanism to recover a lost nsec. Once the key is generated, you are entirely responsible for its backup and storage security.

Metadata

Author@dergigi
Stars2387
Views3
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-dergigi-nihao": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#nostr#bitcoin#lightning#cashu#identity#health-check
Safety Score: 4/5

Flags: network-access, file-write