A
AISP
DocsGetting Started

Getting Started

Install the AISP CLI, initialize a realm, and get two sessions talking to each other in under five minutes.

Prerequisites

Any operating system

macOS, Linux, or Windows — AISP runs everywhere.

No dependencies for L0 (file-based)

The CLI works out of the box; no runtime or database required for local sessions.

Node.js ≥ 18, Go ≥ 1.22, or Python ≥ 3.11 (optional)

Only needed if you plan to use one of the SDK packages instead of the CLI.

Install the CLI

Choose the installation method that matches your platform. All methods install the same binary.

macOS — Homebrewcopy
brew install aisp
Linux — assisted installercopy
aisp assisted-install
npm (any platform)copy
npm install -g @aisp/cli
Go — build from sourcecopy
go install github.com/aisp-protocol/aisp/cmd/aisp@latest
Verify the installation with aisp --version. You should see something like aisp v0.1.0.

Your First Session

An AISP session is a named, addressable identity for a running AI agent or process. The steps below walk through every primitive: init, start, discover, ping, and memory.

1

Initialize a realm

A realm is a shared namespace for sessions. For local development, it creates a directory at ~/.aisp/realms/default/ with a manifest file.

bashcopy
aisp realm setup
Terminal
Realm initialized at ~/.aisp/realms/default Manifest written: realm.json Run aisp session start to create your first session.
2

Start a session

Each session gets a cryptographic ID and is registered in the realm. The --kind flag describes what type of agent this session represents.

bashcopy
aisp session start --name "my-agent" --kind interactive
Terminal
Session started ID: sess_01HX9J2N3PQRSTVWXYZ Name: my-agent Kind: interactive Realm: default Transport: file://~/.aisp/realms/default
3

Discover peers

Any session can discover all other active sessions in its realm. Discovery is automatic — no service registry needed for L0.

bashcopy
aisp discover
Terminal
Found 1 peer in realm default my-agent · sess_01HX9J2N3PQRSTVWXYZ kind: interactive · status: active
4

Send a ping

Ping confirms a session is alive and measures round-trip latency.

bashcopy
aisp ping sess_01HX9J2N3PQRSTVWXYZ
Terminal
PONG from sess_01HX9J2N3PQRSTVWXYZ (my-agent) in 2ms
5

Share memory

AISP's shared memory layer lets sessions publish and consume structured state. Keys are namespaced by dot notation and scoped to the realm.

bashcopy
aisp memory set project.name "My Project"
bashcopy
aisp memory set project.stage "planning"
6

Read from another session

Open a second terminal and start another session. It will be able to read the memory key the first session wrote — no explicit sharing step required.

bashcopy
aisp memory get project.name
Terminal 2
project.name = "My Project"

Connect Two Sessions

The real power of AISP is session-to-session communication. Open two terminals and try the following:

Terminal 1 — Coordinator

bashcopy
# Start the coordinator session
aisp session start --name "coordinator" --kind planner

# Delegate a task to the worker
aisp delegate \
  --to sess_WORKER_ID \
  --task "Summarize the README" \
  --context '{"file": "README.md"}'

Terminal 2 — Worker

bashcopy
# Start the worker session
aisp session start --name "worker" --kind executor

# Watch for incoming delegations
aisp listen --kind delegate

# Accept and report back
aisp task accept TASK_ID
aisp task complete TASK_ID \
  --result "README summarized"
Discovery happens automatically within a realm. Both sessions see each other without any configuration — just aisp discover to list peers.

Next Steps