Skip to content
ย 
ย 

Latest commit

ย 

History

137 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš–๏ธ DISCLAIMER

๐Ÿ’š ScalyClaw is a passion project โ€” open source from day one, open source forever.

๐Ÿšซ No crypto token ยท No paid tier ยท No official channels outside this repo

๐Ÿ“ฌ The only way to reach us is through GitHub โ€” issues, discussions, PRs

๐Ÿค We will never ask for money or personal data โ€” only contributions to make this better

โš ๏ธ This is sudo for AI. ScalyClaw executes code, manages secrets, and operates autonomously. Use it carefully, review what you deploy, and never run it in an environment you don't control.


ScalyClaw

ScalyClaw

The AI That Scales With You.

One mind ยท All channels ยท Continuous relationship.

MIT License Bun PRs Welcome


๐Ÿง  What is ScalyClaw?

ScalyClaw is a self-hosted AI assistant platform that connects to all your messaging channels with a single shared mind. It remembers everything, runs code, delegates to agents, and scales horizontally โ€” all under your control.


๐Ÿ—๏ธ Architecture

Architecture

Process Role Scalable
๐Ÿง  Node Orchestrator โ€” channels, LLM loop, guards, memory, agents, scheduling Singleton
โšก Worker Execution โ€” code, commands, skills via BullMQ Horizontally
๐Ÿ“Š Dashboard Web UI โ€” monitoring, config, chat โ€”

Workers are independently deployable. They share nothing with the node except Redis โ€” no shared filesystem required.


๐Ÿ“Š Dashboard

Overview Mind Usage
Overview Mind Usage
Channels Models Agents
Channels Models Agents
Skills Memory Vault
Skills Memory Vault
MCP Scheduler Engagement
MCP Scheduler Engagement
Security Logs Workers
Security Logs Workers
Jobs
Jobs

โœจ Highlights

Feature Description
๐Ÿ’ฌ 7 Channels Discord, Telegram, Slack, WhatsApp, Signal, Teams, Web Gateway โ€” one memory across all
๐Ÿง  Persistent Memory Hybrid vector + full-text search (sqlite-vec + FTS5). Auto-extracted from conversations
๐Ÿค– Autonomous Agents Sub-workers with their own prompts, models, and skills. Delegate and let them run
๐Ÿ”ง Extensible Skills JavaScript, Python, Rust, Bash. Hot-reload, auto-deps, zip deployment
๐Ÿ›ก๏ธ Multi-Layer Security Echo guard, content guard, command shield, code guard. Every layer fails closed
โšก Scalable Workers Deploy anywhere โ€” same machine or remote. They only need Redis
๐Ÿ”Œ MCP Integration Connect any Model Context Protocol server. Tools are auto-discovered
๐Ÿ’ฐ Budget Control Monthly/daily limits, per-model tracking, configurable alerts
๐Ÿ“Š Dashboard Real-time monitoring, personality editor, chat overlay, job inspector
๐Ÿ”„ Zero-Downtime Reload Skills, agents, config, MCP servers โ€” all reload live via Redis pub/sub

๐Ÿš€ Quick Start

One-Line Install

Everything โ€” Bun, Redis, node, 3 workers, dashboard โ€” installed and running in one command:

curl -fsSL https://scalyclaw.com/install.sh | sh

Manage your installation:

~/.scalyclaw/scalyclaw.sh --stop       # stop all
~/.scalyclaw/scalyclaw.sh --start      # start all
~/.scalyclaw/scalyclaw.sh --update     # pull latest & rebuild
~/.scalyclaw/scalyclaw.sh --status     # show status
~/.scalyclaw/scalyclaw.sh --uninstall  # remove everything

Remote access via SSH tunnel (replace user@<server_ip>):

# Dashboard (port 4173)
ssh -N -L 4173:127.0.0.1:4173 user@<server_ip>

Then open http://localhost:4173?token=<token> for the dashboard.

From Source

Prerequisites: Bun + Redis โ‰ฅ 6.2

# ๐Ÿ“ฆ Clone & build
git clone https://github.com/scalyclaw/scalyclaw.git && cd scalyclaw
bun install && bun run build

# โš™๏ธ Setup & run
bun run scalyclaw:node setup
bun run scalyclaw:node start

# ๐Ÿ‘ท Worker (separate terminal)
bun run scalyclaw:worker setup --name worker1
bun run scalyclaw:worker start --name worker1

# ๐Ÿ“Š Dashboard (separate terminal)
bun run scalyclaw:dashboard start

๐Ÿ”ง Skills

Skills are executable tools the AI can invoke. Each skill is a folder with a SKILL.md manifest and a script.

skills/
  weather/
    SKILL.md       # manifest (name, description, language, script)
    main.py        # entry point
  deploy/
    SKILL.md
    main.js

SKILL.md example:

---
name: Weather
description: Get current weather for a city
script: main.py
language: python
---
Optional instructions for the AI on when and how to use this skill.
Language Runtime
๐ŸŸจ JavaScript bun run
๐Ÿ Python uv run
๐Ÿฆ€ Rust cargo run --release
๐Ÿš Bash bash

Dependencies auto-install on first run. Skills hot-reload via pub/sub. Deploy as zip archives.


๐Ÿค– Agents

Agents are autonomous sub-workers with their own prompt, model, and skill set. The AI can delegate tasks to agents when specialized behavior is needed.

Each agent has:

  • Prompt โ€” custom instructions defining its role
  • Model โ€” can use a different LLM than the main orchestrator
  • Skills โ€” restricted set of skills the agent can access
  • Permissions โ€” what the agent is allowed to do

Agents are created and managed via the dashboard. When delegated a task, they run independently on the BullMQ agents queue.


๐Ÿง  Memory

ScalyClaw automatically extracts and stores memories from conversations. Memories persist across all channels โ€” what you say on Telegram is remembered on Discord.

  • Hybrid search โ€” vector similarity (sqlite-vec) + full-text search (FTS5)
  • Auto-extraction โ€” facts, preferences, and context are extracted without manual input
  • Types โ€” facts, preferences, events, relationships โ€” each with a confidence score
  • Management โ€” search, view, and delete memories from the dashboard

๐Ÿค– Models

ScalyClaw works with any OpenAI-compatible API โ€” OpenAI, Anthropic, local models via Ollama/LM Studio, or any provider with an OpenAI-compatible endpoint.

  • Multiple models โ€” configure different models for different tasks (chat, agents, guards, embeddings)
  • Priority + weight load balancing โ€” models are grouped by priority (lower = tried first). Within a priority group, requests are distributed via weighted-random selection based on each model's weight. If the entire group fails, the next priority group is tried automatically
  • Budget control โ€” global monthly/daily spending limits with soft or hard enforcement
  • Embedding models โ€” separate model config for memory vector search. Set embeddingModel to "auto" (default) to select from enabled embedding models using priority + weight

๐Ÿ”Œ MCP

Connect any Model Context Protocol server to extend ScalyClaw with external tools.

  • Transports โ€” stdio, HTTP, and SSE
  • Auto-discovery โ€” tools from connected MCP servers are automatically available to the AI
  • Dashboard setup โ€” add, remove, and configure MCP servers from the UI
  • Hot-reload โ€” connect new servers without restarting

๐Ÿ” Vault

Secrets are stored encrypted in Redis and injected as environment variables when skills run. They are never exposed in conversations, logs, or the dashboard.

  • Manage via the dashboard Vault page
  • Use in skills as $SECRET_NAME environment variables
  • Scoped โ€” secrets can be restricted to specific skills

๐Ÿ›ก๏ธ Security

Four independent guard layers โ€” every layer fails closed:

Guard Purpose
๐Ÿ” Echo Guard Detects if the AI is being tricked into repeating injected text
๐Ÿ›‘ Content Guard Blocks prompt injection, social engineering, and harmful content
๐Ÿ” Skill & Agent Guard Audits skill code and agent configs for malicious patterns
๐Ÿ›ก๏ธ Command Shield Blocks dangerous shell commands with deterministic pattern matching โ€” no LLM needed

All guards are configurable from the dashboard.


๐Ÿ’ป CLI

scalyclaw node      <setup|start|stop|restart|status|background>
scalyclaw worker    <setup|start|stop|restart|status|background>
scalyclaw dashboard <setup|start|stop|restart|status|background>

Workers are named instances (--name worker1). Run as many as you need.


๐Ÿ› ๏ธ Tech Stack

โšก Runtime Bun
๐Ÿ“ฎ Queue BullMQ + Redis
๐Ÿ’พ Database SQLite + sqlite-vec + FTS5
๐Ÿค– LLM OpenAI-compatible API
๐Ÿ’ฌ Channels Telegraf, discord.js, @slack/bolt, botbuilder, WhatsApp Cloud API, Signal REST API
๐Ÿ”Œ MCP @modelcontextprotocol/sdk
๐ŸŒ HTTP Fastify
๐Ÿ“Š Dashboard React 19, Vite 6, Tailwind CSS 4, shadcn/ui
๐Ÿ’ป CLI Commander + @clack/prompts

๐Ÿ“ Project Structure

Path Description
๐Ÿง  scalyclaw/src/ Core โ€” orchestrator, channels, guards, memory, agents, skills, tools, MCP
๐Ÿ“ฆ shared/src/ Shared โ€” queues, logger, session, skill loader, types used by node and worker
โšก worker/src/ Worker โ€” command/code/skill execution, skill cache, dependency management
๐Ÿ’ป cli/src/ CLI โ€” setup wizards, process management
๐Ÿ“Š dashboard/src/ Dashboard โ€” React SPA with real-time monitoring and config management
๐ŸŽญ mind/ Personality โ€” IDENTITY.md, SOUL.md, USER.md

๐Ÿค Contributing

Contributions are welcome! Whether it's a bug fix, new feature, channel adapter, or skill โ€” we'd love your help.

  1. ๐Ÿด Fork the repo
  2. ๐ŸŒฟ Create your branch (git checkout -b feat/my-feature)
  3. โœ… Commit your changes
  4. ๐Ÿš€ Push and open a Pull Request

Please keep PRs focused and include a clear description of what changed and why.


๐Ÿ“„ License

MIT โ€” use it, modify it, ship it.

About

The AI That Scales With You.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages