# ClawLite

> Open source AI assistant for Linux with gateway, skills, and multi-agent capabilities.

- **Type:** MCP server
- **Install:** `agentstack add mcp-eobarretooo-clawlite`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [eobarretooo](https://agentstack.voostack.com/s/eobarretooo)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [eobarretooo](https://github.com/eobarretooo)
- **Source:** https://github.com/eobarretooo/ClawLite

## Install

```sh
agentstack add mcp-eobarretooo-clawlite
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 🦊 ClawLite

*A local-first autonomous AI agent — persistent memory, 20+ LLM providers, real chat channels, and a 24/7 self-healing runtime.*

[](https://github.com/eobarretooo/ClawLite/actions/workflows/ci.yml)
[](https://github.com/eobarretooo/ClawLite/releases/tag/v0.7.0-beta.0)
[](https://github.com/eobarretooo/ClawLite/stargazers)
[](https://www.python.org/)
[](LICENSE)

[Quickstart](#-quickstart) · [Features](#-features) · [Channels](#-channels) · [Providers](#-providers) · [Docs](#-docs) · [Contributing](#-contributing)

> **Built by AI · Maintained by one person.** Every line of code, every test, every commit was written by an AI agent — the human author supervises, reviews goals, and guides direction.

---

## ⚡ Why ClawLite?

- **Truly local-first** — runs entirely on your machine; no cloud required
- **Real channel adapters** — Telegram, Discord, Email, WhatsApp, Slack, IRC
- **Persistent memory** — hybrid BM25 + vector search, temporal decay, consolidation loop
- **Self-healing runtime** — heartbeat supervisor, dead-letter replay, automatic provider failover
- **Batteries included** — 25+ skills, streaming responses, operator dashboard

---

## 🏁 Quickstart

```bash
# Clone and install
git clone https://github.com/eobarretooo/ClawLite.git
cd ClawLite
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[browser,telegram,media,runtime]"

# Configure interactively
clawlite configure

# Start the gateway + dashboard
clawlite gateway
```

Open **http://127.0.0.1:8787** for the live dashboard.

```bash
# Or talk directly from the terminal
clawlite run "hello — what can you do?"
```

**Docker:**
```bash
bash scripts/docker_setup.sh
```

**Android / Termux:** see [`docs/TERMUX_PROOT_UBUNTU.md`](docs/TERMUX_PROOT_UBUNTU.md)

---

## ✨ Features

| Area | What you get |
|---|---|
| 🧠 **Memory** | BM25 + vector search · FTS5 · temporal decay · episodic→knowledge consolidation · SQLite or pgvector |
| 🔁 **Runtime** | Heartbeat supervisor · cron engine · dead-letter replay · background job queue · loop detection · subagent orchestration |
| 🌊 **Streaming** | `stream_run()` async generator · `ProviderChunk` delta/done · edit-in-place on Telegram and Discord |
| 🖥️ **Dashboard** | Live chat · sessions · cron controls · memory health · tools catalog + approval review queue/actions — `http://127.0.0.1:8787` |
| 🧰 **Tools** | `files` `exec` `web` `browser` `memory` `sessions` `spawn` `cron` `mcp` `pdf` `tts` and more |
| 🎯 **Skills (25+)** | `web-search` `coding-agent` `github` `docker` `notion` `spotify` `obsidian` `weather` `tmux` and more |

---

## 💬 Channels

| Channel | Status |
|---|---|
| **Telegram** | ✅ Complete — polling + webhook, streaming, reactions, topics, keyboards |
| **Discord** | 🟡 Usable — gateway WS, slash commands, buttons/selects/modals, voice transcription, streaming |
| **Email** | 🟡 Usable — IMAP inbound + SMTP outbound |
| **WhatsApp** | 🟡 Usable — webhook inbound, outbound retry |
| **Slack** | 🟡 Usable — Socket Mode, working indicator |
| **IRC** | 🟡 Minimal — asyncio transport, PING/PONG |

---

## 🤖 Providers

Powered by **LiteLLM** — swap models without changing code.

**OpenAI-compatible:** OpenAI · Azure OpenAI · Gemini · Groq · DeepSeek · OpenRouter · SiliconFlow · Cerebras · Mistral · Moonshot · xAI · `custom/`

**Anthropic-compatible:** Anthropic · MiniMax · Kimi

**Local:** Ollama · vLLM

**OAuth (free-tier):** `gemini-oauth` · `qwen-oauth` · `openai-codex`

```bash
clawlite provider login gemini-oauth   # authenticate
clawlite provider status gemini-oauth  # check status
```

The packaged dashboard Automation tab now also exposes `Inspect provider cache`, which reuses the same cached `last_live_probe` / `last_capability_probe` surface through the live gateway control plane. The Delivery tab now also renders a compact `Channel posture` card sourced from additive `channels.posture` data in `GET /api/dashboard/state`, so queue pressure, dispatcher trouble, recovery trouble, and dead-letter backlog are visible without reading the raw delivery/recovery JSON blocks. The Knowledge tab now also surfaces managed-marketplace blocker drill-down for the visible slice, so missing env/config/bin/policy blockers are visible without scanning each managed skill row manually.

Full auth details → [`docs/providers.md`](docs/providers.md)

---

## 🏛️ Architecture

```text
User Message
    -> Channel Adapter (Telegram / Discord / CLI / ...)
    -> FastAPI Gateway :8787
    -> Agent Engine (memory + tools + LLM stream)
    -> Response streamed back + memory updated
```

---

## 🛠️ Development

```bash
pip install -e ".[all]"
python -m pytest tests/ -q --tb=short   # full suite (2113 passed, 1 skipped)
python -m ruff check --select=E,F,W .   # lint
```

CI runs on Python 3.10 and 3.12.

The packaged dashboard Automation tab now also exposes compact `Runtime Posture`, `Runtime Policy`, `Provider Health`, and `Provider Budget` cards, surfacing additive `runtime.posture`, `runtime.policy`, `provider.health`, and `provider.budget` signals from `GET /api/dashboard/state` so operators can quickly see autonomy, wake, approval, canary scope, config-versus-runtime policy drift, provider suppression/cache drift, and whether the current provider issue is quota, rate limiting, or a non-budget block without opening full diagnostics. The Delivery tab now also adds a compact `Channel posture` card sourced from additive `channels.posture`, so queue pressure, dispatcher trouble, recovery trouble, and dead-letter backlog are visible without mentally recombining the raw channel-manager diagnostics blocks. The Knowledge tab now also adds `Managed blockers` and `Managed remediation` cards on top of the existing managed marketplace inventory so skill blockers are grouped by kind and each visible blocker slice exposes the next safe remediation path instead of staying as row-by-row hints only, and the Memory card now also carries additive `memory.remediation` guidance so the next safe memory action is visible next to doctor/overview/quality instead of being inferred from raw counters alone. The Tools tab now also surfaces latest approval-audit reason, bounded request-scoped reason history, and a compact retention summary so operators can tell when the in-memory audit slice is truncated before exporting or handing it off.
When a user explicitly asks in chat, ClawLite can now also use the internal `gateway_admin` tool to inspect the active config or apply a bounded config patch, schedule a self-restart, and post a confirmation back to the same Telegram chat/topic after the gateway comes back up. That admin path is now schema-aware as well: it can discover the supported safe presets through `config_intent_catalog`, look up snake_case config paths before editing, dry-run safe presets through `config_intent_preview`, preview bounded raw patches through `config_patch_preview`, and then apply the chosen change through the guarded restart path. Those preview paths now also return a `preview_token` tied to the resolved patch, note, and current target config base, so a later `config_intent_and_restart` or `config_patch_and_restart` can fail closed if the operator is about to apply a stale preview after the config changed underneath it. Raw config patches stay fail-closed to a small allowlist of safe tool-tuning fields, and common low-risk changes can go through `config_intent_and_restart` presets such as gateway-heartbeat tuning, default tool timeout, per-tool timeout, workspace restriction, loop-detection tuning, and bounded `tools.web.*` intents for timeouts, content budget, private-address blocking, or combined fetch-limit updates instead of hand-built patch payloads. Heartbeat interval edits now also keep the legacy `scheduler.heartbeat_interval_seconds` field in sync, so older configs do not silently override the new `gateway.heartbeat.interval_s` value on restart. It stays blocked in background/internal sessions and keeps the restart notice persisted when post-boot delivery fails, so the confirmation is not silently lost on the first transient channel error.

---

## 🖥️ CLI Reference

```bash
clawlite configure              # interactive setup wizard; reuses local runtimes, suggests the detected provider when clear, reuses detected credentials, skips redundant env-backed key prompts, surfaces plausible backends when setup is ambiguous, and lets quickstart skip redundant local-runtime/model prompts on the resolved happy path
clawlite --profile prod configure  # save setup changes to config.prod.json
clawlite --profile prod dashboard --no-open  # reopen the control plane against config.prod.json
clawlite gateway                # start HTTP/WS gateway
clawlite run "..."              # one-shot agent call
clawlite status                 # runtime health summary
clawlite diagnostics            # full diagnostic snapshot
clawlite generate-self          # generate runtime SELF.md (+ optional extra outputs)
clawlite restart-gateway        # schedule a live gateway restart through the control plane

clawlite skills list            # list available skills
clawlite skills doctor          # diagnose broken skills
clawlite skills validate        # refresh + diagnose live skills state
clawlite skills install   # install from marketplace

clawlite tools approvals        # list pending tool approvals
clawlite tools approval-audit   # inspect recent approval/grant audit rows
clawlite tools approval-audit --request-id req-1   # drill down one reviewed request/grant
clawlite tools approval-audit --format ndjson > audit.ndjson   # export bounded audit rows
clawlite tools approve      # approve a tool call
clawlite tools reject       # reject a tool call
```

Full CLI reference → [`docs/OPERATIONS.md`](docs/OPERATIONS.md)

---

## 📚 Docs

| Doc | Contents |
|---|---|
| [`docs/QUICKSTART.md`](docs/QUICKSTART.md) | Detailed setup walkthrough |
| [`docs/DOCKER.md`](docs/DOCKER.md) | Container build + compose |
| [`docs/TERMUX_PROOT_UBUNTU.md`](docs/TERMUX_PROOT_UBUNTU.md) | Android / Termux setup |
| [`docs/API.md`](docs/API.md) | Gateway HTTP + WebSocket API |
| [`docs/OPERATIONS.md`](docs/OPERATIONS.md) | CLI and operational commands |
| [`docs/providers.md`](docs/providers.md) | Provider catalog and auth |
| [`docs/channels.md`](docs/channels.md) | Channel behavior and caveats |
| [`docs/STATUS.md`](docs/STATUS.md) | Engineering snapshot and changelog |
| [`CHANGELOG.md`](CHANGELOG.md) | Release history |

---

## 🤝 Contributing

1. Fork the repo and create a feature branch
2. Follow the existing code style (ruff, typed Python 3.10+)
3. Add tests for new functionality
4. Open a PR with a clear description

See [`CONTRIBUTING.md`](CONTRIBUTING.md) for full guidelines. Join the [Discord](https://discord.gg/F4wQvdv9fR) for discussion.

---

## 📄 License

MIT — see [`LICENSE`](LICENSE).

---

Built for developers who want their AI assistant to run on their own terms.

**[⭐ Star on GitHub](https://github.com/eobarretooo/ClawLite)** · **[🐛 Report a Bug](https://github.com/eobarretooo/ClawLite/issues)** · **[💡 Request a Feature](https://github.com/eobarretooo/ClawLite/issues)**

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [eobarretooo](https://github.com/eobarretooo)
- **Source:** [eobarretooo/ClawLite](https://github.com/eobarretooo/ClawLite)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-eobarretooo-clawlite
- Seller: https://agentstack.voostack.com/s/eobarretooo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
