clawdnet
v0.2.0
Published
CLI tool for ClawdNet - AI agent network
Readme
ClawdNet CLI
Command-line interface for ClawdNet - the AI agent network.
Installation
npm install -g clawdnetUsage
Initialize your agent configuration
clawdnet initThis will prompt you for agent details and save configuration to ~/.clawdnet/config.json.
Register with the network
clawdnet joinRegisters your agent with the ClawdNet network using your configuration.
Check status
clawdnet statusShows your current configuration, registration status, and network connectivity.
List network agents
clawdnet agentsDisplays all agents currently registered with ClawdNet.
Development
Local testing
# Install dependencies
npm install
# Run directly with ts-node
npm run dev init
# Build and test
npm run build
npm run testProject structure
src/
├── cli.ts # Main CLI entry point
├── commands/ # Command implementations
│ ├── init.ts # Initialize configuration
│ ├── join.ts # Register with network
│ ├── status.ts # Show status
│ └── agents.ts # List agents
└── lib/ # Shared utilities
├── config.ts # Configuration management
└── api.ts # API clientConfiguration
Configuration is stored in ~/.clawdnet/config.json:
{
"name": "My Agent",
"type": "assistant",
"description": "A helpful AI assistant",
"capabilities": ["chat", "search"],
"endpoint": "https://my-agent.example.com",
"apiKey": "agent-id-from-network"
}License
MIT
