@spectyra/openclaw-plugin

Spectyra@spectyra

OpenClaw plugin: Spectyra savings UI, flow summaries, and prompt-security warnings (localhost companion only).

Readme

Spectyra OpenClaw Workflow Optimizer Plugin (Save on all LLM API calls)

Save 40% - 60% on OpenClaw costs in real-time. Native Spectyra savings and prompt-security visibility inside OpenClaw.

⚡ Quick Start

  1. Install the OpenClaw plugin:
bash
openclaw plugins install @spectyra/openclaw-plugin
  1. Start Spectyra:

The following command downloads and installs @spectyra/local-companion from the registry the first time you run it (you need Node.js, npm/pnpm, and network access to npm).

bash
npx @spectyra/local-companion start --open

With the companion running, the dashboard is at http://127.0.0.1:4111/dashboard.

  1. Open OpenClaw and run any prompt.

You should see Spectyra savings directly inside OpenClaw once the local companion is connected.

Seamless savings: the companion exposes read-only GET /openclaw/v1/latest (plus recent, flows/latest, status) on 127.0.0.1:4111. The plugin polls latest every few seconds and shows the most recent run without wiring trace IDs or flow metadata yourself. If inline attachment is not available, the Spectyra side/status panel still shows Latest OpenClaw savings from the same endpoint.


What you will see

  • Savings badges under OpenClaw responses (when trace data exists — nothing is fabricated)
  • Flow-level savings summaries (when companion flow data exists)
  • Security notices that do not interrupt flows
  • Spectyra status and controls (spectyra.status, dashboard link, optimization toggle)

Security notices are non-blocking

Spectyra shows warnings only. It does not stop prompts, cancel tool calls, pause autonomous agent flows, or require “Proceed anyway” confirmations. Prompt text is never auto-replaced by this plugin.

Autonomous flow behavior

Spectyra security notices are non-blocking (v1).

If Spectyra detects a possible secret, token, private key, internal URL, or risky tool action, it will show a warning and continue the OpenClaw flow. This keeps autonomous agent runs from being interrupted while still giving you visibility into possible prompt-security issues.

Security model

Spectyra is local-first.

The plugin only connects to:

http://127.0.0.1:4111

This plugin does not:

  • Proxy prompts through Spectyra cloud
  • Store provider API keys
  • Read arbitrary files
  • Execute shell commands
  • Install background services
  • Stop autonomous flows

Troubleshooting

Companion not running

Use Quick Start (npx @spectyra/local-companion start --open) above.

No inline savings showing

Inline savings appear only when the companion returns trace data for the response. The plugin never fabricates savings.

Security warning appeared

Spectyra detected a possible secret, token, private key, internal URL, or risky pattern. The notice is advisory — review when you can; your flow has already continued.

Development

bash
pnpm --filter @spectyra/openclaw-plugin run build
pnpm --filter @spectyra/openclaw-plugin test

See also SECURITY.md, PRIVACY.md, and PERMISSIONS.md.