⚡ Dual-Audience Quick Start (v2.0.0 — Zero Friction)
Whether you want an everyday personal assistant with zero coding or a hardened Go 1.25+ agent runtime with SSRF & prompt-injection defense, start in 30 seconds:
🌟 For Everyday Users (Zero Coding)
Turn any laptop, $10 SBC, or old Android phone into your private assistant in English or Urdu (RTL):
- Install in 1 line:
- Linux / macOS / Termux:
curl -fsSL https://raw.githubusercontent.com/AbdullahMalik17/malikclaw/main/install.sh | bash
- Windows (PowerShell):
irm https://raw.githubusercontent.com/AbdullahMalik17/malikclaw/main/install.ps1 | iex
- Node.js (all platforms):
npm install -g malikclaw
- Run guided setup:
malikclaw onboard
- Automate daily life:
- 💬 WhatsApp & Telegram Assistant: Morning briefings, message summaries & Urdu/English reminders
- 📱 Android ADB Phone Automation: Take screenshots, open apps, tap & reply hands-free
- 🌐 Clean Web UI: Open
http://localhost:18790 — no terminal required after setup
|
🛠️ For Developers & Self-Hosters
Single static Go 1.25+ binary (~12–15 MB stripped), engineered for defense-in-depth and edge efficiency:
- 🛡️ SSRF Network Firewall (
pkg/security/ssrf.go): Blocks RFC1918, CGNAT, link-local, metadata & IPv4-mapped IPv6 bypasses on web/MCP calls
- 🔒 Prompt-Injection Structural Guard (
pkg/security/prompt_guard.go): Isolates untrusted tool outputs in escaped <untrusted_data> envelopes + 4-category scanning
- ⚡ SmartCostRouter (
pkg/routing/cost_router.go): Routes simple tasks to local Ollama / mini models and complex tasks to frontier models with 429/5xx fallback
- 🔌 Universal
SKILL.md + MCP Client (21 channels): Dynamic stdio/sse/http MCP client (pkg/mcp/manager.go) + progressive skill loading (pkg/skills/loader.go)
|
One-Command Install, Node.js & Non-Root Docker
Linux / macOS / Termux:
curl -fsSL https://raw.githubusercontent.com/AbdullahMalik17/malikclaw/main/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/AbdullahMalik17/malikclaw/main/install.ps1 | iex
Node.js (any platform with Node 18+):
npm install -g malikclaw
The npm package is a thin launcher that auto-installs the @malikclaw/cli-<os>-<cpu> package containing the native Go binary for your platform. Published alongside every GitHub release.
Docker (Non-Root alpine:3.23 Runtime):
docker run -d --name malikclaw -p 18790:18790 -v ~/.malikclaw:/home/malikclaw/.malikclaw ghcr.io/abdullahmalik17/malikclaw:latest
Configure & Launch:
# Run interactive onboarding setup (English / Urdu)
malikclaw onboard
# Execute a direct CLI prompt
malikclaw agent -m "Summarize the system specs of this machine and save it to specs.md"
# Start the web UI and omnichannel gateway (Dashboard on http://localhost:18790)
malikclaw gateway
🎬 Live Terminal Demo
Real-time demonstration of MalikClaw agent loop initializing in <0.8s, executing ReAct subtask planning, sandboxed tool execution, and updating Markdown memory on <10MB core RAM SLA.
⚡ 30-Second Overview
What is MalikClaw?
MalikClaw v2.0.0 (“Agentic Era 2026”) is a production-grade, zero-dependency personal AI agent engine engineered in pure Go 1.25+. Designed for extreme resource efficiency and real-world security, it brings autonomous AI capabilities—tool execution, multi-step planning, persistent Markdown memory, smart model cost routing, and 21 messaging/social channels—to low-power single-board computers (SBCs), Android phones, local edge nodes, and cloud containers.
Why Use MalikClaw?
- 🪶
<10MB Core RAM SLA & <0.8s Boot: Up to 99% lighter than heavy Python/Node agent frameworks (~14.2 MB measured x86_64 idle RSS in full benchmarks).
- 💰 Runs on $10 Hardware: Deploys seamlessly on Orange Pi Zero, Raspberry Pi Zero 2 W, recycled Android smartphones (via Termux), and low-tier VPS instances.
- 💬 21 Messaging & Social Channels: Unified Go
MessageBus for Telegram, Discord, WhatsApp (whatsapp & whatsapp_native), Matrix, Slack, Google Chat, IRC, TikTok, LinkedIn, Twitter/X, Reddit, Instagram, WeCom, QQ, DingTalk, LINE, Feishu, OneBot, Pico, and MaixCam.
- 📱 Native Mobile ADB & Termux Control: Autonomous phone automation—take screenshots, tap UI elements, swipe, type, and launch apps.
- 🛡️ Defense-in-Depth Security (
v2.0.0): SSRF Network Boundary Firewall (ValidateURL / IsBlockedIP), Prompt-Injection Structural Guard (WrapUntrusted / ScanPromptInjection), workspace jailing (restrict_to_workspace), and shell command filtering.
- 💸 Smart Multi-Model Cost Router:
SmartCostRouter routes simple everyday tasks to fast/local models (Ollama, gemini-2.5-flash, gpt-4o-mini) and complex reasoning to frontier models with automatic fallback.
- 🧩 Universal
SKILL.md + MCP Client: Progressive SKILL.md ecosystem (pkg/skills/loader.go) and MCP Client / Host (pkg/mcp/manager.go) supporting stdio, sse, and http transports.
- 🤖 Guardian Engine: Autonomous code auditing, debugging, and self-patching capabilities.
💻 Embed MalikClaw in Go (Production Snippet)
MalikClaw can be embedded directly into your Go microservices as a lightweight agent runtime:
package main
import (
"context"
"fmt"
"log"
"time"
"github.com/AbdullahMalik17/malikclaw/pkg/agent/agentloop"
"github.com/AbdullahMalik17/malikclaw/pkg/providers"
"github.com/AbdullahMalik17/malikclaw/pkg/tools"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
defer cancel()
workspace := "/home/user/workspace"
// 1. Initialize LLM Provider (OpenAI-compatible endpoint, Ollama, Gemini, etc.)
provider := providers.NewHTTPProvider(
"sk-proj-your-api-key",
"https://api.openai.com/v1",
"",
)
// 2. Initialize Tool Registry and register workspace-restricted tools
toolRegistry := tools.NewToolRegistry()
toolRegistry.Register(tools.NewReadFileTool(workspace, true, 0))
toolRegistry.Register(tools.NewWriteFileTool(workspace, true))
toolRegistry.Register(tools.NewListDirTool(workspace, true))
// 3. Configure the 5-Stage Agentic Loop
cfg := agentloop.DefaultLoopConfig(workspace)
cfg.MaxIterations = 10
cfg.EnableReflection = true
cfg.Reflector.Model = "gpt-4o-mini"
// 4. Instantiate & Run Agent Loop
loop := agentloop.NewAgentLoop(cfg, toolRegistry, provider)
defer loop.Close()
result, err := loop.ExecuteGoal(ctx, "Research recent Go 1.25 features and write a summary in go_features.md")
if err != nil {
log.Fatalf("Agent execution failed: %v", err)
}
fmt.Printf("Goal Achieved: %t | Actions Taken: %d | Duration: %s\n",
result.Success, result.ActionsTaken, result.Duration)
}
Benchmarked across edge ARMv7 (Orange Pi Zero, 512MB RAM) for core SLA and x86_64 Linux (Intel i7, 16GB RAM) for full runtime profiling (methodology & results):
| Metric |
Python (AutoGen / CrewAI) |
LangChain (Python) |
OpenClaw (Node.js) |
MalikClaw v2.0.0 (Go 1.25+) |
| Idle Memory (RAM) |
180MB – 450MB |
210MB – 500MB |
350MB – 1.2GB |
<10MB core SLA (~14.2 MB x86_64 RSS) |
| Boot / Cold Start |
12.4s – 35.0s |
15.1s – 42.0s |
8.5s – 18.0s |
<0.8s (<1s SLA) |
| Binary / Package Size |
850MB (virtualenv + libs) |
920MB (pip packages) |
650MB (node_modules) |
~12–15 MB stripped static binary |
| Hardware Minimum |
2GB RAM PC ($100+) |
2GB RAM PC ($100+) |
1GB RAM Pi ($35+) |
$10 Edge SBC / Laptop / Recycled Phone |
| Security & Isolation |
Manual sandbox setup |
Manual sandbox setup |
Plugin scrutiny |
SSRF Firewall + Prompt Guard + Workspace Jail |
| Cost & Model Routing |
Static / manual config |
Static / manual config |
Single static model |
SmartCostRouter (Ollama → Frontier fallback) |
| Ecosystem & Channels |
Python SDK |
Python SDK |
Plugin marketplace |
21 Channels + MCP Client + Universal SKILL.md |
| 100% Private Offline |
Complex setup |
Complex setup |
Partial |
Native Ollama, SearXNG & Local Markdown |
🏛️ High-Level System Architecture
graph TD
UserClient["Clients / 21 Inbound Channels<br/>(Telegram, Discord, WhatsApp, Web UI)"] --> Gateway["Omnichannel Gateway<br/>(Port 18790 Webhook Server)"]
Gateway --> Bus["Unified MessageBus<br/>(Go Channels / Events)"]
Bus --> Loop["5-Stage Agent Loop<br/>(pkg/agent/agentloop)"]
subgraph AgenticEngine ["5-Stage Agentic Core"]
Loop --> Plan["1. Planner<br/>(ReAct Subtask Graph)"]
Plan --> Act["2. Executor<br/>(Tool Execution & Circuit Breaker)"]
Act --> Obs["3. Observer<br/>(Output Schema Normalizer)"]
Obs --> Ref["4. Reflector<br/>(Outcome & Lesson Critic)"]
Ref --> Mem["5. Memory Manager<br/>(Markdown Storage & Search)"]
end
Act --> Sandbox["Defense-in-Depth Guardrails<br/>(SSRF Firewall, Prompt Guard & Workspace Jail)"]
Sandbox --> Tools["Registered Tools & Skills<br/>(Shell, File, Web, ADB, MCP Client, SKILL.md)"]
Loop --> ProviderLayer["SmartCostRouter & Fallback Chain<br/>(TierFast → Balanced → Reasoning)"]
ProviderLayer --> LLMBackends["LLM APIs & Local Models<br/>(Ollama, Gemini, Anthropic, OpenAI)"]
Loop --> Guardian["Guardian Engine<br/>(Autonomous Self-Patching)"]
🔄 The 5-Stage Agent Loop Architecture
graph LR
Goal["Inbound Goal"] --> PLAN["PLAN<br/>Decompose goal into subtask graph"]
PLAN --> ACT["ACT<br/>Execute sandboxed tool action"]
ACT --> OBSERVE["OBSERVE<br/>Wrap & scan untrusted output"]
OBSERVE --> REFLECT["REFLECT<br/>Evaluate success & extract lessons"]
REFLECT --> MEMORY["MEMORY UPDATE<br/>Persist state to Markdown logs"]
MEMORY --> Choice{"Goal Achieved?"}
Choice -- "No / Retry" --> PLAN
Choice -- "Yes" --> Response["Return Final Output"]
✨ Core Features & Capabilities
- 🧠 5-Stage Production Agent Loop: Complete cycle of planning, step execution, output observation, reflection, and persistent memory updates.
- 🛡️ Defense-in-Depth Security (
v2.0.0): SSRF Network Boundary Firewall (pkg/security/ssrf.go), Prompt-Injection Structural Guard (pkg/security/prompt_guard.go), workspace jailing (restrict_to_workspace), and shell regex command blocking.
- 💸 Smart Multi-Model Cost Router (
pkg/routing/cost_router.go): Complexity-aware tiering (TierFast local Ollama/gemini-2.5-flash/gpt-4o-mini → TierBalanced → TierReasoning frontier) with automatic 429/5xx fallback.
- 🧩 Universal
SKILL.md Ecosystem (pkg/skills/loader.go): Progressive YAML/JSON frontmatter + Markdown AST loading compatible with ~/.agents/skills/ and malikclaw skills install.
- 🔌 MCP (Model Context Protocol) Client / Host (
pkg/mcp/manager.go): Connect external MCP servers over stdio, sse, and http transports to dynamically extend agent capabilities.
- 💬 21-Channel Omnichannel Messaging Engine: Native
MessageBus integration for Telegram, Discord, WhatsApp (whatsapp & whatsapp_native), Matrix, Google Chat, IRC, WeCom, QQ, DingTalk, LINE, Feishu, Slack, OneBot, Pico, MaixCam, TikTok, LinkedIn, Twitter/X, Instagram, and Reddit.
- 📱 Mobile & Android ADB Automation: Direct mobile control over USB/Wi-Fi ADB or headless native execution inside Android Termux.
- 🌐 Web Interface & Dashboard: Modern Bento Grid UI listening on
http://localhost:18790 with real-time logs, agent controls, and chat shortcuts.
- 🛠️ Guardian Self-Evolution: Autonomous code inspection and safe git-diff patching for self-healing software agents.
- 🌍 RTL & Multilingual Translation: Built-in localization support for English, Urdu (RTL), Japanese, French, Portuguese, and Vietnamese.
🤖 Supported Model Providers & Web Search Engines
LLM Providers
- OpenAI:
gpt-4o, gpt-4o-mini, o1, o3-mini
- Anthropic:
claude-3-7-sonnet, claude-3-5-haiku (Native & Messages API, Prompt Caching)
- Google AI & Antigravity: Gemini 2.5 Pro, Gemini 2.5 Flash, Cloud Code Assist integration
- Ollama (Local Models): Llama 3.3, DeepSeek-R1, Qwen 2.5, Mistral (
http://localhost:11434/v1)
- Groq: Ultra-fast LLaMA & Mixtral inference
- DeepSeek: DeepSeek-V3, DeepSeek-R1
- Zhipu GLM: GLM-4 Flash / Plus
- OpenRouter & ModelScope: Unified proxy access to hundreds of open/closed models
Web Search Providers
- DuckDuckGo: Free zero-config default search engine
- Tavily: AI-optimized structured research API
- Brave Search: Fast, independent privacy-first web index
- Perplexity: Conversational AI search
- SearXNG: Self-hosted privacy meta-search engine
| OS / Runtime |
Architecture Support |
Tested Devices / Environments |
| Linux |
x86_64, arm64, armv7, riscv64 |
Ubuntu, Debian, Alpine, Arch, Orange Pi, Raspberry Pi |
| Android |
arm64, armv7 |
Termux non-root environment, Android 8.0+ |
| macOS |
arm64 (Apple Silicon), x86_64 |
macOS Monterey, Ventura, Sonoma, Sequoia |
| Windows |
x86_64, arm64 |
Windows 10, Windows 11, WSL2 |
| Containers |
Multi-arch Docker & Kubernetes |
Multi-stage alpine:3.23 (non-root malikclaw), full MCP container |
📚 Documentation Index
- QUICKSTART.md: 5-minute onboarding & initial command guide.
- INSTALLATION.md: Detailed installation options (One-liner, Docker, Brew, Source).
- ARCHITECTURE.md: Deep-dive into internal packages, subsystems, and Go API patterns.
- FAQ.md: Frequently asked questions on setup, performance, ADB, and security.
- CHANGELOG.md: Version history, release notes, and migration steps.
- SECURITY.md: Threat model, directory sandboxing, and security policies.
- CODE_OF_CONDUCT.md: Community guidelines and standards.
- CONTRIBUTING.md: Developer guide for submitting code, tools, and translations.
- ROADMAP.md: Future technical vision and community priorities.
📄 License & Attribution
MalikClaw is licensed under the MIT License. See LICENSE for details.
🦅 Built with ❤️ for developers worldwide
آگے بڑھو، ملک کلاؤ! (Let's Go, MalikClaw!)
评论