clacky-ai/openclacky

The Most Token-Efficient Lightweight AI Agent

OpenClacky – A Token‑efficient Open‑Source AI Agent

What it is

  • An open‑source AI‑agent platform (MIT‑licensed) that lets you run conversational assistants powered by any OpenAI‑compatible model (Claude, GPT, DeepSeek, etc.).
  • Claims to match the capability of Anthropic’s Claude Code while using roughly 80 % of the tokens, thanks to aggressive caching, a minimal core‑tool set, and background context compression.

Key selling points

Feature OpenClacky Typical alternatives
Token cost ~0.8× the baseline (Claude Code) OpenClaw ~1.5×, Hermes ~3×
Open source MIT license, fully visible code Claude Code is closed‑source
Model freedom (BYOK) Plug‑in any OpenAI‑compatible endpoint Anthropic‑only for Claude Code
Skill self‑evolution Skills can be created in natural language and automatically refined after each run Not available in most competitors
Integrations Built‑in IM connectors (Feishu, WeCom, WeChat, Discord, Telegram) and a web UI Varies

How it saves tokens

  1. Near‑100 % cache hit rate – the system prompt never mutates, allowing the LLM cache to be reused across turns.
  2. Only 16 core tools – extra capabilities are delegated to a meta‑tool invoke_skill, keeping the tool‑dispatch overhead low.
  3. Idle‑time auto‑compression – long contexts are compressed in the background, halving cold‑start token cost.
  4. User‑chosen model – you can route sub‑tasks to cheaper models (e.g., DeepSeek) when appropriate.

Skills – the extensible “apps” of the agent

  • Invoke with / for instant browsing, fuzzy search, or custom calls.
  • Create a new skill by describing it in plain English; the agent drafts a SKILL.md, validates it, and can run it without you writing code.
  • After each execution the skill is automatically updated based on the observed outcome, making it more reliable over time.
  • Skills are compatible with Claude’s skill format and can be packaged, encrypted, and sold through the built‑in Creator Program.

Installation options

Method Platform Steps
Desktop installer (recommended) macOS, Windows Download the .dmg or .exe from the official site; double‑click to install all dependencies and default skills.
One‑line script macOS, Ubuntu bash <(curl -sSL https://raw.githubusercontent.com/clacky-ai/openclacky/main/scripts/install.sh) (or PowerShell equivalent on Windows).
Ruby gem Any system with Ruby ≥ 3.1 gem install openclacky
Docker Linux/macOS/Windows Pull ghcr.io/<owner>/openclacky:latest and run with the provided docker run commands (host networking needed for Chrome automation on Linux).
From source All git clone … && bundle install && bin/clacky

Running the agent

  • CLI: openclacky starts an interactive terminal session in the current directory.
  • Web UI: openclacky server launches a local web interface at http://localhost:7070 (customizable port/host via flags). The UI supports multi‑session chats, manual vs. auto tool approval, and permission settings.
  • Configuration: openclacky > /config (or edit ~/.clacky/config.yml) to set your API key, model, and base URL. Supported providers out‑of‑the‑box include Claude, OpenAI GPT, DeepSeek, Kimi, MiniMax, OpenRouter, plus any custom endpoint.

Typical workflow (coding example)

$ openclacky
> /new my-app          # scaffold a new project
> Add user auth with email and password
> How does the payment module work?

The agent will invoke the appropriate skill, run code generation or research, and present results directly in the terminal or web UI.

Advanced features

  • Cgroup sandboxing for Linux hosts to enforce memory/CPU limits on spawned shells and browser automation.
  • Creator Program: package refined skills, encrypt them, manage licenses, and set pricing – aimed at vertical domains like legal, healthcare, or finance.
  • Auto‑approve mode: tools run without manual confirmation after a configurable timeout (default 20 s).

Community & credibility

  • Backed by venture investors (MiraclePlus, ZhenFund, Sequoia China, Hillhouse Capital).
  • Active contributors (see GitHub contributors graph).
  • Published on RubyGems and Docker Hub; download stats and star history are publicly displayed.

License: MIT – you can freely modify, redistribute, or embed the code in commercial products.


Bottom line: OpenClacky is a full‑stack, open‑source AI‑agent framework that emphasizes low token usage, model flexibility, and an extensible “skill” ecosystem. It is suitable for developers who want a self‑hosted assistant that can be customized, monetized, and integrated into existing workflows without being locked into a single provider.

Related

  • Project
  • Project
  • Project
  • Project
  • Project