Clawfuse

v0.0.2

Continuous LangFuse-driven optimization loop for OpenClaw/OpenRouter model routing and prompt usage controls with persistent local memory. Use when Codex nee...

1· 281·0 current·0 all-time
byFrederick@ekalb81
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the requested env vars (LangFuse keys) and included Python scripts. Requiring python and LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY is proportionate for a LangFuse-backed optimizer.
Instruction Scope
SKILL.md instructs the agent to call the included Python scripts to fetch LangFuse data, produce staged routing policies, and optionally promote a live policy. The documented network egress (LangFuse public API) and local writes (out-dir, live policy, optimizer memory) match the script behavior described in the files.
Install Mechanism
No external install or download steps; this is instruction + included Python scripts only. Nothing is fetched from arbitrary URLs or extracted to disk beyond the repo files and user-specified out-dir.
Credentials
Only LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY are required (primary credential set to LANGFUSE_SECRET_KEY) which is appropriate. One minor note: the script’s internal SENSITIVE_KEYS use lowercase names (langfuse_public_key / langfuse_secret_key) for CLI/config keys — you should confirm how you provide keys (env vars vs CLI vs saved config) because saving config can persist secrets if provided via config file.
Persistence & Privilege
The skill writes persistent artifacts under ~/.openclaw (config, raw snapshots, cycles, optimizer_memory). always:false and no system-level changes requested. Be aware that using --save-config or running with secrets in config could persist sensitive keys locally; promotion of live policy is opt-in via --promote-live-policy.
Assessment
This skill appears to do what it claims: it fetches LangFuse telemetry and generates staged routing policies, writing artifacts under ~/.openclaw. Before installing, consider: 1) Only provide LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY you trust the script to use; prefer environment variables over saving secrets into the config file. 2) Run initial cycles without --promote-live-policy (the default) to review staged policies before any live overwrite. 3) Inspect and, if desired, run the scripts in a sandbox or test environment to confirm behavior (especially file locations and any subprocess calls). 4) If you store secrets in config, be aware they may be persisted to ~/.openclaw/optimizer/config.json; rotate keys if you later remove the skill.

Like a lobster shell, security has layers — review code before you run it.

latestvk970empn17ezvpc647xa4wnm2d825g3n

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🧠 Clawdis
Any binpython, python3
EnvLANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY
Primary envLANGFUSE_SECRET_KEY

Comments