DEV Community

Cover image for Building an Indian Privacy-First Autonomous AI CLI Agent with Background Automation (SamarthyaBot)
Bishnu Prasad Sahu
Bishnu Prasad Sahu

Posted on

Building an Indian Privacy-First Autonomous AI CLI Agent with Background Automation (SamarthyaBot)

When I started building SamarthyaBot, I wasn’t interested in making another website. Websites are easy. What fascinated me was something harder — building a real autonomous AI system that can act, not just respond.

SamarthyaBot is a privacy-first, local AI CLI agent designed to execute real OS-level actions with background automation, encrypted memory, and dynamic plugins.

This isn’t a chatbot wrapper.
It’s an AI operator.

What Makes It Different?

Most AI tools:

  • Run in the cloud
  • Only generate text
  • Have limited real-world execution

SamarthyaBot can:

  • Execute terminal commands (with permission control)
  • Read/write local files
  • Schedule background tasks (cron-style AI engine)
  • Send emails
  • Generate UPI deep-links
  • Take system screenshots
  • Run Telegram-controlled automation remotely
  • Load external plugins dynamically
  • Encrypt sensitive memory using AES-256
  • Switch between multiple LLM providers (Gemini, Claude, OpenAI, Groq, Ollama)

It runs even when I’m not actively using it.

🔄 Background Autonomous Engine

You can tell it:

“Check my server every 30 minutes and notify me if it goes down.”
And it will silently monitor in the background and only alert you when needed.

No babysitting required.
It feels like having a remote AI employee.

🔌 Plugin-Based Architecture

SamarthyaBot supports dynamic plugin loading.
Any developer can drop a JS file into the plugins folder, and the system auto-loads it at startup.

This turns the agent into a platform — not just a tool.

🔐 Privacy & Security First

Sensitive data like API keys, passwords, or bank details are:

  • Automatically masked before LLM processing
  • Encrypted using AES-256-CBC
  • Stored securely in MongoDB

High-risk actions require explicit user permission (Ask / Always / Never model).

📲 Remote Control via Telegram

One of my favorite features:

I can message the bot on Telegram from anywhere, and even if my laptop is miles away, it can:

  • Manage files
  • Run commands
  • Monitor systems
  • Execute background tasks
  • Send alerts

It feels like having a remote AI employee.

Github: https://github.com/mebishnusahu0595/SamarthyaBot
Npm : https://www.npmjs.com/package/samarthya-bot

Top comments (1)

Collapse
 
c_nguynnh_85e04737d profile image
Đức Nguyễn ĐÌnh

Quick personal review of AhaChat after trying it
I recently tried AhaChat to set up a chatbot for a small Facebook page I manage, so I thought I’d share my experience.
I don’t have any coding background, so ease of use was important for me. The drag-and-drop interface was pretty straightforward, and creating simple automated reply flows wasn’t too complicated. I mainly used it to handle repetitive questions like pricing, shipping fees, and business hours, which saved me a decent amount of time.
I also tested a basic flow to collect customer info (name + phone number). It worked fine, and everything is set up with simple “if–then” logic rather than actual coding.
It’s not an advanced AI that understands everything automatically — it’s more of a rule-based chatbot where you design the conversation flow yourself. But for basic automation and reducing manual replies, it does the job.
Overall thoughts:
Good for small businesses or beginners
Easy to set up
No technical skills required
I’m not affiliated with them — just sharing in case someone is looking into chatbot tools for simple automation.
Curious if anyone else here has tried it or similar platforms — what was your experience?