Trunkate AI Skill
Precision token optimization for OpenClaw agents. Automatically prune, compress, and optimize text context without losing meaning.
Installation
Ensure you have the OpenClaw system installed, then add the Trunkate package:
- Sign up for a free account at trunkate.ai and generate an API key.
- Install the skill and configure your token:
# Install the Trunkate AI skill
clawhub install https://github.com/Trunkate-AI/trunkate-ai-skills
# Persistently set the API key for your agent
echo 'TRUNKATE_API_KEY="tk_live_..."' >> ~/.openclaw/.env
Quick Commands
Once installed and authenticated, your agent can natively use Trunkate to optimize its thoughts before executing tasks:
# Let your agent optimize before executing a task
openclaw "Optimize 'Your very long context...' for the task of 'Summarize this document' with a 500 token budget for model gpt-4o."
Note: The OpenClaw plugin natively hooks into the official Trunkate Python backend and passes the necessary arguments exactly like the standard CLI.