A privacy-first personal automation assistant - no GenAI required, optional AI for blogging, research, and coding
Project description
SafestClaw ๐พ
The zero-cost alternative to OpenClaw. No LLM required, though it is optional. No required API bills. Minimal attack surface. Runs on any machine.
ONE HUNDRED STARS โ We hit ONE HUNDRED stars on GitHub! This milestone is our biggest update since our original release. It brings: Real Research, Simple AI Setup, and Smart Learning. Research now searches arXiv and Semantic Scholar for real academic papers, asks Wolfram Alpha for computational answers.
setup ai sk-ant-your-keyinstantly configures Anthropic (or any provider) โ orsetup ai localfor free Ollama. The parser auto-corrects typos, converts word-numbers ("one" โ 1), and learns from your mistakes automatically. See the new features below. Previous milestone: Fuzzy Learning & Personalization. While OpenClaw users are burning $200/day and $3,600/month on API tokens, SafestClaw delivers 90% of the functionality using traditional programming โ rule-based parsing, ML pipelines, and local-first tools. Your API bill: $0. Forever. If you choose to use the language models for blogging, coding and research, then yeah, you'll have a bill, but you can also do all of that without a language model on safestclaw. We simply provide both options.
SafestClaw uses VADER, spaCy, sumy, YOLO, Whisper, Piper, and other battle-tested ML techniques instead of generative AI. The result: deterministic, predictable, private, and completely free to run.
Why SafestClaw?
| SafestClaw | OpenClaw | |
|---|---|---|
| Monthly cost by default | $0 | $100โ$3,600+ |
| Requires LLM | No (optional for AI blogging, coding, and research all have no LLM options) | yes |
| Prompt injection risk | Minimal (only if a url you go to is malicious) | Yes (everywhere) |
| Works offline | Yes all default features, except weather | No |
| Runs on any machine | Yes (Linux, macOS, Windows) | Needs powerful hardware or cloud APIs |
| Deterministic output | Yes | No (LLM responses vary) |
| Privacy | Local by default (external only when you ask or setup an llm, e.g. weather) | Data always sent to API providers |
Full Comparison: SafestClaw vs OpenClaw
| Feature | SafestClaw | OpenClaw |
|---|---|---|
| Self-hosted | โ | โ |
| Cross-platform (Linux, macOS, Windows) | โ | โ |
| No AI/LLM required | โ | โ |
| Offline capable | โ | โ |
| Zero API cost | โ | โ |
| Prompt injection risk | Minimal (only LLM research) | Everywhere |
| Privacy-first | โ (local by default) | โ |
| Voice (STT/TTS) | โ (Whisper + Piper, local) | โ (ElevenLabs, paid API) |
| Smart home control | โ | โ (via skills) |
| Bluetooth control | โ | โ |
| Network scanning | โ | โ |
| Social media summaries | โ (Twitter, Mastodon, Bluesky) | โ (requires separate skills) |
| Web crawling | โ | โ |
| Summarization | โ (extractive) | โ (AI-generated) |
| RSS/News feeds | โ (50+ feeds) | โ (via skills) |
| Sentiment analysis | โ (VADER) | โ (AI) |
| Email integration | โ | โ |
| Calendar support | โ (.ics + CalDAV) | โ |
| Document reading | โ | โ |
| Desktop notifications | โ | โ |
| Object detection | โ (YOLO) | โ |
| OCR | โ (Tesseract) | โ |
| Cron jobs | โ | โ |
| Webhooks | โ | โ |
| Localhost web UI | โ (loopback-only, no CDNs) | โ |
| Model Context Protocol (MCP) server | โ (FastMCP, every action as a tool) | โ |
| Security scanners (no AI) | โ (bandit, pip-audit, semgrep, trivy, gitleaks, โฆ) | โ |
| Multi-channel | โ (CLI, Web, Telegram, Webhooks) | โ (13+ platforms) |
| Plugin system | โ | โ (5,700+ skills) |
| Free-form chat | โ | โ |
| Blog with and without LLM | โ no llm (extractive titles) with LLM, AI blogging | โ (always requires AI) |
| Blog publishing (WordPress, Joomla, SFTP) | โ | โ (requires plugins) |
| Writing style learning | โ (statistical profiling) | โ |
| Academic research (arXiv, Scholar) | โ (free, no API key) | โ |
| Wolfram Alpha | โ (computational knowledge) | โ |
| Simple setup (enter key or local) simple telegram and blogging setup | โ (one command) | โ |
| Auto-learning from mistakes | โ (word-to-number, typo correction) | โ |
| Research pipeline | โ (two-phase, LLM optional) | โ (AI only) |
| Code templates & tools | โ (7 templates, offline utils) | โ (requires AI) |
| Auto-blog scheduling | โ (cron-based) | โ |
| Task-aware prompts | โ (per-task LLM routing) | โ |
| Command chaining | โ ("read email and remind me at 3pm") | โ |
| Autonomous multi-step tasks | โ | โ |
| Self-writing skills | โ | โ |
| Browser automation | โ | โ |
Features
๐ฃ๏ธ Voice Control
- Speech-to-Text โ Whisper STT runs locally, no cloud transcription
- Text-to-Speech โ Piper TTS for natural voice output, completely offline
- Voice-first workflow โ Talk to SafestClaw like you would any assistant
๐ Smart Home & Device Control
- Smart home integration โ Control your connected devices
- Bluetooth device control โ Discover and manage Bluetooth devices
- Network scanning โ Device discovery on your local network
๐ฑ Social Media Intelligence
- Twitter/X summarization โ Add accounts, get summaries of their activity
- Mastodon summarization โ Follow and summarize fediverse accounts
- Bluesky summarization โ Track and summarize Bluesky feeds
- No API tokens needed for public content
๐ฐ RSS News Aggregation
- 50+ preset feeds โ Hacker News, Ars Technica, BBC, Reuters, Nature, and more
- 8 categories โ Tech, World, Science, Business, Programming, Security, Linux, AI
- Custom feeds โ Import any RSS/Atom feed
- Auto-summarization โ Extractive summaries with sumy (no AI)
- Per-user preferences โ Customize your news sources
๐ Privacy & Security
- Self-hosted by default โ Your data stays local unless you explicitly request external info (like weather)
- No API keys required โ Core features work completely offline
- No cloud AI dependencies โ No tokens sent to OpenAI, Anthropic, or Google
- Minimal prompt injection surface โ Core features (blogging, coding, commands) use rule-based parsing with zero LLM, so they're immune to prompt injection. Research and deep analysis can optionally use an LLM to synthesize sources โ when enabled, content from external sources (arXiv abstracts, web pages) is fed to the LLM, which carries a minimal prompt injection risk. Phase 1 research (gathering/summarizing) never uses an LLM and is safe. We're transparent about this tradeoff.
๐ก Multi-Channel
- CLI โ Interactive command line with Rich formatting
- Telegram โ Full bot integration
- Discord โ Coming soon
- Slack โ Coming soon
- Webhooks โ Inbound and outbound support
โก Automation
- Command chaining โ Combine actions naturally: "read my email and remind me at 3pm"
- Web crawling โ Async crawling with depth limits and domain filtering
- Summarization โ LexRank, TextRank, LSA, Luhn algorithms
- Reminders โ Natural language time parsing with dateparser
- Shell commands โ Sandboxed command execution
- File operations โ Search, list, read files
- Cron jobs โ Scheduled task automation
- Daily briefings โ Weather, reminders, news from your feeds
๐ Text Analysis
- VADER Sentiment โ Lexicon-based sentiment analysis
- Keyword Extraction โ TF-IDF style extraction
- Readability Scoring โ Flesch-Kincaid metrics
๐ง Email Integration
- IMAP Support โ Read emails from Gmail, Outlook, Yahoo
- SMTP Support โ Send emails
- Standard protocols โ No API keys required
๐ Calendar Support
- ICS Files โ Import and parse .ics calendar files
- CalDAV โ Sync from Nextcloud, Radicale, iCloud, Fastmail, Google (
pip install safestclaw[caldav]) - Event filtering โ Today, upcoming, by date range
- Chat commands โ
calendar today,calendar upcoming 14,calendar import ~/cal.ics,calendar sync,calendar calendars
๐ Document Reading
- PDF โ Text extraction with PyMuPDF
- DOCX โ Microsoft Word documents
- HTML/Markdown/TXT โ Plain text formats
๐ Notifications
- Desktop notifications โ Cross-platform (macOS, Windows, Linux)
- Priority levels โ Low, normal, high, urgent
- Rate limiting โ Prevent notification spam
๐๏ธ Optional ML Features
- NLP โ spaCy named entity recognition (~50MB)
- Vision โ YOLO object detection + OCR (~2GB)
- OCR โ Tesseract text extraction from images (lightweight)
๐ Localhost Web UI
- Single-page chat at
http://127.0.0.1:8771/โ no CDNs, no JS framework - Drives the whole engine โ every action, every plugin, every command
- Loopback only โ
WebChannelrefuses non-127.0.0.1 binds at construction - Optional auth โ Bearer token via
channels.web.auth_token - JSON API โ
/api/health,/api/actions,/api/help,/api/message,/api/history - Run standalone:
safestclaw webโ Telegram auto-starts when enabled in config; other channels have their own commands (safestclaw,safestclaw webhook,safestclaw telegram)
๐ก๏ธ Security Scanners (no AI)
- bandit, pip-audit, safety, semgrep, trivy, detect-secrets, gitleaks โ all optional, all auto-detected
security toolsโ see what's installed and how to install the restsecurity scan ~/projects/myappโ run every available scanner against a path- Per-scanner:
security bandit <path>,security pip-audit,security trivy <path>, etc. - Sandboxed: paths must be inside
plugins.security.allowed_paths; scanners run viacreate_subprocess_exec(no shell)
๐ Model Context Protocol (FastMCP)
- Every action as an MCP tool โ
summarize,crawl,calendar,news,blog,research, โฆ all callable from MCP clients - Transports โ
stdio(Claude Desktop, IDE extensions),sse,streamable-http - Run as a subprocess โ
safestclaw mcp(the format MCP clients spawn) - In-process HTTP โ enable
plugins.fastmcp.autostartto expose a SSE/HTTP server when SafestClaw boots - Opt-in โ
pip install safestclaw[mcp], then enable in the setup wizard orconfig.yaml
๐ฌ Real Research Sources
- arXiv โ Search academic papers across CS, math, physics, biology, and more (free, no API key)
- Semantic Scholar โ Academic papers with citation counts and author info (free, no API key)
- Wolfram Alpha โ Computational knowledge engine for factual answers and calculations
- Smart routing โ
research <topic>searches all sources at once, or useresearch arxiv,research scholar,research wolframindividually - Two-phase pipeline โ Phase 1 gathers from real research sources ($0), Phase 2 does optional LLM deep analysis
๐ค Super Simple AI Setup
- Just enter your key โ
setup ai sk-ant-your-keyand you're done. Auto-detects Anthropic, OpenAI, Google, Groq - Or go local โ
setup ai localauto-installs Ollama, downloads a model, configures SafestClaw - Model presets โ
setup ai local small(1.3GB),setup ai local coding,setup ai local writing - Status check โ
setup ai statusshows what's configured - Zero config files โ No YAML editing needed, the command does it for you
๐ค Blog Publishing โ Preview, Templates, Repeat
- Preview before publishing โ
preview blog [to <target>]renders the exact HTML that would be uploaded and saves a copy locally so you can open it in a browser - Asks once, friendly โ when you set up a new SFTP target (or start a publish to one without a template) SafestClaw offers to learn your existing site template โ answer
yes,auto,no, orfolders - Browse remote folders โ
list folders on <target>lists subdirectories under the target's remote path so you can pick where to publish (requirespip install safestclaw[sftp]) - Auto-learn template from existing posts โ
learn template from <target>downloads the most recent post on the server, detects title + content regions, replaces them with{title}/{content}placeholders, and saves the result as the target's template. Site chrome (head, nav, footer, sidebar) is preserved verbatim - Or set
auto_detect_template: trueon a target and the first publish learns and caches the template automatically โ no manual step - Custom HTML template per target โ set
html_template(inline) orhtml_template_path(file) on apublish_targetsentry; placeholders:{title},{content},{excerpt},{date},{slug} - Subfolder per site โ
sftp_subfolder: "blog"(or set inline withsubfolder=blog/postson the setup command) so each post uploads to{remote_path}/{subfolder}/<slug>.html - Repeat last publish โ
publish blog againorpublish blog to herereuses the last successful target, no retyping
๐ค LLM Cascade with ML Fallback
- Provider cascade โ bad API key / quota / rate-limit / network failure on one provider auto-falls-through to the next configured one (cloud first, local last)
- Last-resort ML fallback โ when every LLM provider is unreachable, AI blog
rewrite/expand/headlinesuse the deterministic ML stack (sumy summarisation + keyword heuristics) so you still get useful output - Clear banner โ fallback responses are prefixed with
_(falling back to local ML)_plus the original error so you know exactly what happened
๐ ๏ธ First-Run Setup, Anywhere
- Same walkthrough in every channel โ CLI, web UI, Telegram all guide first-time users through local-only / cloud / hybrid / skip
- Conversational โ type a number or
skip; no rich prompts that only work in a TTY - Web UI banner โ driven by
/api/health.needs_setup - CLI nudge โ yellow setup-needed panel right after launch when config isn't complete
- Triggers any time
setup_completedisn't set โ not just first launch; perfect for users who never finished setup
๐ถ Offline-Aware
- Network probe with caching โ actions check connectivity before reaching out, falling back gracefully when offline
i'm offline/i'm onlineโ pin offline mode any time (plane, metered link, etc.); SafestClaw stops probing and returns local/cached results until you switch back- Friendly fallback messages โ when an academic search can't reach arXiv/Scholar/Wolfram, you get a clear explanation plus any matches from your previous research sessions
- No silent failures โ every offline reply tells you it's offline and how to try again
๐ฌ Conversational Input
- Talk naturally โ "hey claw, lets publish this blog" works the same as
publish blog - Friendly acknowledgments โ every intent gets a short, intent-aware intro when you phrase things conversationally ("Got it โ wiring up the auto-blogโฆ", "Sure โ checking your calendarโฆ")
- Strict form still terse โ
research arxiv quantum(canonical) returns the dense output without preamble - Mid-sentence handoffs handled โ "hey man, id like to research, lets try arxiv quantum computing" routes correctly to arXiv
๐ง Smart Input Learning
- Word-to-number โ Type "research select one two three" and SafestClaw understands "1 2 3"
- Typo auto-correction โ "remaind me" โ "remind me", "summerize" โ "summarize"
- Shorthand โ "tmrw" โ "tomorrow", "hrs" โ "hours", "mins" โ "minutes"
- Auto-learns from mistakes โ If a command fails and you retype it correctly, SafestClaw remembers the mapping for next time
- No AI needed โ All corrections are rule-based and deterministic
๐ฌ Optional LLM Command Understanding (NLU)
Don't want to memorise command syntax? Enable the NLU bridge and just talk naturally:
# Without NLU โ you have to know the exact phrase:
remind me tomorrow at 9am to call the dentist
# With NLU enabled โ any phrasing works:
hey, can you remind me to call the dentist tomorrow morning at 9?
I need a reminder for tomorrow at 9 to call the dentist
put a 9am reminder tomorrow: dentist call
The NLU bridge uses your configured LLM (any provider) as a pure translator: it converts what you typed into the closest matching SafestClaw command string, which then goes through the same rule-based parser as always. The LLM never executes anything directly โ it only re-words your input.
Enable in config/config.yaml:
safestclaw:
nlu:
enabled: true
provider: my-claude # optional โ uses active provider if omitted
temperature: 0.0 # deterministic output
show_translation: true # shows "_(understood as: remind me ...)_" prefix
Privacy note: When NLU is enabled, unrecognised commands are sent to your configured LLM provider. Recognised commands (the vast majority) are still handled entirely locally with zero tokens consumed.
โ๏ธ Writing Style Profiler
- Learn your voice โ Feed SafestClaw your writing and it builds a 35-metric profile (sentence length, vocabulary, formality, contractions, structure, favorite words, etc.)
- Persistent memory โ Your profile is stored in SQLite and improves with every sample
- LLM prompt generation โ Profile converts to writing style instructions for any LLM provider
- No AI required โ All analysis uses NLTK, VADER, and statistical methods locally
๐ฌ Research Pipeline
- Two-phase workflow โ Phase 1 gathers and summarizes sources (no LLM, $0). Phase 2 does optional LLM deep analysis
- Source gathering โ Searches RSS feeds and crawls URLs, auto-summarizes with Sumy
- Source selection โ You pick which sources matter before spending any tokens
- Deep analysis โ Optional LLM analyzes selected sources with structured output
๐ป Coding Toolbox
- 7 templates โ python-script, python-class, python-test, fastapi-endpoint, html-page, dockerfile, github-action
- Code stats โ Lines of code by language for any directory
- Regex tester โ Test and explain regex patterns with match highlighting
- Code search โ Regex search across code files
- File diff โ Compare two files side by side
- LLM-powered (optional) โ Generate, explain, review, refactor, document code
๐ Auto Blog Scheduler
- Cron scheduling โ Schedule recurring blog generation with cron expressions
- Source categories โ Pull from specific RSS categories automatically
- Async-safe โ Detects scheduler type mismatches and warns clearly instead of silently failing
- Optional LLM step โ Source gathering stays deterministic; opt-in
llm_enabledpost-processes the draft via the configured AI provider (modes:rewrite,expand,headline,generate) - Honors
task_providers.blogโ Use a different LLM for blogging vs research / coding - Graceful fallback โ On any LLM failure (rate limit, network, no providers) the cron job publishes the deterministic draft instead of skipping
๐ง Smart Prompt Builder
- Task-aware prompts โ Generates optimized prompts for blog, research, and coding tasks
- Writing profile integration โ Automatically injects your writing style into blog prompts
- Provider routing โ Each task type can use a different LLM provider
- Flow diagram โ
show me the flowdisplays the full architecture as ASCII art
๐ฅ Easter Eggs
- Built-in personality and hidden surprises โ because tools should be fun
๐ Blogging โ Two Modes
Deterministic Blog (No AI, No Cost):
- Write blog news โ Add entries with natural language: "write blog news We shipped faster crawling today."
- Crawl sites for content โ "crawl https://example.com for title content", "crawl example.com for body content"
- Auto-generated titles โ Extractive summarization picks the most representative content as your headline. No LLM, just math.
- Plain .txt output โ Your blog is a simple text file you can share anywhere
AI Blog (Optional, Multi-Provider):
- Generate full posts from a topic โ "ai blog generate about sustainable technology"
- Rewrite, expand, polish โ "ai rewrite blog", "ai expand blog"
- AI headlines and SEO โ "ai headlines", "ai blog seo"
- 11 providers โ 5 local (Ollama, LM Studio, llama.cpp, LocalAI, Jan) + 6 cloud (OpenAI, Anthropic, Google, Mistral, Groq, custom)
- Local AI = free + private โ Run Ollama or LM Studio and pay nothing
Multi-Platform Publishing:
- WordPress โ REST API v2 with Application Passwords, JWT, or Basic Auth
- Joomla โ Web Services API (Joomla 4+)
- SFTP โ Upload HTML to any server
- Generic API โ POST JSON to any endpoint
- Front page management โ Set which post is the home page on any target
Installation
From PyPI (recommended)
pip install safestclaw # core
pip install "safestclaw[mcp]" # + FastMCP plugin (Model Context Protocol)
pip install "safestclaw[caldav]" # + CalDAV calendar sync
pip install "safestclaw[telegram]" # + Telegram bot channel
pip install "safestclaw[smarthome]" # + Philips Hue / Home Assistant MQTT
pip install "safestclaw[all]" # everything except heavy ML deps
Using pipx (isolated CLI install)
# Install pipx if needed
# Linux:
sudo apt install pipx
# macOS:
brew install pipx
# Windows (PowerShell):
python -m pip install --user pipx
python -m pipx ensurepath
pipx install safestclaw
# or with extras:
pipx install "safestclaw[mcp,caldav]"
Inside a virtual environment
# Linux/macOS:
python3 -m venv ~/.safestclaw-venv
source ~/.safestclaw-venv/bin/activate
# Windows (PowerShell):
python -m venv $HOME\.safestclaw-venv
$HOME\.safestclaw-venv\Scripts\Activate.ps1
pip install safestclaw
From source (for contributors)
git clone https://github.com/princezuda/safestclaw.git
cd safestclaw
pip install -e ".[dev]"
pytest -q # 336 passed, 1 skipped
Optional ML Features
Install extras the same way โ replace safestclaw with the git URL or use the
local checkout:
# From a local clone (cd into the repo first)
pip install -e ".[nlp]" # spaCy NER (~50MB)
pip install -e ".[vision]" # YOLO + OCR (~2GB, needs PyTorch)
pip install -e ".[ocr]" # OCR only (needs Tesseract)
pip install -e ".[ml]" # all ML extras
# Or directly from GitHub
pipx install "git+https://github.com/princezuda/safestclaw.git#egg=safestclaw[ml]"
Requirements: Python 3.11+, ~50MB disk (base), ~2GB additional for vision features. Runs on Linux, macOS, and Windows.
Quick Start
# Start interactive mode
safestclaw
# Or with verbose logging
safestclaw --verbose
Example Commands
> news # Get headlines from enabled feeds
> news tech # Get tech news only
> news categories # See all available categories
> news enable science # Enable science feeds
> add feed https://blog.example.com/rss # Add custom feed
> summarize https://news.ycombinator.com
> crawl https://example.com
> remind me to call mom tomorrow at 3pm
> morning briefing # Includes news from your feeds!
> check my email # View inbox (requires setup)
> read my email and remind me at 3pm # Chain commands naturally
> calendar today # Today's events from .ics
> calendar upcoming 14 # Next 14 days
> calendar import ~/cal.ics # Import an .ics file
> calendar sync # Pull from a configured CalDAV server
> analyze sentiment of this text # VADER sentiment analysis
> read document.pdf # Extract text from documents
> write blog news We shipped a new feature today. # Blog entry (no AI)
> crawl https://example.com for title content # Crawl for blog
> blog title # Generate title from entries
> publish blog # Save blog as .txt
> blog # Interactive blog menu (AI or manual)
> ai blog generate about home automation # AI writes a full post
> ai rewrite blog # AI polishes your draft
> publish blog to wp://mysite.com admin pass # Publish inline โ no config needed
> publish blog to my-wordpress # Or use a saved target from config
> style learn I write concise, punchy posts. # Teach SafestClaw your style
> style profile # View your writing profile
> research WebAssembly performance # Search arXiv + Scholar + Wolfram
> research arxiv quantum computing # Search arXiv papers directly
> research scholar machine learning # Search Semantic Scholar
> research wolfram integrate x^2 # Ask Wolfram Alpha
> research select 1,2,3 # Pick sources to analyze
> setup ai sk-ant-your-key-here # Enter your Anthropic key, done
> setup ai local # Or auto-install Ollama (free!)
> setup ai status # Check what's configured
> code template python-class UserAuth Auth handler # Generate boilerplate
> code templates # List all 7 templates
> code stats src/ # Lines of code by language
> code regex \d{3}-\d{4} test 555-1234 # Test regex
> auto blog list # View scheduled auto-blogs
> security tools # Show installed security scanners
> security scan ~/projects/myapp # Run every available scanner
> security bandit ~/projects/myapp # Python static analysis
> security pip-audit # CVEs in installed Python deps
> mcp status # Check FastMCP server state
> mcp tools # List actions exposed over MCP
> show me the flow # Architecture diagram
> help
CLI Commands
# News
safestclaw news # Headlines from enabled categories
safestclaw news tech # Tech news only
safestclaw news --categories # List all categories
safestclaw news world -n 20 # 20 world news headlines
safestclaw news --add https://blog.example.com/rss --name "My Blog"
safestclaw news -s # With auto-summarization
# Summarize
safestclaw summarize https://example.com/article -n 5
# Crawl
safestclaw crawl https://example.com --depth 2
# Text analysis
safestclaw analyze "This product is amazing! I love it."
safestclaw analyze document.txt --no-readability
# Documents
safestclaw document report.pdf
safestclaw document paper.docx --summarize -n 5
safestclaw document notes.md --output extracted.txt
# Calendar
safestclaw calendar import --file calendar.ics
safestclaw calendar today --file calendar.ics
safestclaw calendar upcoming --file calendar.ics --days 14
safestclaw calendar week --file calendar.ics
# CalDAV sync (configure under actions.calendar.caldav, then run from chat):
# calendar sync # pull events from a configured CalDAV server
# calendar calendars # list calendars on the server
# Blog โ Deterministic (no AI)
safestclaw blog help # Blog feature guide
safestclaw blog write "New crawling features shipped today."
safestclaw blog show # View draft and published posts
safestclaw blog title # Generate title from entries
safestclaw blog publish # Save blog as .txt
safestclaw blog publish "My Custom Title" # Publish with custom title
# Blog โ AI-powered (requires ai_providers in config)
safestclaw blog # Interactive menu (AI or manual)
# ai blog generate about <topic> # AI writes a full blog post
# ai rewrite blog # AI polishes your draft
# ai expand blog # AI makes it longer
# ai headlines # AI generates headline options
# ai blog seo # AI generates SEO metadata
# Publishing (requires publish_targets in config)
# publish blog to my-wordpress # Publish to a specific target
# publish blog to all # Publish to all targets
# set front page 123 on my-wp # Set home page on a target
# Writing Style
safestclaw style learn "I write short, punchy sentences. No fluff."
safestclaw style profile # View your writing profile
# Research (arXiv, Semantic Scholar, Wolfram Alpha)
safestclaw research "quantum computing" # Search all sources
safestclaw research arxiv "transformer models" # arXiv papers
safestclaw research scholar "deep learning" # Semantic Scholar
safestclaw research wolfram "integrate x^2" # Wolfram Alpha
safestclaw research sources # View gathered sources
safestclaw research select 1,2,3 # Pick sources for deep analysis
safestclaw research analyze # LLM deep dive (optional)
# AI Setup (super simple)
safestclaw setup ai sk-ant-your-key # Enter Anthropic key, done
safestclaw setup ai sk-your-key # Or OpenAI key
safestclaw setup ai local # Or auto-install Ollama (free)
safestclaw setup ai local coding # Install coding-optimized model
safestclaw setup ai status # Check your setup
# Coding Toolbox
safestclaw code templates # List available templates
safestclaw code template python-class UserAuth "Auth handler"
safestclaw code stats src/ # Lines of code by language
safestclaw code search "TODO" src/ # Regex search code files
safestclaw code regex "\d{3}-\d{4}" test "555-1234"
safestclaw code diff file1.py file2.py
# Auto Blog
safestclaw auto blog setup # Interactive setup wizard
safestclaw auto blog list # View scheduled auto-blogs
safestclaw auto blog remove my-blog # Remove a schedule
# Flow
safestclaw flow # Architecture diagram
# Webhooks
safestclaw webhook --port 8765
# Localhost web UI (loopback-only, drives the entire engine)
safestclaw web # http://127.0.0.1:8771/
safestclaw web --port 9000 # custom port
safestclaw web --token "secret" # require Bearer/X-SafestClaw-Token
# Telegram bot (token + allowlist read from channels.telegram in config.yaml)
safestclaw telegram # start the bot standalone
# Model Context Protocol (FastMCP โ every action as an MCP tool)
safestclaw mcp # stdio (Claude Desktop, IDE clients)
safestclaw mcp --transport sse --port 8770
safestclaw mcp --transport streamable-http --port 8770
# Security scanners (no AI; auto-detects what's installed)
safestclaw security tools # show installed scanners + install hints
safestclaw security scan ~/projects/myapp # run every available scanner
safestclaw security bandit ~/projects/myapp # Python static analysis
safestclaw security pip-audit # CVEs in installed Python deps
safestclaw security semgrep ~/projects/myapp # multi-language SAST
safestclaw security trivy ~/projects/myapp # filesystem vuln scan
safestclaw security secrets ~/projects/myapp # detect-secrets
safestclaw security gitleaks ~/projects/myapp # gitleaks
# Setup wizard (prompts for AI mode, web UI, MCP)
safestclaw setup
# Initialize config
safestclaw init
Configuration
SafestClaw looks for configuration in config/config.yaml:
safestclaw:
name: "SafestClaw"
language: "en"
timezone: "UTC"
channels:
cli:
enabled: true
webhook:
enabled: true
port: 8765
web: # localhost-only chat UI + JSON API
enabled: false
host: "127.0.0.1" # loopback-only, enforced at construction
port: 8771
auth_token: "" # optional Bearer token
telegram:
enabled: false
token: "YOUR_BOT_TOKEN"
actions:
shell:
enabled: true
sandboxed: true
timeout: 30
files:
enabled: true
allowed_paths:
- "~"
calendar: # optional CalDAV sync
caldav:
url: "https://nextcloud.example.com/remote.php/dav"
username: "you"
password: "app-password"
calendar: "personal" # optional โ omit to merge all calendars
plugins:
fastmcp: # expose every action as an MCP tool
enabled: false
transport: "stdio" # stdio | sse | streamable-http
host: "127.0.0.1"
port: 8770
security: # deterministic security scanners
allowed_paths:
- "~"
- "/tmp"
timeout: 120
Writing Style & Research Guide
Writing Style Profiler
SafestClaw learns how you write by analyzing text samples. It builds a statistical profile โ no AI needed.
> style learn I've been thinking about this for a while. The tech industry
loves to overcomplicate things. Simple solutions work better.
Profile updated (1 sample analyzed).
> style learn Here's what I learned from shipping 50 side projects: most
of them failed. And that's completely fine!
Profile updated (2 samples analyzed).
> style profile
Writing Style Profile (2 samples analyzed)
Tone: casual, neutral
Avg sentence: 7 words
Vocabulary: advanced (richness: 72%)
Structure: conversational
Uses contractions, first person, em-dashes
Favorite words: easier, simple, something, learn
Your profile persists across sessions and automatically shapes AI blog prompts so generated posts sound like you.
Commands:
| Command | Description |
|---|---|
style learn <text> |
Feed SafestClaw a writing sample |
style profile |
View your current writing profile |
Research Pipeline
Two-phase research: gather first (free), then optionally analyze with AI.
> research WebAssembly performance
Found 8 sources. Use 'research sources' to view.
> research sources
1. [HN] WebAssembly 2.0 Performance Benchmarks (4 sentences)
2. [RSS] Wasm vs Native: A Deep Dive (3 sentences)
...
> research select 1,2,5
Selected 3 sources for deep analysis.
> research analyze
[LLM analyzes your selected sources with structured output]
Commands:
| Command | Description |
|---|---|
research <topic> |
Search feeds & crawl for sources (no LLM) |
research url <url> |
Add a specific URL as a source |
research sources |
View gathered sources with summaries |
research select 1,2,3 |
Pick sources for deep analysis |
research analyze |
LLM deep dive on selected sources |
research results |
View analysis results |
research help |
Show all research commands |
Coding Toolbox
Offline coding utilities plus optional LLM-powered features.
> code templates
python-script, python-class, python-test, fastapi-endpoint,
html-page, dockerfile, github-action
> code template python-class UserAuth Authentication handler
@dataclass
class UserAuth:
"""Authentication handler"""
...
> code stats src/
python โโโโโโโโโโโโโโโโโโโโ 19,348 lines (55 files) 100%
> code regex \d{3}-\d{4} test 555-1234
\d โ digit (0-9)
Match: 555-1234
Commands:
| Command | Description |
|---|---|
code templates |
List all 7 available templates |
code template <type> [Name] [desc] |
Generate boilerplate code |
code stats <path> |
Lines of code by language |
code search <pattern> |
Regex search across code files |
code read <file> |
Display file with syntax info |
code diff <f1> <f2> |
Compare two files |
code regex <pattern> [test] |
Test and explain regex patterns |
code generate <desc> |
LLM generates code (optional) |
code explain <file> |
LLM explains code (optional) |
code review <file> |
LLM finds bugs (optional) |
code help |
Show all coding commands |
Auto Blog Scheduler
Schedule recurring blog generation with cron expressions. Source gathering and extractive summarisation are always deterministic; an optional LLM step can rewrite, expand, headline, or fully regenerate the post.
> auto blog setup
[Interactive wizard]
> auto blog add weekly-tech "0 9 * * 1" tech,ai
Auto-blog 'weekly-tech' scheduled: 0 9 * * 1
> auto blog list
weekly-tech: 0 9 * * 1 (tech, ai)
> auto blog remove weekly-tech
Removed.
Without LLM (the default):
auto_blogs:
- name: "weekly-tech"
cron_expr: "0 9 * * 1"
source_categories: [tech, programming]
post_template: "digest"
auto_publish: false
With LLM enrichment (uses ai_providers and optionally task_providers.blog):
auto_blogs:
- name: "weekly-tech-llm"
cron_expr: "0 9 * * 1"
source_categories: [tech]
post_template: "digest"
llm_enabled: true
llm_mode: "rewrite" # rewrite | expand | headline | generate
llm_provider: "" # blank = use task_providers.blog or active
# llm_topic: "The week in ML" # only for llm_mode: generate
# llm_system_prompt: "Be terse." # optional override
Modes:
- rewrite โ improve the deterministic draft's flow and readability
- expand โ add depth and examples to the deterministic draft
- headline โ keep the body, replace the title
- generate โ write a brand-new post from the gathered items as context
If the LLM call fails (rate limit, network, no providers), the deterministic draft is published instead โ the cron job never silently skips.
Task-Aware Prompt Builder
Each task type (blog, research, coding) gets optimized prompts. Configure per-task LLM providers:
task_providers:
blog: "local-ollama" # Blog posts use local Ollama
research: "openai" # Research uses OpenAI for quality
coding: "local-lmstudio" # Code tasks use LM Studio
Run show me the flow to see the full architecture diagram.
Blogging Guide
SafestClaw has two blogging modes. You can use either or both.
Mode 1: Deterministic Blog (No AI)
Write entries manually, crawl websites for content, and let SafestClaw generate titles using extractive summarization (LexRank, TextRank, LSA, Luhn). No API keys, no cost, fully offline.
Setup: None โ works out of the box.
> write blog news We shipped faster crawling today.
Added entry (1 total).
> crawl https://example.com for title content
Extracted 3 titles, added to draft.
> blog title
Generated: "Faster Crawling Ships Today"
> publish blog
Saved: 2026-02-24-faster-crawling-ships-today.txt
Commands:
| Command | Description |
|---|---|
write blog news <content> |
Add a manual entry to your draft |
crawl <url> for title content |
Extract page headings into draft |
crawl <url> for body content |
Extract main body text into draft |
crawl <url> for non-title content |
Extract non-heading text into draft |
blog title |
Generate a title using extractive summarization |
show blog |
View your draft and published posts |
edit blog <new content> |
Replace draft content |
publish blog |
Save as .txt locally |
publish blog My Custom Title |
Save with a custom title |
Mode 2: AI Blog (Optional)
AI generates full blog posts from a topic. You can rewrite, expand, generate headlines, and produce SEO metadata. Supports 11 providers โ 5 local (free) and 6 cloud (API key required).
Setup:
-
Choose a provider. For free/private, use a local provider. For quality/speed, use a cloud provider.
-
Configure it in
config/config.yamlunderai_providers. Uncomment and fill in one or more:
Local AI (free, private, no API key):
ai_providers:
# Ollama โ easiest local option
- label: "local-ollama"
provider: "ollama"
model: "llama3.1"
endpoint: "http://localhost:11434/api/chat"
# LM Studio โ GUI app with model browser
# - label: "local-lmstudio"
# provider: "lm_studio"
# model: "local-model"
# endpoint: "http://localhost:1234/v1/chat/completions"
# llama.cpp โ high-performance C++ inference
# - label: "local-llamacpp"
# provider: "llamacpp"
# model: "local-model"
# endpoint: "http://localhost:8080/v1/chat/completions"
# Jan โ user-friendly desktop app
# - label: "local-jan"
# provider: "jan"
# model: "llama3.1-8b"
# endpoint: "http://localhost:1337/v1/chat/completions"
Cloud AI (API key required):
ai_providers:
# OpenAI
- label: "openai"
provider: "openai"
api_key: "sk-..." # https://platform.openai.com/api-keys
model: "gpt-4o"
# Anthropic (Claude)
# - label: "anthropic"
# provider: "anthropic"
# api_key: "sk-ant-..." # https://console.anthropic.com/settings/keys
# model: "claude-sonnet-4-20250514"
# Google Gemini
# - label: "google"
# provider: "google"
# api_key: "AI..." # https://aistudio.google.com/apikey
# model: "gemini-1.5-flash"
# Mistral
# - label: "mistral"
# provider: "mistral"
# api_key: "..." # https://console.mistral.ai/api-keys
# model: "mistral-large-latest"
# Groq (fast inference)
# - label: "groq"
# provider: "groq"
# api_key: "gsk_..." # https://console.groq.com/keys
# model: "llama-3.1-70b-versatile"
- Install the local AI server (if using local):
# Ollama (recommended โ one command)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.1
# LM Studio โ download from https://lmstudio.ai
# Jan โ download from https://jan.ai
# llama.cpp โ git clone https://github.com/ggerganov/llama.cpp && make
- Use it:
> blog
1. AI Blog for You (Recommended) [ollama/llama3.1]
2. Manual Blogging (No AI)
> 1
What should the blog post be about?
> sustainable technology trends in 2026
AI-Generated Blog Post
Provider: ollama/llama3.1 (847 tokens)
---
[full article here]
---
What would you like to do?
edit blog <changes> - Replace with your edits
ai rewrite blog - Have AI polish/rewrite it
ai expand blog - Have AI make it longer
publish blog - Save as .txt locally
publish blog to wp://mysite.com u pass - Publish (shows preview first)
publish blog to <saved-target> - Publish to configured target
> publish blog to wp://mysite.com admin mypassword
Ready to Publish
Title: Sustainable Technology Trends in 2026
Words: 847
Target: wp-mysite.com
Preview:
The clean energy revolution is accelerating...
... [truncated]
---
confirm - Publish now
change title <new title> - Rename before publishing
edit blog <new content> - Edit content first
cancel - Abort
> change title The Green Tech Surge: What's Coming in 2026
Title updated.
Title: The Green Tech Surge: What's Coming in 2026
Target: wp-mysite.com
Type confirm to publish or cancel to abort.
> confirm
Blog Published
wp-mysite.com (wordpress): Post published successfully
URL: https://mysite.com/the-green-tech-surge
AI Commands:
| Command | Description |
|---|---|
blog |
Interactive menu โ choose AI or manual |
ai blog generate about <topic> |
Generate a full blog post from a topic |
ai rewrite blog |
Rewrite/polish your current draft |
ai expand blog |
Expand short content into a longer article |
ai headlines |
Generate 5 headline options for your draft |
ai blog seo |
Generate SEO metadata (title, description, keywords, slug) |
ai options |
Show local AI providers and install instructions |
ai providers |
Show cloud AI providers and API key links |
switch ai provider <label> |
Switch between configured providers at runtime |
Multiple providers: You can configure several providers at once. The first enabled one becomes the default. Switch at runtime with switch ai provider <label>.
Publishing to Remote Platforms
Publish your blog (from either mode) to WordPress, Joomla, any SFTP server, or a generic API endpoint.
No config needed โ publish inline:
publish blog to sftp://192.168.1.1 myuser mypassword
publish blog to sftp://host:2222 myuser mypassword /var/www/html
publish blog to wp://mysite.com admin myapppassword
publish blog to wordpress://mysite.com admin myapppassword
publish blog to joomla://mysite.com admin mypassword
publish blog to api://mysite.com/endpoint myapikey
Every publish command shows a pre-publish preview first โ title, word count, content snippet, and target. You can then:
| Reply | Effect |
|---|---|
confirm |
Publish with the current title |
change title <new title> |
Rename and re-preview |
edit blog <content> |
Edit draft (cancels pending publish) |
cancel |
Abort without publishing |
Inline targets are remembered for the session under an auto-generated label (e.g. wp-mysite.com), so publish blog to wp-mysite.com works for subsequent posts without re-typing credentials.
Permanent targets (optional โ add to config/config.yaml under publish_targets):
publish_targets:
# WordPress (REST API v2)
- label: "my-wordpress"
type: "wordpress"
url: "https://mysite.com"
username: "admin"
password: "xxxx xxxx xxxx xxxx" # Application Password (WP Admin > Users > Profile)
wp_status: "publish" # publish, draft, pending, private
# Joomla (Web Services API, Joomla 4+)
- label: "my-joomla"
type: "joomla"
url: "https://myjoomla.com"
api_key: "your-joomla-api-token" # Joomla Admin > Users > API Token
joomla_category_id: 2
# SFTP (any server)
- label: "my-server"
type: "sftp"
sftp_host: "myserver.com"
sftp_user: "deploy"
sftp_key_path: "~/.ssh/id_rsa"
sftp_remote_path: "/var/www/html/blog"
# Generic API (POST JSON to any endpoint)
- label: "my-api"
type: "api"
url: "https://api.mysite.com/posts"
api_key: "your-bearer-token"
Publishing commands:
| Command | Description |
|---|---|
publish blog to wp://site.com user pass |
Publish to WordPress inline (no config) |
publish blog to sftp://host user pass |
Publish via SFTP inline |
publish blog to joomla://site.com user pass |
Publish to Joomla inline |
publish blog to api://endpoint key |
Publish to generic API inline |
publish blog to <saved-label> |
Publish to a target saved in config |
publish blog to all |
Publish to all enabled saved targets |
confirm |
Confirm a staged publish |
change title <new title> |
Change the title before confirming |
cancel |
Cancel a staged publish |
list publish targets |
Show configured targets |
set front page <id> on <target> |
Set which post is the home page |
show front page |
Show current front page setting |
list pages for <target> |
List available pages/posts on a target |
Deterministic vs AI: Quick Comparison
| Deterministic | AI-Powered | |
|---|---|---|
| Cost | $0 | $0 (local) or pay-per-token (cloud) |
| Privacy | Fully local | Local AI = local; cloud = data sent to provider |
| Titles | Extractive summarization | LLM-generated |
| Content | Manual writing + crawling | LLM generates from topic |
| Speed | Instant | Seconds (local) to seconds (cloud) |
| Determinism | 100% reproducible | Varies by model/temperature |
| Setup | None | Install local AI or add cloud API key |
Architecture
Tip: Run
show me the floworflowinside SafestClaw to see the full interactive architecture diagram.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SAFESTCLAW โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ CHANNELS โ โ ACTIONS โ โ TRIGGERS โ โ CORE โ โ
โ โโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโค โ
โ โ โข CLI โ โ โข Blog โโโโโโโโโโโโโโโโโโโโโโโโโโโธ AI Writer โ โ
โ โ โข Telegram โ โ โข Research โ โ โข Cron โ โ โข Analyzer โ โ
โ โ โข Webhooks โ โ โข Code โ โ โข Webhooks โ โ โข Documentsโ โ
โ โ โข Discord โ โ โข Style โ โ โข Auto Blog โ โ โข Notify โ โ
โ โโโโโโโโโโโโโโโ โ โข Files โ โ โข Watchers โ โ โข Feeds โ โ
โ โ โข Shell โ โ โข Events โ โ โข Crawler โ โ
โ โโโโโโโโโโโโโโโ โ โข Crawl โ โโโโโโโโโโโโโโโโ โ โข Summary โ โ
โ โ VOICE โ โ โข Summarize โ โ โข Voice โ โ
โ โโโโโโโโโโโโโโโค โ โข Reminder โ โโโโโโโโโโโโโโโโ โ โข Social โ โ
โ โ โข Whisper โ โ โข Briefing โ โ DEVICES โ โโโโโโโโโโโโโโ โ
โ โ โข Piper TTS โ โ โข News/RSS โ โโโโโโโโโโโโโโโโค โ
โ โโโโโโโโโโโโโโโ โ โข Email โ โ โข Bluetooth โ โโโโโโโโโโโโโโ โ
โ โ โข Calendar โ โ โข Network โ โPERSONALIZE โ โ
โ โโโโโโโโโโโโโโโ โ โข Social โ โ โข Smart Home โ โโโโโโโโโโโโโโค โ
โ โ PROMPT โ โโโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโโโ โ โข Style โ โ
โ โ BUILDER โ โ โ Profiler โ โ
โ โโโโโโโโโโโโโโโค โผ โ โข Writing โ โ
โ โ โข Task- โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ Profile โ โ
โ โ aware โ โ BLOG PUBLISHER โ โ โข 35+ โ โ
โ โ โข Style โ โ WordPress โข Joomla โข SFTP โ โ metrics โ โ
โ โ inject โ โ Generic API โข Auto Schedule โ โโโโโโโโโโโโโโ โ
โ โ โข Provider โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ routing โ โโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ AI WRITER โ โ
โ โ COMMAND PARSER โ โโโโโโโโโโโโโโค โ
โ โ Keyword + Regex + Fuzzy โ โ Local: โ โ
โ โ + Date Parser + Specificity โ โ โข Ollama โ โ
โ โ Weighted Phrase Matching โ โ โข LM Studioโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โข llama.cppโ โ
โ โ Cloud: โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โข OpenAI โ โ
โ โ MEMORY (SQLite) โ โ โข Anthropicโ โ
โ โ History โข Preferences โข Reminders โข Cache โ โ โข Google โ โ
โ โ Events โข Blog Drafts โข Writing Profiles โ โ โข Mistral โ โ
โ โ Research Sessions โ โ โข Groq โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
How It Works (No AI!)
Command Parsing
Instead of burning tokens on LLMs, SafestClaw uses:
- Keyword matching โ Fast lookup of command keywords
- Regex patterns โ Structured extraction of parameters
- Fuzzy matching โ Typo tolerance with rapidfuzz
- Specificity-weighted phrase matching โ Longer, more specific phrases win over short keyword collisions
- Date parsing โ Natural language dates with dateparser
# Example: "remind me to call mom tomorrow at 3pm"
# โ intent: "reminder"
# โ params: {task: "call mom", time: "tomorrow at 3pm"}
# โ entities: {datetime: 2024-01-16 15:00:00}
Voice Pipeline
Fully local voice processing โ no cloud APIs, no per-minute billing:
- Whisper STT โ OpenAI's Whisper model running locally for speech recognition
- Piper TTS โ Fast, high-quality text-to-speech with multiple voice options
Summarization
Uses sumy's extractive algorithms:
- LexRank โ Graph-based, like PageRank for sentences
- TextRank โ Word co-occurrence graphs
- LSA โ Latent Semantic Analysis
- Luhn โ Statistical word frequency
No neural networks, no API calls โ pure math.
Social Media Summarization
Add Twitter, Mastodon, or Bluesky accounts and get extractive summaries of their recent posts. No API tokens needed for public content. Useful for tracking industry voices, news accounts, or competitors without doomscrolling.
Web Crawling
Async crawling with httpx + BeautifulSoup:
- Single page link extraction
- Multi-page crawling with depth limits
- Domain filtering and pattern matching
- Built-in caching
Extending SafestClaw
Custom Actions
from safestclaw.actions.base import BaseAction
class MyAction(BaseAction):
name = "myaction"
async def execute(self, params, user_id, channel, engine):
# Your logic here
return "Action completed!"
# Register it
engine.register_action("myaction", MyAction().execute)
Custom Intent Patterns
Add to config/intents.yaml:
intents:
deploy:
keywords: ["deploy", "release", "ship"]
patterns:
- "deploy to (production|staging)"
examples:
- "deploy to production"
action: "webhook"
Plugin System
Plugins are automatically loaded from the plugins directory:
src/safestclaw/plugins/
โโโ official/ # Curated, tested plugins
โ โโโ smarthome.py
โโโ community/ # User-contributed plugins
โ โโโ your_plugin.py
โโโ base.py # BasePlugin class
โโโ loader.py # Plugin loader
Who Is SafestClaw For?
SafestClaw is for you if:
- You want automation without API bills
- You're tired of unpredictable OpenClaw costs
- Privacy matters to you โ your data stays local by default
- You prefer deterministic, predictable behavior
- You want voice control without paying for ElevenLabs
- You need social media monitoring without the doomscroll
- You want smart home and Bluetooth control in one tool
- You want AI blogging with your choice of provider (or no AI at all)
- You want to publish to WordPress, Joomla, or any server from the CLI
- You want an assistant that learns how you write and adapts to your style
- You want a research pipeline that gathers before it spends tokens
- You need code templates and utilities without spinning up an LLM
- You don't need free-form AI conversation
Stick with OpenClaw if:
- You need autonomous multi-step reasoning
- Free-form conversation is essential
- You want the AI to write its own skills
- Browser automation is a core need
Development
# Clone the repo
git clone https://github.com/princezuda/safestclaw.git
cd safestclaw
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Type checking
mypy src/safestclaw
# Linting
ruff check src/safestclaw
License
MIT License โ see LICENSE for details.
Contributing
Contributions welcome! Areas we'd love help with:
- More channel adapters (Discord, Slack, Matrix)
- Smart home integrations (Home Assistant, Philips Hue)
- Better intent patterns
- Additional social media platforms
- Documentation improvements
- Tests and CI/CD
Acknowledgments
- Whisper โ Local speech-to-text
- Piper โ Local text-to-speech
- sumy โ Extractive summarization
- VADER โ Sentiment analysis
- feedparser โ RSS/Atom feed parsing
- dateparser โ Natural language date parsing
- rapidfuzz โ Fast fuzzy matching
- httpx โ Async HTTP client (AI providers, publishing)
- FastAPI โ Webhook server
- Rich โ Beautiful CLI output
- PyMuPDF โ PDF parsing
- python-docx โ DOCX parsing
- icalendar โ ICS calendar parsing
- desktop-notifier โ Cross-platform notifications
- spaCy โ Named entity recognition
- YOLO โ Object detection
- NLTK โ Natural language toolkit (writing style analysis)
- Ollama โ Local AI inference (optional, for AI blogging)
- LM Studio โ Desktop AI model runner (optional)
SafestClaw โ Because your assistant shouldn't cost more than your rent. ๐พ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safestclaw-4.2.tar.gz.
File metadata
- Download URL: safestclaw-4.2.tar.gz
- Upload date:
- Size: 336.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ca50367094fd2133a77a940fdb7cecf0841e8b4d7b4f35b14169e1d986b17d1
|
|
| MD5 |
5a7be305ed0261d6d919ceedce99cfe7
|
|
| BLAKE2b-256 |
42a08b5c64a40f3115215f27ac849b2ba03724e3b988b1f60d36358e9239e018
|
Provenance
The following attestation bundles were made for safestclaw-4.2.tar.gz:
Publisher:
publish.yml on princezuda/safestclaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safestclaw-4.2.tar.gz -
Subject digest:
7ca50367094fd2133a77a940fdb7cecf0841e8b4d7b4f35b14169e1d986b17d1 - Sigstore transparency entry: 1465555876
- Sigstore integration time:
-
Permalink:
princezuda/safestclaw@88bc2d1c6246a5ac8eb79f51e51df6f44b56b240 -
Branch / Tag:
refs/tags/4.2.1 - Owner: https://github.com/princezuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@88bc2d1c6246a5ac8eb79f51e51df6f44b56b240 -
Trigger Event:
push
-
Statement type:
File details
Details for the file safestclaw-4.2-py3-none-any.whl.
File metadata
- Download URL: safestclaw-4.2-py3-none-any.whl
- Upload date:
- Size: 297.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b4920da34ffd8b6366415c17c074c8f36aecbaf7e43db7593719f446acebe9c
|
|
| MD5 |
e6f60eb42f637d2c5c287fa09931b9ea
|
|
| BLAKE2b-256 |
9fd9e6f72a5baae2924fa5f6de1b13865f42c5f0970050df9c78001c3130fed6
|
Provenance
The following attestation bundles were made for safestclaw-4.2-py3-none-any.whl:
Publisher:
publish.yml on princezuda/safestclaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safestclaw-4.2-py3-none-any.whl -
Subject digest:
4b4920da34ffd8b6366415c17c074c8f36aecbaf7e43db7593719f446acebe9c - Sigstore transparency entry: 1465555970
- Sigstore integration time:
-
Permalink:
princezuda/safestclaw@88bc2d1c6246a5ac8eb79f51e51df6f44b56b240 -
Branch / Tag:
refs/tags/4.2.1 - Owner: https://github.com/princezuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@88bc2d1c6246a5ac8eb79f51e51df6f44b56b240 -
Trigger Event:
push
-
Statement type: