This page provides comprehensive examples of how to use the HAIP CLI for various scenarios and use cases.

Install the SDK

You need the CLI Installed

Basic Examples

Server Health Check

# Check if server is running
haip health

# Check specific server
haip health --url http://my-server:8080

# Get detailed health information
haip health --format json

Send Messages

# Send open a chat with the echo tool
haip chat

# Send open a chat with the llm tool
haip chat --tool llm

# Choose a server to send the command to
haip chat --url ws://localhost:8080