<?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: Himanshu Rane</title>
    <description>The latest articles on DEV Community by Himanshu Rane (@himanshurane).</description>
    <link>https://dev.to/himanshurane</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Himanshu Rane</title>
      <link>https://dev.to/himanshurane</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/himanshurane"/>
    <language>en</language>
    <item>
      <title>Buddy: A Private AI Companion Built for a Friend with Local Gemma</title>
      <dc:creator>Himanshu Rane</dc:creator>
      <pubDate>Sun, 04 Oct 2026 06:06:51 +0000</pubDate>
      <link>https://dev.to/himanshurane/buddy-a-private-ai-companion-built-for-a-friend-with-local-gemma-1pj4</link>
      <guid>https://dev.to/himanshurane/buddy-a-private-ai-companion-built-for-a-friend-with-local-gemma-1pj4</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Meet &lt;strong&gt;Buddy&lt;/strong&gt; — a personal AI companion I built for a friend who wanted a more natural and private way to interact with an AI assistant.&lt;/p&gt;

&lt;p&gt;Instead of relying entirely on a cloud-based AI API, Buddy uses an open-weight &lt;strong&gt;Gemma&lt;/strong&gt; model running locally through &lt;strong&gt;Ollama&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The idea was simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if you could have your own AI companion that you can talk to, ask questions, and interact with without every conversation having to leave your computer?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Buddy is designed around that idea.&lt;/p&gt;

&lt;p&gt;It provides a simple interface for interacting with the AI, while the underlying model runs locally.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why I Built It
&lt;/h1&gt;

&lt;p&gt;My friend wanted an AI assistant that felt less like a traditional chatbot and more like something they could actually interact with naturally.&lt;/p&gt;

&lt;p&gt;The main things I wanted Buddy to provide were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;💬 Natural AI conversations&lt;/li&gt;
&lt;li&gt;🤖 A local open-weight AI model&lt;/li&gt;
&lt;li&gt;🎙️ Voice interaction&lt;/li&gt;
&lt;li&gt;📁 Interaction with user-provided content&lt;/li&gt;
&lt;li&gt;🔒 A more privacy-focused approach&lt;/li&gt;
&lt;li&gt;⚡ A lightweight setup that can run on a personal computer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rather than just building another chatbot wrapper, I wanted to experiment with what a personal AI companion could look like when the AI model itself can run locally.&lt;/p&gt;

&lt;h1&gt;
  
  
  Code
&lt;/h1&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/HimanshuRane" rel="noopener noreferrer"&gt;
        HimanshuRane
      &lt;/a&gt; / &lt;a href="https://github.com/HimanshuRane/buddy-ai-companion" rel="noopener noreferrer"&gt;
        buddy-ai-companion
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The project is built with a focus on keeping the architecture simple enough to run on a personal machine.&lt;/p&gt;

&lt;h1&gt;
  
  
  How I Built It
&lt;/h1&gt;

&lt;p&gt;The core of Buddy is powered by &lt;strong&gt;Gemma&lt;/strong&gt;, an open-weight model from Google.&lt;/p&gt;

&lt;p&gt;I run Gemma locally using &lt;strong&gt;Ollama&lt;/strong&gt;, which allows the application to communicate with the model without depending on a hosted LLM API for the core AI interaction.&lt;/p&gt;

&lt;p&gt;The application layer is built using Python and Flask.&lt;/p&gt;

&lt;p&gt;The basic architecture looks like this:&lt;/p&gt;

&lt;p&gt;User&lt;br&gt;
  ↓&lt;br&gt;
Buddy Interface&lt;br&gt;
  ↓&lt;br&gt;
Flask Application&lt;br&gt;
  ↓&lt;br&gt;
Ollama&lt;br&gt;
  ↓&lt;br&gt;
Gemma&lt;br&gt;
  ↓&lt;br&gt;
AI Response&lt;/p&gt;

&lt;p&gt;I also experimented with voice interaction so that Buddy could feel more like an assistant rather than simply a text box.&lt;/p&gt;

&lt;p&gt;For voice output, I experimented with ElevenLabs to make the interaction feel more natural.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why Open Innovation Matters
&lt;/h1&gt;

&lt;p&gt;One of the biggest things I enjoyed about building Buddy was being able to experiment with an open-weight model locally.&lt;/p&gt;

&lt;p&gt;With a traditional hosted AI API, the application is heavily dependent on an external provider.&lt;/p&gt;

&lt;p&gt;Using a model such as Gemma locally changes that relationship.&lt;/p&gt;

&lt;p&gt;It gives developers more control over:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where inference happens&lt;/li&gt;
&lt;li&gt;How the application is built&lt;/li&gt;
&lt;li&gt;Experimentation with models&lt;/li&gt;
&lt;li&gt;Privacy considerations&lt;/li&gt;
&lt;li&gt;Cost and API dependency&lt;/li&gt;
&lt;li&gt;Local development&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also makes AI experimentation much more accessible.&lt;/p&gt;

&lt;p&gt;You don't necessarily need to build an application around a proprietary API to create something useful.&lt;/p&gt;

&lt;p&gt;You can take an open-weight model, run it locally, and build your own experience around it.&lt;/p&gt;

&lt;h1&gt;
  
  
  What I Learned
&lt;/h1&gt;

&lt;p&gt;Building Buddy taught me that the interesting part of AI applications isn't always the model itself.&lt;/p&gt;

&lt;p&gt;A large part of the experience comes from everything around the model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The interface&lt;/li&gt;
&lt;li&gt;Prompt design&lt;/li&gt;
&lt;li&gt;Model selection&lt;/li&gt;
&lt;li&gt;Local inference&lt;/li&gt;
&lt;li&gt;Voice interaction&lt;/li&gt;
&lt;li&gt;Application architecture&lt;/li&gt;
&lt;li&gt;Handling user input&lt;/li&gt;
&lt;li&gt;Making the experience feel natural&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also learned that running AI locally requires thinking about hardware limitations and model performance differently from using a cloud API.&lt;/p&gt;

&lt;p&gt;That made the project a useful experiment in practical local AI development.&lt;/p&gt;

&lt;h1&gt;
  
  
  What's Next
&lt;/h1&gt;

&lt;p&gt;Buddy is still an experiment, and there are several things I want to improve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better long-term memory&lt;/li&gt;
&lt;li&gt;More natural conversations&lt;/li&gt;
&lt;li&gt;Better multimodal capabilities&lt;/li&gt;
&lt;li&gt;Improved voice interaction&lt;/li&gt;
&lt;li&gt;More efficient local inference&lt;/li&gt;
&lt;li&gt;Better personalization&lt;/li&gt;
&lt;li&gt;A cleaner mobile experience&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to keep turning Buddy into something that feels less like a chatbot and more like a personal AI companion.&lt;/p&gt;

&lt;h1&gt;
  
  
  Prize Categories
&lt;/h1&gt;

&lt;p&gt;I'm submitting Buddy for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Thanks to the Hacktoberfest community for the challenge!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
