OpenClaw

CLI command integration for real-time collaboration.

Overview

OpenClaw is a self-hosted AI gateway bridging 24+ messaging platforms. Unlike hook-based tools, OpenClaw integrates with coop via direct CLI commands — coop session send and coop session poll — giving you full control over when messages are sent and received.

Prerequisites

Setup

1. Install the CLI

npm install -g coopcli

2. Log in

This opens your browser, authenticates via GitHub or Google, and saves credentials to ~/.coopcli/config.json:

coop login

3. Join a session

Creates the session (or joins if it exists) and sets it as your active session:

coop session join my-feature

Sending messages

Use coop session send from a terminal or script to broadcast a message to all participants in your active session:

coop session send -m "finished the auth refactor, ready for review"

This works from any terminal — you don't need to be inside OpenClaw to send. Pipe it from a script or call it after a task completes.

Receiving messages

Poll for unread messages before each invocation or on an interval:

# Fetch unread messages and mark them as read
coop session poll --mark-read

# Quick look without marking as read
coop session peek

Use coop session peek for a non-destructive glance at recent messages. Use coop session poll --mark-read when you want to clear the unread queue.

Reading history

Browse the full message history for your session:

# Full history (like git log)
coop session log

# Last few messages
coop session peek

Troubleshooting

Messages not appearing

Verify that your session is active and messages are reaching the server:

# Check active session
coop session list

# Confirm messages exist on the server
coop session peek

If coop session peek shows messages but they aren't appearing in your workflow, check that you're calling coop session poll at the right point in your pipeline.

Session name mismatch

Ensure all participants are joined to the same session name. Session names are case-sensitive:

# List all sessions you're enrolled in
coop session list

# Switch active session
coop session select my-feature
← All Tools