<?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: Nilay Baranwal</title>
    <description>The latest articles on DEV Community by Nilay Baranwal (@alphasr).</description>
    <link>https://dev.to/alphasr</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3401297%2Ff5f7b2de-f4f6-49e5-a286-b54316007921.png</url>
      <title>DEV Community: Nilay Baranwal</title>
      <link>https://dev.to/alphasr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alphasr"/>
    <language>en</language>
    <item>
      <title>I Built ChatVault: An Open Source Plugin to Back Up Your AI Chat History</title>
      <dc:creator>Nilay Baranwal</dc:creator>
      <pubDate>Wed, 28 Oct 2026 15:43:57 +0000</pubDate>
      <link>https://dev.to/alphasr/i-built-chatvault-an-open-source-plugin-to-back-up-your-ai-chat-history-3ki</link>
      <guid>https://dev.to/alphasr/i-built-chatvault-an-open-source-plugin-to-back-up-your-ai-chat-history-3ki</guid>
      <description>&lt;p&gt;&lt;strong&gt;Claude Code deletes your local session transcripts after 30 days by default.&lt;/strong&gt; That is the &lt;code&gt;cleanupPeriodDays&lt;/code&gt; setting, and most people only find out after a chat they needed is gone.&lt;/p&gt;

&lt;p&gt;Months of my real work live in AI conversations: architecture decisions, long debugging sessions in Claude Code, and product ideas I worked out late at night in ChatGPT. That history was spread across Claude Code, Codex, Gemini CLI, ChatGPT and claude.ai, each with its own format and retention rules. None of it was really mine.&lt;/p&gt;

&lt;p&gt;Everyone says to export your history regularly. I never did, and I doubt you do either. So I built a tool that does it for me, and made it open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Meet ChatVault
&lt;/h2&gt;

&lt;p&gt;ChatVault is an open source plugin (MIT) that backs up your AI conversations automatically into a folder you own. It runs on a schedule you choose and writes everything in one open format that any agent, script or person can read.&lt;/p&gt;

&lt;p&gt;It works with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code, including subagent sessions&lt;/li&gt;
&lt;li&gt;OpenAI Codex CLI&lt;/li&gt;
&lt;li&gt;Gemini CLI&lt;/li&gt;
&lt;li&gt;ChatGPT and claude.ai, through their official data exports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On my machine, the first run saved 83 sessions, about 13,000 messages and 37 MB of history.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. One open format for every AI tool
&lt;/h3&gt;

&lt;p&gt;Each source has a small adapter that reads that agent's local session files or the vendor's export zip. Every adapter converts the data into the Open Chat Archive (OCA v1) format: simple JSON where a conversation holds messages, and each message holds blocks (text, thinking, tool calls, tool results). A Markdown copy is saved next to every JSON file, so you can open your history in any editor or in Obsidian.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Automatic backups you never think about
&lt;/h3&gt;

&lt;p&gt;ChatVault installs as a plugin. Session hooks run a quiet, non-blocking backup when an agent session starts or ends. For the hours when no agent is open, an optional OS scheduler (launchd, cron or Task Scheduler) takes over. You pick the frequency: after each session, hourly, daily, weekly or manual.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Nothing is ever lost
&lt;/h3&gt;

&lt;p&gt;The vault only grows. If a conversation upstream gets shorter or disappears, ChatVault keeps the fuller version. Backups are incremental, so they are fast. Turn on git and every backup that changes something becomes a commit, giving you full history and point-in-time restore.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Search your history from any agent
&lt;/h3&gt;

&lt;p&gt;ChatVault ships an MCP server with tools like &lt;code&gt;search_history&lt;/code&gt;, &lt;code&gt;get_conversation&lt;/code&gt; and &lt;code&gt;list_conversations&lt;/code&gt;. Cursor can search something you discussed in Claude Code, and Gemini can pull up an idea you worked out in ChatGPT. Your context is no longer locked inside one vendor.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Private by default
&lt;/h3&gt;

&lt;p&gt;Everything stays on your machine unless you add a private git remote or point the vault at iCloud or Dropbox. Common API key formats (OpenAI, Anthropic, GitHub, AWS, Slack and others) are redacted before anything is written.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Zero dependencies
&lt;/h3&gt;

&lt;p&gt;Plain Node 18 or later. No npm install, no supply chain surprises.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;

&lt;p&gt;In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add alphasr/chatvault
/plugin install chatvault@chatvault
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anywhere else:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx chatvault init
npx chatvault schedule &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first command creates your vault at &lt;code&gt;~/ChatVault&lt;/code&gt; and runs the first backup. The second adds an OS job so backups run even when no agent is open. There are also manifests for Codex, Cursor and Gemini CLI.&lt;/p&gt;

&lt;p&gt;For ChatGPT and claude.ai, request your data export once a month and leave the zip in Downloads. ChatVault finds it and imports it on the next run, writing only new and changed conversations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open source
&lt;/h2&gt;

&lt;p&gt;Owning your data only works if the format is open. A backup that needs one company's tool to read it just moves the lock-in somewhere else. OCA v1 is documented in the repo, and every file in the vault can be read without ChatVault.&lt;/p&gt;

&lt;p&gt;Adapters for Cursor, Windsurf, Copilot Chat, Cline and Aider are open for contributions. If you use one of those tools, a PR is very welcome.&lt;/p&gt;

&lt;p&gt;Your conversations hold your decisions and fixes, so you should keep your own copy.&lt;/p&gt;

&lt;p&gt;⭐ GitHub: &lt;a href="https://github.com/alphasr/chatvault" rel="noopener noreferrer"&gt;github.com/alphasr/chatvault&lt;/a&gt;&lt;br&gt;
📦 npm: &lt;a href="https://www.npmjs.com/package/chatvault" rel="noopener noreferrer"&gt;npmjs.com/package/chatvault&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How do you keep your AI history today, or do you?&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>opensource</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Nilay Baranwal</dc:creator>
      <pubDate>Thu, 06 Nov 2025 01:31:36 +0000</pubDate>
      <link>https://dev.to/alphasr/-365g</link>
      <guid>https://dev.to/alphasr/-365g</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/alphasr" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3401297%2Ff5f7b2de-f4f6-49e5-a286-b54316007921.png" alt="alphasr"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/alphasr/ai-converts-better-4nn1" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;AI Converts Better&lt;/h2&gt;
      &lt;h3&gt;Nilay Baranwal ・ Nov 6&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#seo&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#marketing&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#ai&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#b2bsaas&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>seo</category>
      <category>marketing</category>
      <category>ai</category>
      <category>b2bsaas</category>
    </item>
    <item>
      <title>AI Converts Better</title>
      <dc:creator>Nilay Baranwal</dc:creator>
      <pubDate>Thu, 06 Nov 2025 01:30:48 +0000</pubDate>
      <link>https://dev.to/alphasr/ai-converts-better-4nn1</link>
      <guid>https://dev.to/alphasr/ai-converts-better-4nn1</guid>
      <description>&lt;p&gt;Recent analyses from Semrush and &lt;a href="https://ahrefs.com/blog/ai-search-traffic-conversions-ahrefs/" rel="noopener noreferrer"&gt;Ahrefs&lt;/a&gt; show that visitors coming from AI assistants convert at higher rates than those from organic search.&lt;br&gt;
In one study, AI-driven visitors showed a 10% conversion rate, compared to 2% from traditional organic search — roughly a 4.4× lift.&lt;/p&gt;

&lt;p&gt;Users arriving through AI have already compared options, read summaries and clarified their preferences within a conversation.&lt;br&gt;
Visits to your brand’s website often serve as a final validation step rather than the start of research.&lt;/p&gt;

&lt;p&gt;This shift means discovery and decision-making are now blending. Instead of multiple clicks and touchpoints, buyers make up their minds within a single conversational flow. The clearer your brand information is inside those AI systems, the more likely it becomes part of that decision context.&lt;/p&gt;

&lt;p&gt;To adapt, brands need content that is structured, citable, and trustworthy — data that AI assistants can reference confidently.&lt;br&gt;
When assistants describe your brand accurately, they don’t just improve visibility; they improve the buyer’s experience of trust.&lt;/p&gt;

&lt;p&gt;What story is AI already telling about your brand? Check out your brand summary at &lt;a href="https://orvio.ai/" rel="noopener noreferrer"&gt;orvio&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopnv3b8aml4px1s5pt86.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopnv3b8aml4px1s5pt86.png" alt="Stats or how AI converts better" width="800" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>marketing</category>
      <category>ai</category>
      <category>b2bsaas</category>
    </item>
  </channel>
</rss>
