This example is also compatible with OpenClaw-style integrations.
agent-control npm version compatible with your server version (this example currently pins 0.2.0).
Prerequisites
- Node.js 20+
-
Agent Control server running (from repo root):
-
Optional API key (if server auth is enabled). This example creates, updates, and deletes controls, so it must be an admin key:
docker-compose.yml, the default admin key is 29af8554a1fe4311977b7ce360b20cc3.
Run
What It Does
The script insrc/quickstart.ts performs:
- SDK init with server URL and optional admin API key
- health check request
- list controls request
- create control request
- set/get control data requests (regex evaluator example)
- cleanup delete of the created control
Validate Types
Source Code
View the complete example with all scripts and setup instructions:TypeScript SDK Example