openclaw-plugin-anthrovision-bridge
v1.1.4
Published
OpenClaw plugin that submits body-scan videos to the AnthroVision bridge service
Readme
OpenClaw Plugin: AnthroVision Bridge
This plugin gives OpenClaw two tools:
anthrovision_bridge_submit_scananthrovision_bridge_check_scan
It connects your OpenClaw assistant to the standalone bridge service in:
/Users/danielryan/Projects/body-measurement-scanner/products/anthrovision-bridge
Install Locally
openclaw plugins install -l /Users/danielryan/Projects/body-measurement-scanner/products/openclaw-plugin-anthrovision-bridge
openclaw plugins listConfigure
Add plugin config to your OpenClaw config (or edit via UI if available):
{
"plugins": {
"entries": {
"openclaw-plugin-anthrovision-bridge": {
"enabled": true,
"config": {
"apiKey": "replace-with-api-key",
"defaultGender": "male",
"defaultHeightCm": 180.3
}
}
}
}
}apiKeyis required.baseUrlis optional and defaults tohttps://anthrovision-bridge-production.up.railway.app.- Backward compatibility:
bridgeTokenis still accepted ifapiKeyis not set.
After updating plugin config, restart OpenClaw gateway.
For local/self-hosted testing, set:
"baseUrl": "http://localhost:8787"
User One-Time Setup (from npm)
A user needs one value from AnthroVision support:
apiKey(their personal access key)
Then they run:
openclaw plugins install openclaw-plugin-anthrovision-bridge
openclaw config set plugins.entries.openclaw-plugin-anthrovision-bridge.enabled true
openclaw config set plugins.entries.openclaw-plugin-anthrovision-bridge.config.apiKey "<their-personal-api-key>"
openclaw gateway restartIf they need a custom bridge deployment:
openclaw config set plugins.entries.openclaw-plugin-anthrovision-bridge.config.baseUrl https://your-bridge.example.com
openclaw gateway restartIn Telegram, they should send /reset once after install/restart.
Billing & Credits
- Billing is prepaid and enforced by the bridge.
- Each successful scan deducts
1credit. - If credits are exhausted, the bridge returns
402 Payment Required. - The plugin maps billing/auth/rate-limit statuses to user-safe messages and returns
telegram_replyplusdashboard_url(defaults tohttps://body-measurement-scanner.vercel.app/billing). - Consent prompts can use Telegram inline button styles (
primary|success|danger) when supported by your OpenClaw version/channel config.
Telegram Flow
- User shares video + gender + height + phone model.
video_urlshould be a downloadablehttps://URL.- OpenClaw inbound local paths are accepted only from
~/.openclaw/media/inboundand are sent as inline base64. - Private/local network URLs are blocked by default (
localhost,127.0.0.1, RFC1918 ranges).
- Assistant uses
anthrovision_bridge_submit_scan. - Assistant polls
anthrovision_bridge_check_scan. - Assistant returns measurements in chat.
- If Telegram inline buttons are enabled, consent and billing actions can be shown as styled buttons.
- Typical processing time is about 1-4 minutes; the submit acknowledgement includes estimated wait.
Troubleshooting
401or403: API key is missing/invalid. UpdateapiKeyin plugin config.402: Credits are exhausted. Add credits, then retry.429: Too many requests. Wait briefly and retry.- Long processing times: if a scan takes a while, use the
Support IDshown in bot replies to trace it in bridge logs.
If Telegram Says "I don't have tools ..."
Run:
openclaw gateway restartThen in the Telegram chat with your bot, send:
/resetThis forces a fresh tool/session context so anthrovision_bridge_submit_scan and anthrovision_bridge_check_scan are available.
Share With Others
- Move this plugin folder to its own repo.
- Publish as npm package.
- Users install with:
openclaw plugins install openclaw-plugin-anthrovision-bridge
Launch Checklist (v1)
- Publish bridge service (Railway/Render) from:
/Users/danielryan/Projects/body-measurement-scanner/products/anthrovision-bridge
- Set bridge production env vars:
SWAN_API_KEYOPENCLAW_BRIDGE_PUBLIC_BASE_URL(your public bridge URL)OPENCLAW_BRIDGE_TOKENSWAN_WEBHOOK_TOKENUPSTASH_REDIS_REST_URLUPSTASH_REDIS_REST_TOKEN- Leave
OPENCLAW_SWAN_CALLBACK_URLempty in production.
- Publish plugin package from:
/Users/danielryan/Projects/body-measurement-scanner/products/openclaw-plugin-anthrovision-bridge
- Install plugin on any OpenClaw instance:
openclaw plugins install openclaw-plugin-anthrovision-bridge
- Add plugin config (
apiKey, optionalbaseUrl), then restart gateway:openclaw gateway restart
