<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fahad R</title>
    <description>The latest articles on DEV Community by Fahad R (@dream_twister_4d65a3a36a4).</description>
    <link>https://dev.to/dream_twister_4d65a3a36a4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3908121%2Fb0b85388-ea90-47b6-a57f-24c86871fe7a.jpg</url>
      <title>DEV Community: Fahad R</title>
      <link>https://dev.to/dream_twister_4d65a3a36a4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dream_twister_4d65a3a36a4"/>
    <language>en</language>
    <item>
      <title>I built a self-hosted AI agent that markets itself. Here's how.</title>
      <dc:creator>Fahad R</dc:creator>
      <pubDate>Fri, 01 May 2026 20:39:30 +0000</pubDate>
      <link>https://dev.to/dream_twister_4d65a3a36a4/i-built-a-self-hosted-ai-agent-that-markets-itself-heres-how-5efc</link>
      <guid>https://dev.to/dream_twister_4d65a3a36a4/i-built-a-self-hosted-ai-agent-that-markets-itself-heres-how-5efc</guid>
      <description>&lt;p&gt;Two months ago my co-founder and I got tired of paying for AI tools &lt;br&gt;
that live on someone else's server, phone home constantly, and charge &lt;br&gt;
per seat.&lt;/p&gt;

&lt;p&gt;So we built our own.&lt;/p&gt;

&lt;p&gt;Today we're open sourcing it. It's called Daemora.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it actually does
&lt;/h2&gt;

&lt;p&gt;You install it with one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; daemora
daemora setup
daemora start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you message your Telegram or Discord bot like a teammate.&lt;/p&gt;

&lt;p&gt;This week I asked it to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Find the top 10 skipping ropes on Amazon, analyse them, 
create a Google Doc and email it to someone&lt;/li&gt;
&lt;li&gt;Research catnip, write a report, save it to my machine 
and send it to me on Telegram&lt;/li&gt;
&lt;li&gt;Fix a bug in a GitHub repo, open a PR, run the tests 
and health check the service every minute&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three worked. While I made coffee.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that surprised us most
&lt;/h2&gt;

&lt;p&gt;We thought the hard part would be the LLM integration.&lt;/p&gt;

&lt;p&gt;It wasn't.&lt;/p&gt;

&lt;p&gt;The hard part was security. When you give an AI agent access &lt;br&gt;
to your actual machine, you have to think about things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Preventing it from dumping your environment variables&lt;/li&gt;
&lt;li&gt;Stopping it from reading files outside its sandbox&lt;/li&gt;
&lt;li&gt;Stripping secrets from subprocess environments so they 
can't be leaked via executeCommand&lt;/li&gt;
&lt;li&gt;Blocking network egress if a response contains a known 
secret value&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We ended up with a 14-layer security model. AES-256-GCM &lt;br&gt;
encrypted vault, filesystem sandbox, subprocess isolation, &lt;br&gt;
egress guard, prompt injection tagging. You can run &lt;br&gt;
&lt;code&gt;daemora doctor&lt;/code&gt; for a full scored security audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing we're most proud of
&lt;/h2&gt;

&lt;p&gt;Three-layer memory.&lt;/p&gt;

&lt;p&gt;Daemora has semantic, episodic, and procedural memory with &lt;br&gt;
automatic extraction, composite-scored recall, and confidence &lt;br&gt;
decay. It learns from every task without you manually saving &lt;br&gt;
anything. Unified session across all channels - you can start &lt;br&gt;
a task on Telegram and follow up on Discord.&lt;/p&gt;

&lt;p&gt;It also has smart loop detection. If the agent starts burning &lt;br&gt;
tokens in repetitive patterns - exact repeat, ping-pong, &lt;br&gt;
semantic repeat, or polling loops - it detects and stops &lt;br&gt;
automatically. This one saved us a lot of money during &lt;br&gt;
development.&lt;/p&gt;

&lt;h2&gt;
  
  
  The meta part
&lt;/h2&gt;

&lt;p&gt;This week I gave Daemora a prompt to market itself.&lt;/p&gt;

&lt;p&gt;Set up watchers for competitor mentions. Draft Reddit posts. &lt;br&gt;
Monitor GitHub for star spikes. Send me a Telegram report &lt;br&gt;
every Friday with growth metrics. Generate short-form videos &lt;br&gt;
via the Media Studio crew and post them automatically.&lt;/p&gt;

&lt;p&gt;It's now running its own growth campaign. Autonomously. &lt;br&gt;
On my laptop.&lt;/p&gt;

&lt;p&gt;That felt like the moment we knew it was real.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's inside
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;52 built-in tools&lt;/strong&gt; - files, web, shell, email, 
scheduling, vision, media, multi-agent delegation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;20 messaging channels&lt;/strong&gt; - Telegram, Slack, Discord, 
WhatsApp, email, Signal, Teams and more&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7 AI providers&lt;/strong&gt; including Ollama - works fully local, 
no API key needed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native MCP integration&lt;/strong&gt; - GitHub, Notion, Linear, 
Postgres in one command&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media Studio crew&lt;/strong&gt; - generate AI images, videos, and 
music. Edit videos with Remotion - add captions, 
transitions, effects programmatically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider failover&lt;/strong&gt; - automatic retry with exponential 
backoff. If a provider goes down, switches automatically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three-layer memory&lt;/strong&gt; - semantic, episodic, procedural. 
Learns from every task, no manual saving needed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;60 built-in skills&lt;/strong&gt; - coding, research, email, GitHub, 
Slack, Google Workspace, macOS automation and more&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The stack if you're curious
&lt;/h2&gt;

&lt;p&gt;Runtime:    Node.js 20+ - ES modules, no build step&lt;br&gt;
AI SDK:     Vercel AI SDK - model-agnostic, 25+ providers&lt;br&gt;
Storage:    SQLite + file-based (Markdown, JSONL)&lt;br&gt;
Scheduling: croner - production-grade cron&lt;br&gt;
Vault:      Node.js crypto built-in - AES-256-GCM + scrypt&lt;br&gt;
Voice:      Twilio + OpenAI Realtime STT + ElevenLabs TTS&lt;br&gt;
Video:      Remotion - React-based programmatic video editing&lt;/p&gt;

&lt;p&gt;No Docker required. No binary dependencies for the vault. &lt;br&gt;
Runs as a system daemon on macOS, Linux, or Windows WSL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; daemora
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AGPL-3.0. Everything runs on your machine. Nothing leaves &lt;br&gt;
your infrastructure except the tokens you send to model APIs.&lt;/p&gt;

&lt;p&gt;⭐ GitHub: &lt;a href="https://github.com/CodeAndCanvasLabs/Daemora" rel="noopener noreferrer"&gt;https://github.com/CodeAndCanvasLabs/Daemora&lt;/a&gt;&lt;br&gt;&lt;br&gt;
🌐 Website: &lt;a href="https://daemora.com" rel="noopener noreferrer"&gt;https://daemora.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;
📦 npm: &lt;a href="https://npmjs.com/package/daemora" rel="noopener noreferrer"&gt;https://npmjs.com/package/daemora&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love to hear what you'd automate first — drop it &lt;br&gt;
in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>selfhosted</category>
      <category>node</category>
    </item>
  </channel>
</rss>
