The MyOpenClaw Developer API gives you full control over your AI infrastructure. Create instances, manage keys, and automate operations — all from your own scripts and CI/CD pipelines.
$ curl -H "Authorization: Bearer moc_abc..._xyz..." \
https://www.myopenclaw.cloud/api/v1/instances
[
{
"id": "inst_abc123",
"subdomain": "my-assistant",
"status": "running",
"plan": "pro",
"fly_region": "dfw"
}
]Full REST API coverage for managing your AI assistant infrastructure
Create, start, stop, restart, and delete instances. Full control over your AI infrastructure from any script or tool.
POST /api/v1/instances/{id}/startCreate keys with fine-grained scopes. Read-only for monitoring, write for automation, or full access for admin tools.
POST /api/v1/keysLong-running operations return immediately with an operation ID. Poll for completion or set up webhooks.
GET /api/v1/operations/{operationId}Manage up to 6 instances (Pro) or 21 instances (Business) from a single API key. Each with custom subdomains.
GET /api/v1/instancesBuilt with security at every layer. No shortcuts.
API keys are hashed with server-side pepper. Tokens are never stored in plaintext.
Least-privilege keys: instance:read, instance:write, keys:read, operations:read, and more.
Per-key and per-user global ceilings prevent abuse. Fail-closed when Redis is unavailable.
See how developers are using the API in production
Restart instances after deploying new configurations. Use idempotency keys to prevent duplicate operations from retries.
# GitHub Actions
- name: Restart instance
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.API_KEY }}" \
-H "Idempotency-Key: ${{ github.sha }}" \
https://www.myopenclaw.cloud/api/v1/instances/$ID/restartPoll instance status for custom uptime monitoring and alerting. Build Grafana dashboards or Datadog integrations.
# Check all instance statuses
curl -s -H "Authorization: Bearer $API_KEY" \
https://www.myopenclaw.cloud/api/v1/instances | \
jq '.[] | {subdomain, status, fly_region}'Manage multiple instances from a single script. Perfect for agencies running AI assistants for multiple clients.
import requests
API_KEY = "moc_abc123_xyz789..."
BASE = "https://www.myopenclaw.cloud/api/v1"
instances = requests.get(
f"{BASE}/instances",
headers={"Authorization": f"Bearer {API_KEY}"}
).json()
for inst in instances:
print(f"{inst['subdomain']}: {inst['status']}")API access is included with Pro ($49/mo) and Business ($99/mo) plans. No extra charges for API calls.