ShibaClaw

mcp
SUMMARY

🐾 A loyal, self-hosted AI assistant framework. Multi-channel (Telegram, Discord, Slack…), parallel agents, MCP support, WebUI with OAuth, and hardened against prompt injection. Docker-ready in one command.

README.md

...

Smart. Loyal. Powerful. πŸ•

version python license

ShibaClaw is a loyal, intelligent, and lightweight personal AI assistant framework. Built to serve and protect your digital workspace.


πŸ“’ News

[!IMPORTANT]
v0.0.6b is out! Massive core modernization: complete removal of litellm dependency for faster and strictly-controlled native LLM API integration.
Includes heavily requested WebUI and Gateway stability improvements!

  • 2026-03-29 πŸ›‘οΈ Security Hardening β€” Enhanced Indirect Prompt Injection protection via Randomized Tool Output Wrapping (using dynamic nonces per-session) to prevent instructions from untrusted data hijacking the agent.
  • 2026-03-29 🐾 LiteLLM Dependency Removed β€” Architecture modernized to utilize native SDKs (openai, anthropic), dramatically reducing docker image sizes, startup times, and opaque dependency risks.
  • 2026-03-29 πŸ” GitHub Copilot OAuth rewritten using raw asynchronous device flow for highly stable background token refresh without proxy dependencies.
  • 2026-03-29 πŸ’¬ Session UI Refactor β€” Removed nested channels grouping. Conversations are now displayed in a sleek chronological feed with a "Show more" history pane.
  • 2026-03-29 🎨 UI/UX Polish β€” Native browser popups (alert, confirm, prompt) entirely replaced with custom CSS modal dialogs (shibaDialog).
  • 2026-03-29 πŸ›‘οΈ WebUI Settings Fix β€” Solved a critical bug causing Config _deep_merge to overwrite legitimate API keys with **** redacted strings under the hood.
  • 2026-03-29 πŸ” Gateway restart hardening β€” blocked unauthorized /restart via health endpoint and enforced token-based auth for web UI/gateway restart.
  • 2026-03-29 πŸ›‘οΈ Shell tool security β€” expanded ExecTool.deny_patterns to include $(), backticks, shell pipes, package managers install/remove/purge, curl/wget piped shell, and <()> process substitution.
  • 2026-03-29 ⚑ WebSockets & Gateway Stability β€” Annihilated "Scrollbar Jittering" and implemented a cache-busting Gateway health polling mechanism
  • 2026-03-26 🧠 Dynamic System Prompt β€” runtime context (timestamp, channel, iteration) refreshed on every LLM call for a more "alive" agent
  • 2026-03-26 🐾 SOUL.md template refined β€” clean formatting and richer personality definition
  • 2026-03-24 πŸ–₯️ WebUI token authentication (Jupyter-style) β€” secure access with auto-generated tokens
  • 2026-03-24 πŸ” OAuth login from UI β€” authenticate GitHub Copilot & OpenAI Codex directly from Settings
  • 2026-03-24 πŸ’¬ Chat history rendering fixes and wider message layout
  • 2026-03-22 🧩 Settings modal with tabs β€” Agent, Provider, Tools, Gateway, Channels, OAuth
  • 2026-03-21 ⚑ Real-time WebUI β€” Socket.IO streaming, process groups, typing indicator
  • 2026-03-20 🐾 Interactive onboard wizard β€” pick your provider, model autocomplete, and go
  • 2026-03-19 πŸ›‘οΈ Indirect Prompt Injection protection via Tool Output Wrapping

🐾 Key Features

  • Fast & Faithful: Minimal startup time and dependencies.
  • Multi-channel: Support for Telegram, Discord, Slack, WhatsApp, and more.
  • Always Alert: Built-in cron and heartbeat task scheduler.
  • 🧩 Skills Registry: Modular and extensible skill system with native ClawhHub marketplace support
  • ⚑ Parallel Multi-Agent Execution: A built-in fan-out orchestration model that spawns and coordinates specialized sub-agents concurrently for faster, scalable task resolution
  • Advanced Thinking: Support for OpenAI, Azure, LiteLLM, and deep-reasoning thinkers.
  • πŸ›‘οΈ Built-in Security: Protected against Indirect Prompt Injection via Structural Randomized Wrapping and strict per-session security policies.

πŸ”’ Loyal Only to You

Like the most devoted guard dog, ShibaClaw is trained to obey only its master. Thanks to its advanced Tool Output Wrapping system, the framework is hardened against Indirect Prompt Injection attacks. It treats external data from websites, files, or tools as literal informationβ€”never as new instructions. Your orders are final; to ShibaClaw, external noise is just a squirrel 🐿️.

🐾 Quick Start

Ready to hunt? Choose your path:

πŸ‹ Docker (Recommended)

docker compose up -d --build                                  # gateway + webUI
docker exec -it shibaclaw-gateway shibaclaw onboard --wizard  # first-time setup

Open http://localhost:3000 β€” to get your access token, run shibaclaw print-token and paste it in the login screen or use the direct URL with the token appended.

🐍 Bare Metal

pip install .
shibaclaw onboard --wizard       # first-time setup
shibaclaw web --port 3000        # start the WebUI (agent runs in-process)

See the full Easy Deploy Guide for detailed instructions and troubleshooting.

πŸ–₯️ WebUI

WebUI Welcome ScreenΒ Β  WebUI Chat with Agent

Features at a Glance

  • πŸ” Token authentication β€” auto-generated access token printed at startup (disable with SHIBACLAW_AUTH=false)
  • Multi-session chat β€” create, rename, archive, and switch between conversations
  • Live process groups β€” watch agent reasoning and tool calls stream in with elapsed time
  • Settings modal β€” configure model, provider, API keys, tools, gateway, channels, and OAuth providers
  • OAuth login from UI β€” authenticate GitHub Copilot and OpenAI Codex directly from the Settings panel
  • Context viewer β€” inspect workspace context and token usage
  • Gateway monitor β€” health check and one-click restart of the core AI engine
  • Typing indicator β€” animated feedback while the agent is working
  • Responsive β€” works on desktop and mobile

Settings β€” OAuth Providers

Architecture

Layer Stack
Server Uvicorn β†’ Starlette (ASGI) + python-socketio
Real-time Socket.IO 4.7.5 (WebSocket, polling fallback)
Frontend Vanilla JS Β· Marked.js Β· Highlight.js (github-dark)
Container Command Port Role
shibaclaw-gateway shibaclaw gateway 19999 Core AI loop + message bus
shibaclaw-web shibaclaw web --port 3000 3000 WebUI (Starlette + Socket.IO)

Both containers share the .shibaclaw/ volume for config, workspace, tools, and cache.

πŸ“ Bare metal: The WebUI works fully without Docker β€” the agent runs in-process. The only unavailable feature is the gateway health monitor, which requires the separate gateway container.

🧩 Supported Providers

ShibaClaw includes a unified provider registry and supports a wide range of LLM backends.

πŸ”‘ API key-based providers

  • OpenAI (OPENAI_API_KEY)
  • Anthropic (ANTHROPIC_API_KEY)
  • DeepSeek (DEEPSEEK_API_KEY)
  • Gemini (GEMINI_API_KEY)
  • Zhipu AI (ZAI_API_KEY, ZHIPUAI_API_KEY)
  • DashScope (DASHSCOPE_API_KEY)
  • Moonshot (MOONSHOT_API_KEY, MOONSHOT_API_BASE)
  • MiniMax (MINIMAX_API_KEY)
  • Groq (GROQ_API_KEY)

πŸ”— Gateway providers (auto-detected by key prefix / api_base)

  • OpenRouter (OPENROUTER_API_KEY, auto key prefix sk-or-, base openrouter)
  • AiHubMix (OPENAI_API_KEY, base aihubmix)
  • SiliconFlow (OPENAI_API_KEY, base siliconflow)
  • VolcEngine / BytePlus / Coding Plans (OPENAI_API_KEY + URL matching)

🏠 Local providers

  • vLLM / generic OpenAI-compatible local server (HOSTED_VLLM_API_KEY, api_base config)
  • Ollama (OLLAMA_API_KEY, http://localhost:11434 default)

πŸ” OAuth providers

  • OpenAI Codex (OAuth, openai-codex)
  • GitHub Copilot (OAuth, github-copilot)

OAuth providers require a one-time login. Use the Settings β†’ OAuth Provider tab in the WebUI to check status and authenticate directly from the browser. The GitHub Copilot flow uses device codes; OpenAI Codex opens a browser-based PKCE flow.

CLI fallback:

shibaclaw provider login openai-codex   # oauth-cli-kit device flow
shibaclaw provider login github-copilot # litellm device flow

Requirements: pip install oauth-cli-kit (Codex) Β· pip install litellm (Copilot)

Useful commands

  • shibaclaw status onboard --wizard
  • shibaclaw status (check provider status and OAuth flags)
  • shibaclaw agent -m "Hello"

Status:

  • shibaclaw status will show βœ“ (OAuth) for authenticated OAuth providers.

βœ… Check Status & Troubleshooting

  • shibaclaw status reports workspace, config path, and provider status.
  • docker logs shibaclaw-gateway / docker logs shibaclaw-agent for container logs.
  • Refer to shibaclaw/thinkers/registry.py for provider list and prefixing behavior.

πŸ—οΈ Project Structure

  • shibaclaw/ - core implementation
    • webui/ - web interface (server.py + static assets)
    • agent/ - AI agent loop and brain
    • thinkers/ - LLM provider registry
    • cli/ - CLI commands
  • bridge/ - WhatsApp connectivity module
  • tests/ - verification and tests
  • assets/ - project branding and visuals

Credits & Acknowledgements

This project was inspired by Nanobot❀️(https://github.com/HKUDS/nanobot)
by HKUDS, released under the MIT License.

Reviews (0)

No results found