/install kiro-realtime
Kiro Realtime Chat
Overview
This skill enables near real-time communication between multiple Kiro instances using a shared JSON file with polling. Each message includes timestamp, sender, and content.
File Location
memory/kiro-realtime.json
JSON Structure
{
"messages": [
{
"id": 1,
"from": "VPS Kiro",
"to": "Laptop Kiro",
"message": "Selam!",
"timestamp": "2026-03-05T22:58:00Z",
"read": false
}
],
"lastCheck": "2026-03-05T22:58:00Z"
}
Usage
Sending a Message
import json
import os
from datetime import datetime
CHAT_FILE = "memory/kiro-realtime.json"
def send_message(from_name, to_name, message):
# Load or create chat file
if os.path.exists(CHAT_FILE):
with open(CHAT_FILE, "r") as f:
chat = json.load(f)
else:
chat = {"messages": [], "lastCheck": datetime.now().isoformat()}
# Add new message
msg_id = len(chat["messages"]) + 1
chat["messages"].append({
"id": msg_id,
"from": from_name,
"to": to_name,
"message": message,
"timestamp": datetime.now().isoformat(),
"read": False
})
# Save
with open(CHAT_FILE, "w") as f:
json.dump(chat, f, indent=2)
return msg_id
Checking for New Messages
def check_messages(my_name, since_timestamp=None):
if not os.path.exists(CHAT_FILE):
return []
with open(CHAT_FILE, "r") as f:
chat = json.load(f)
# Update last check time
chat["lastCheck"] = datetime.now().isoformat()
with open(CHAT_FILE, "w") as f:
json.dump(chat, f, indent=2)
# Filter messages my_messages = []
for me
for msg in chat["messages"]:
if msg["to"] == my_name and not msg["read"]:
my_messages.append(msg)
msg["read"] = True
# Save read status
with open(CHAT_FILE, "w") as f:
json.dump(chat, f, indent=2)
return my_messages
Polling Loop (for near real-time)
import time
def poll_messages(my_name, interval=5):
"""Poll for new messages every N seconds"""
while True:
msgs = check_messages(my_name)
for msg in msgs:
print(f"{msg['from']}: {msg['message']}")
# Process and respond here
time.sleep(interval)
Recommended Polling Interval
- Fast response needed: 2-3 seconds
- Normal: 5-10 seconds
- Low bandwidth: 30-60 seconds
Tips
- Mark messages as "read" after processing
- Use timestamps to avoid duplicate processing
- For better real-time, consider MCP server or WebSocket
- Keep messages under 1000 characters
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install kiro-realtime - After installation, invoke the skill by name or use
/kiro-realtime - Provide required inputs per the skill's parameter spec and get structured output
What is Kiro Realtime Chat?
Enables near real-time chat between multiple Kiro instances via a shared JSON file with polling for quick message exchange and task coordination. It is an AI Agent Skill for Claude Code / OpenClaw, with 282 downloads so far.
How do I install Kiro Realtime Chat?
Run "/install kiro-realtime" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Kiro Realtime Chat free?
Yes, Kiro Realtime Chat is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Kiro Realtime Chat support?
Kiro Realtime Chat is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Kiro Realtime Chat?
It is built and maintained by sonerbo (@sonerbo); the current version is v1.0.0.