Skip to main content
Unsupported HAIP 1 archive. This is historical chat and streaming documentation, not the HAIP 2 review protocol. Its APIs, package examples and security advice must not be used for a HAIP 2 deployment. Start with the current HAIP 2 guides.

Get started in three steps

Implement HAIP in your application with this quick guide.

📦 Install Packages

Step 1: Create Server

Save this in server.js

Step 2: Create client

Save this in client.js

Step 3: Run Locally

In the client
You should see something like this:

Step 4: Connecting with the CLI Tool

Now run (assumig you are running this locally on localhost:8080)
You can also use the echo tool:

Authentication

Secure your connections with JWT tokens and proper validation.

Tool Integration

Enable agents to call external tools and APIs.

Flow Control

Manage back-pressure and prevent system overload.

Error Handling

Implement robust error handling and recovery.