@riddledc/openclaw-riddledc
v0.5.5
Published
OpenClaw integration package for RiddleDC (no secrets).
Downloads
1,291
Readme
@riddledc/openclaw-riddledc
OpenClaw plugin for Riddle - hosted browser automation API. Take screenshots, run Playwright scripts, and automate web interactions from your OpenClaw agent.
Install
# 1. Install the plugin
openclaw plugins install @riddledc/openclaw-riddledc
# 2. Add to allowlist and enable
openclaw config set plugins.allow --json '["discord","telegram","memory-core","openclaw-riddledc"]'
openclaw config set tools.alsoAllow --json '["openclaw-riddledc"]'
# 3. Set your API key
openclaw config set plugins.entries.openclaw-riddledc.config.apiKey "YOUR_RIDDLE_API_KEY"
# 4. Restart gateway
openclaw gateway restart
# Or if using systemd: systemctl restart openclaw-gatewayGet your API key at riddledc.com.
Tools
| Tool | Description |
|------|-------------|
| riddle_screenshot | Take a screenshot of a single URL |
| riddle_screenshots | Take screenshots of multiple URLs in one job |
| riddle_steps | Run a workflow using steps (goto/click/fill/etc.) |
| riddle_script | Run full Playwright code |
| riddle_run | Low-level pass-through to the Riddle API |
All tools return screenshots + console logs by default. Pass include: ["har"] to also capture network traffic.
How It Works
Screenshots are automatically saved to ~/.openclaw/workspace/riddle/screenshots/ and the tool returns a file reference instead of inline base64. This keeps agent context small and prevents token overflow.
Example response:
{
"ok": true,
"job_id": "job_abc123",
"screenshot": { "saved": "riddle/screenshots/job_abc123.png", "sizeBytes": 45000 },
"console": []
}Configuration
| Option | Description |
|--------|-------------|
| apiKey | Your Riddle API key (or set RIDDLE_API_KEY env var) |
| baseUrl | API endpoint (defaults to https://api.riddledc.com) |
Security
- Capability manifest: See
openclaw.plugin.jsonfor declared permissions - Network: Only communicates with
api.riddledc.com(hardcoded allowlist) - Context: No access to conversation history, other tools, or user profile
- Filesystem: Only writes to
~/.openclaw/workspace/riddle/ - Secrets: Only requires
RIDDLE_API_KEY(use env var, not config file)
For defense in depth, run your agent with sandboxing:
agents:
defaults:
sandbox: trueSee SECURITY.md for full threat model, data flow diagram, and capability details.
Reproducible Builds
To verify a build matches the published package:
- Clone the repo at the tagged version
- Run:
pnpm install && pnpm build - Compare checksums:
shasum -a 256 dist/*
Expected checksums are in CHECKSUMS.txt.
License
MIT
