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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dergigi/nihaoWhat 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
- 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.
- Security Auditing: Use the health-check functionality to periodically verify if an agent's Nostr profile is correctly indexed and reachable by relays.
- 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
- "nihao, generate a new identity for my assistant named 'MarketBot', write the secret key to agent_keys.key, and output the npub for me."
- "Please audit my existing npub 'npub1...' and tell me what its current health score is according to the nihao tool."
- "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-fileflag 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dergigi-nihao": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: network-access, file-write
Related Skills
securityvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.
Soul Ledger
Gives any AI agent persistent memory of who the user is — not just facts, but patterns, preferences, personality traits, and behavioral evolution over time. The agent maintains a soul_ledger.json in the workspace and references it on every conversation start.
clawvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.
agent-lifecycle-protocol
Lifecycle management for autonomous AI agents — birth, forking, succession, migration, retirement. Maintain agent genealogy with reputation inheritance across versions. Identity continuity when agents evolve. Part of the Agent Trust Stack.
Agent Migration Pack
将AI Agent完整迁移到新环境或分享给其他用户的标准化工具包,包含身份、记忆、技能、风格等完整信息,支持状态迁移