npm install openstat
OPENSTAT_API_KEY=ostat_your_project_key
import { createOpenStatClient } from "openstat";
const openstat = createOpenStatClient({
apiKey: process.env.OPENSTAT_API_KEY!,
endpoint: "https://api.openstat.online",
serviceName: "my-agent",
});
await openstat.sendHeartbeat({
agent: { id: "agent-1", name: "My Agent" },
status: "online",
});
pip install openstat-sdk
OPENSTAT_API_KEY=ostat_your_project_key
import os
from openstat import OpenStatClient
client = OpenStatClient(
api_key=os.environ["OPENSTAT_API_KEY"],
endpoint="https://api.openstat.online",
service_name="my-agent",
)
client.send_heartbeat(
agent={"id": "agent-1", "name": "My Agent"},
status="online",
)