ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

oktk

LLM Token Optimizer - Reduce AI API costs by 60-90%. Compresses CLI outputs (git, docker, kubectl) before sending to GPT-4/Claude. AI auto-learning included. By Buba Draugelis ๐Ÿ‡ฑ๐Ÿ‡น

skill-install โ€” Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/satnamra/oktk
Or

oktk - CLI Output Compressor for LLMs

The Problem

When you run commands through an AI assistant, the full output goes into the LLM context:

$ git status
# Returns 60+ lines, ~800 tokens
# Your AI reads ALL of it, you pay for ALL of it

Every token costs money. Verbose outputs waste your context window.

The Solution

oktk sits between your commands and the LLM, compressing outputs intelligently:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Command  โ”‚ โ”€โ”€โ–บ โ”‚   oktk   โ”‚ โ”€โ”€โ–บ โ”‚   LLM    โ”‚
โ”‚ (800 tk) โ”‚     โ”‚ compress โ”‚     โ”‚ (80 tk)  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ”‚
                 90% SAVED

When Does It Work?

Automatically when you run supported commands through OpenClaw:

CommandWhat oktk doesSavings
git statusShows only: branch, ahead/behind, file counts90%
git logOne line per commit: hash + message + author85%
git diffSummary: X files, +Y/-Z lines, file list80%
npm testJust: โœ… passed or โŒ failed + count98%
ls -laGroups by type, shows sizes, skips details83%
curlStatus code + key headers + truncated body97%
grepMatch count + first N matches80%
docker psContainer list: name, image, status85%
docker logsLast N lines + error count90%
kubectl get podsPod status summary with counts85%
kubectl logsLast N lines + error/warning counts90%
Any commandAI learns patterns automatically (optional)~70%

Concrete Example

Before oktk (800 tokens sent to LLM):

On branch main
Your branch is ahead of 'origin/main' by 3 commits.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   src/components/Button.jsx
        modified:   src/components/Header.jsx
        modified:   src/utils/format.js
        modified:   src/utils/validate.js
        modified:   package.json
        modified:   package-lock.json

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        src/components/Footer.jsx
        src/components/Sidebar.jsx
        tests/Button.test.js

no changes added to commit (use "git add" and/or "git commit -a")

After oktk (80 tokens sent to LLM):

๐Ÿ“ main
โ†‘ Ahead 3 commits
โœ๏ธ  Modified: 6
โ“ Untracked: 3

Same information. 90% fewer tokens. Same cost savings.

How It Works Technically

  1. Intercepts command output after execution
  2. Detects command type (git? npm? ls?)
  3. Applies specialized filter for that command
  4. Extracts only essential information
  5. Caches results (same command = instant, no reprocessing)

Safety First

oktk never breaks your workflow:

Metadata

Author@satnamra
Stars1054
Views1
Updated2026-02-16
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build โ€” we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-satnamra-oktk": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#optimization#tokens#cost-savings#cli#filtering#llm
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

obsidian-cli

Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.

adolago 4473

sealvera

Tamper-evident audit trail for AI agent decisions. Use when logging LLM decisions, setting up AI compliance, auditing agents for EU AI Act, HIPAA, GDPR or SOC 2, or when a user asks about AI decision audit trails, explainability, or SealVera.

ahessami123 4473

mempalace-integration

MemPalace่ฎฐๅฟ†็ณป็ปŸ้›†ๆˆ - AAAKๅŽ‹็ผฉ + Hallๅˆ†็ฑป + L0-L3ๅˆ†ๅฑ‚ 30xๆ— ๆŸๅŽ‹็ผฉ(1000โ†’33 tokens)(1000โ†’33 tokens)(1000โ†’33 tokens)(1000โ†’33 tokens)(1000โ†’33 tokens)(1000โ†’33 tokens)๏ผŒfacts/events/preferences/adviceๅˆ†็ฑป๏ผŒๅŠ ่ฝฝไผ˜ๅ…ˆ็บง

0xcjl 4473

aethercore

AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.

aetherclawai 4473

zhihu-cli

็ŸฅไนŽ CLI (pyzhihu-cli)๏ผšๆœ็ดขใ€็ƒญๆฆœใ€้—ฎ้ข˜/ๅ›ž็ญ”ใ€ๅ‘ๆƒณๆณ•/ๆ้—ฎ/ๆ–‡็ซ ใ€ๅˆ ่‡ชๅทฑ็š„ๅ†…ๅฎนใ€็‚น่ตžๅ…ณๆณจใ€้€š็Ÿฅใ€‚Agent ไปฃๆ‰ง่กŒ zhihu ๅ‘ฝไปค๏ผŒCookie ไป…ๅญ˜ๆœฌๅœฐใ€‚

baiguangmei 4473