openclawv1.0.0

Openclaw Revenium

@revenium⭐ 11 stars· last commit 6mo ago· 0 open issues

OpenClaw skill from revenium

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

7.7/10
Verified
Apr 29, 2026

// RATINGS

⭐GitHub Stars
⭐⭐ 11 on GitHubGitHub ↗

Growing

🟢ProSkills ScoreAI Verified
7.7/10
📍

Not yet listed on ClawHub or SkillsMP

// README

Revenium OpenClaw Skill

Budget enforcement and token metering for OpenClaw agents using the Revenium platform. Tracks AI spend, enforces configurable budget guardrails, and reports usage automatically — so agents never silently blow through your token budget.

Prerequisites

Installation

1. Install the skill from ClawHub

clawhub install --force --dir ~/.openclaw/skills revenium

About the VirusTotal warning: ClawHub may display a warning that this skill is "flagged as suspicious by VirusTotal Code Insight." This is a false positive — the skill calls the Revenium API via the revenium CLI and handles API keys during setup, which triggers VirusTotal's heuristic detection for "external APIs" and "crypto keys." The skill is open source and safe to install. The --force flag bypasses this warning.

2. Run post-install setup

ClawHub does not run post-install scripts, so run the setup script to install any missing prerequisites and configure OpenClaw sandbox access:

bash ~/.openclaw/skills/revenium/scripts/post-install.sh

This will:

  1. Check for and install the revenium CLI and jq via Homebrew (if missing)
  2. Verify python3 is available
  3. Mark the skill's scripts as executable
  4. Configure Docker sandbox bind mounts in ~/.openclaw/openclaw.json — mounts ~/.openclaw (rw), bin directories containing revenium and jq (ro) with shared library dirs, ~/.config/revenium (ro) for CLI credentials, and sets PATH, HOME, LD_LIBRARY_PATH, and SSL_CERT_FILE in the container environment
  5. Enable autoAllowSkills in ~/.openclaw/exec-approvals.json so skill-declared binaries are auto-approved
  6. Seed an initial budget-status.json so the agent doesn't error before the cron's first run
  7. Inject a mandatory budget check section into AGENTS.md so budget enforcement is always in context
  8. Verify the installation

Already have prerequisites installed? Pass --skip-prereqs to skip Homebrew installs and fail immediately if anything is missing.

3. Restart the OpenClaw gateway

Restart the gateway for sandbox changes to take effect.

4. Verify

openclaw skills list

You should see revenium in the list. If not, confirm revenium is on your PATH — the skill requires it via binary gating.

First-time setup (automatic)

The metering cron and budget alert are configured automatically when you first interact with the agent after installing the skill. The agent will walk you through providing your Revenium credentials and configuring your budget — no manual script execution needed.

To verify the cron is running after setup:

tail -f ~/.openclaw/revenium-metering.log

To manually manage the cron:

# Reinstall
bash ~/.openclaw/skills/revenium/scripts/install-cron.sh

# Uninstall
bash ~/.openclaw/skills/revenium/scripts/uninstall-cron.sh

Setup

Setup happens automatically the first time the agent tries to perform an operation. The agent will:

  1. Ask for your Revenium API key, Team ID, Tenant ID, and User ID
  2. Optionally ask for your organization name (for Revenium reporting attribution)
  3. Ask for a budget threshold (e.g., 5.00)
  4. Ask for a budget period (DAILY, WEEKLY, MONTHLY, or QUARTERLY)
  5. Optionally configure autonomous mode with halt-on-exceed and notifications (Slack, Discord, Telegram, etc.)
  6. Create a budget alert in Revenium and save the alert ID to ~/.openclaw/skills/revenium/config.json
  7. Install the background metering cron (runs every minute)

Setup is atomic — if any step fails, no partial config is written.

How It Works

Token Metering

A background cron job runs every minute and:

  1. Reports usage (report.sh) — reads OpenClaw session JSONL files, extracts token usage for each assistant completion, and ships events to Revenium via revenium meter completion with:
    • Model name and provider (derived from the model string)
    • Token counts (input, output, cache read, cache write, total from the API)
    • Operation type (CHAT, TOOL_CALL, or GUARDRAIL)
    • Trace ID linking related completions within a conversation turn
    • Request timing and duration computed from JSONL timestamps
    • The user's input message, assistant response, and system prompt
    • Organization name, agent identifier (OpenClaw), model source, and streaming flag
  2. Checks budget (budget-check.sh) — fetches the current budget alert from Revenium, computes whether spend exceeds the threshold, and writes the result to budget-status.json

Both scripts are bash 3.x compatible (works on macOS's default bash).

Budget Enforcement

Before every turn (completions, tool calls, responses — any action that incurs AI cost), the agent reads the local budget-status.json file written by the cron:

  • Within budget — proceeds silently, no interruption
  • Budget exceeded (interactive mode) — warns the user with current spend vs. threshold and asks for permission to continue
  • Budget exceeded (autonomous mode) — halts all operations and sends a notification to the configured channel
  • Status unavailable — proceeds with caution (fail-open)

This avoids a network round-trip to Revenium on every turn — the cron keeps the local status file current.

/revenium Command

Run /revenium at any time to:

  • View budget status — current spend, threshold, percent used, remaining
  • Reset budget — zero out current spend by deleting and recreating the alert (preserves all settings)
  • Reconfigure — update your API key, budget amount, or period (the old alert is deleted and a new one is created)

Configuration

The skill stores its config at ~/.openclaw/skills/revenium/config.json:

{
  "alertId": "75BjG5",
  "organizationName": "my-org",
  "autonomousMode": false
}
  • alertId — the Revenium budget alert ID (required, created during setup)
  • organizationName — optional, used for attribution in Revenium reporting
  • autonomousMode — when true, budget exceedance halts all operations and sends notifications
  • notifyChannel / notifyTarget — notification destination for autonomous mode alerts

Your API key, Team ID, Tenant ID, and User ID are stored separately by the revenium CLI (at ~/.config/revenium/config.yaml).

The cron writes ~/.openclaw/skills/revenium/budget-status.json with the latest budget check result — this is what the agent reads to enforce the guard.

Uninstalling

bash ~/.openclaw/skills/revenium/scripts/uninstall-cron.sh
rm -rf ~/.openclaw/skills/revenium

Optionally clean up your Revenium budget alert:

revenium alerts budget list
revenium alerts budget delete <alert-id> --yes

Support

Questions, bugs, or feature requests? Join us on Discord.

// HOW IT'S BUILT

KEY FILES

README.mdSKILL.md

// REPO STATS

11 stars
0 open issues
Last commit: 6mo ago