Installatie
Snelle installatie (Linux / macOS)
curl -fsSL https://peria.ai/install.sh | bash
Dit downloadt de nieuwste release-binary voor uw platform, verifieert de SHA256-checksum en plaatst deze in ~/.local/bin/.
Initialiseer PRECC na de installatie:
precc init
precc init registreert de PreToolUse-hook bij Claude Code, maakt de gegevensmappen aan en initialiseert de skills-database.
Installatieopties
SHA256-verificatie
Standaard verifieert het installatieprogramma de binaire checksum tegen de gepubliceerde SHA256-som. Om verificatie over te slaan (niet aanbevolen):
curl -fsSL https://peria.ai/install.sh | bash -s -- --no-verify
Aangepast installatieprefix
Installeren op een aangepaste locatie:
curl -fsSL https://peria.ai/install.sh | bash -s -- --prefix /opt/precc
OpenCLI (–opencli) — WebFetch token savings
PRECC can also install OpenCLI, a third-party Node.js tool that turns ~148 websites (HackerNews, Reddit, arxiv, bilibili, zhihu, x.com, …) into structured-output commands. When installed, PRECC’s two built-in webfetch-opencli-* skills auto-rewrite raw curl/wget calls into the corresponding opencli <site> command for 5–50× smaller output.
precc init --opencli
This runs npm install -g @jackwener/opencli (requires Node.js 20+) and prints the URL for OpenCLI’s optional Chrome extension. The extension is only needed to reuse logged-in cookies on private pages; public sources work without it.
Skipping --opencli keeps PRECC fully self-contained — the auto-rewrite skill inlines a command -v opencli check that falls back to the original command when OpenCLI isn’t installed, so the skill is safe to ship default-on.
The Chrome extension requests broad permissions (debugger, <all_urls>, cookies). Operators should review them before installing it; --opencli only handles the npm package, not the extension.
Bijkomende tools (–extras)
PRECC wordt geleverd met optionele bijkomende tools. Installeer ze met --extras:
curl -fsSL https://peria.ai/install.sh | bash -s -- --extras
Dit installeert:
| Tool | Doel |
|---|---|
| RTK | Toolkit voor herschrijven van commando’s |
| lean-ctx | Contextcompressie voor CLAUDE.md en promptbestanden |
| nushell | Gestructureerde shell voor geavanceerde pipelines |
| cocoindex-code | Code-indexering voor snellere contextresolutie |
Windows (PowerShell)
irm https://peria.ai/install.ps1 | iex
Vervolgens initialiseren:
precc init
Handmatige installatie
- Download de release-binary voor uw platform van GitHub Releases.
- Verifieer de SHA256-checksum tegen het
.sha256-bestand in de release. - Plaats de binary in een map op uw
PATH(bijv.~/.local/bin/). - Voer
precc inituit.
Bijwerken
precc update
Forceer een update naar een specifieke versie:
precc update --force --version 0.3.0
Automatische updates inschakelen:
precc update --auto
Installeren onder OpenClaw / ClawHub
PRECC bevat een plugin-manifest in plugins/openclaw/openclaw.plugin.json (id precc-token-saver). Wanneer er een openbare release wordt gepubliceerd, pusht de GitHub Actions-workflow clawhub-publish.yml de skill-bundel naar het ClawHub-register, zodat eindgebruikers PRECC via de ClawHub-CLI kunnen installeren in plaats van via de curl-installer:
# ClawHub CLI
clawhub install precc
# Or pin the plugin manifest (id: precc-token-saver) via OpenClaw's
# plugin marketplace UI or its CLI equivalent.
Hoe besparingen verschijnen onder OpenClaw
Elk PRECC-rapportage-oppervlak dat onder Claude Code werkt, werkt ook onder OpenClaw — precc savings, precc savings --all, de gelokaliseerde statusregel (stel PRECC_LANG=zh in en de regel verschijnt in uw taal) en het lokale audit-log voor herschrijvingen lezen allemaal uit dezelfde SQLCipher-databases op uw machine. Een aparte specificatie in docs/symposium-plan/openclaw-savings-reporting.md beschrijft een toekomstig gestructureerd preccSavings-veld in elke hook-respons plus een melding van één regel aan het einde van de sessie bij een standaarddrempel van $0.05; dat onderdeel is nog niet uitgeleverd.
Installatie verifiëren
$ precc --version
precc 0.3.0
$ precc savings
Session savings: 0 tokens (no commands intercepted yet)
Als precc niet wordt gevonden, zorg ervoor dat ~/.local/bin op uw PATH staat.