<?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: Benjamin Wagner</title>
    <description>The latest articles on DEV Community by Benjamin Wagner (@benji_wagner).</description>
    <link>https://dev.to/benji_wagner</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%2F3846285%2Ff6e3faae-e195-4a73-8493-86ff02d43781.jpg</url>
      <title>DEV Community: Benjamin Wagner</title>
      <link>https://dev.to/benji_wagner</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benji_wagner"/>
    <language>en</language>
    <item>
      <title>I self-hosted a CRM and Claude Code set up a sales pipeline in 58 seconds. Here's what MCP got right and wrong</title>
      <dc:creator>Benjamin Wagner</dc:creator>
      <pubDate>Thu, 19 Nov 2026 15:30:48 +0000</pubDate>
      <link>https://dev.to/benji_wagner/i-self-hosted-a-crm-and-claude-code-set-up-a-sales-pipeline-in-58-seconds-heres-what-mcp-got-3op9</link>
      <guid>https://dev.to/benji_wagner/i-self-hosted-a-crm-and-claude-code-set-up-a-sales-pipeline-in-58-seconds-heres-what-mcp-got-3op9</guid>
      <description>&lt;p&gt;I gave Claude Code one prompt against a CRM running on my own server. 58 seconds later there was a Deals list with five demo deals in EUR, and a board grouped by stage. This post walks through that run: the install, the MCP connection, the prompt, the calls, and what you don't get when you self-host.&lt;/p&gt;

&lt;p&gt;It is one run with Claude Code on Sonnet, not a benchmark. The deals are demo data.&lt;/p&gt;

&lt;p&gt;Context: Customermates is an open-source CRM that helps a small team follow up on every client conversation. On the cloud you connect LinkedIn and email, and Mate or your own AI agent drafts each reply and the next step for you to review and send. This post is about the open-source side: self-hosting it and letting your own agent set it up over MCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;p&gt;Docker with Compose and Claude Code. The same x-api-key header is the route for other local clients such as Claude Desktop, Codex, Cursor and Gemini CLI, but I only recorded Claude Code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir customermates &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; customermates
&lt;span class="nv"&gt;R&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://raw.githubusercontent.com/customermates/customermates/main
curl -fsSLO &lt;span class="nv"&gt;$R&lt;/span&gt;/docker-compose.yml
curl -fsSL &lt;span class="nv"&gt;$R&lt;/span&gt;/.env.selfhost.template -o .env
sed -i &lt;span class="s2"&gt;"s/change-this-password/$(openssl rand -hex 16)/"&lt;/span&gt; .env
sed -i &lt;span class="s2"&gt;"s/change-this-to-a-long-random-secret/$(openssl rand -hex 32)/"&lt;/span&gt; .env
docker compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two files, two generated secrets, one command. (&lt;code&gt;sed -i&lt;/code&gt; as written is GNU sed; on macOS use &lt;code&gt;sed -i ''&lt;/code&gt;.) Compose starts two containers, &lt;code&gt;postgres:16-alpine&lt;/code&gt; and &lt;code&gt;ghcr.io/customermates/customermates:latest&lt;/code&gt;, and migrations run on every start. The docs say the first start takes about a minute. Mine was ready in seconds because the images were already pulled.&lt;/p&gt;

&lt;p&gt;Follow it with &lt;code&gt;docker compose logs -f app&lt;/code&gt;. In my run the log showed one &lt;code&gt;P1001: Can't reach database server&lt;/code&gt; error first, because the app container came up before Postgres. Then the migrations applied and Next.js printed &lt;code&gt;Ready in 101ms&lt;/code&gt;. The sign-up page answered with HTTP 200.&lt;/p&gt;

&lt;p&gt;One setting to know about: &lt;code&gt;RESEND_API_KEY&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt;. Email goes out through Resend only, there is no SMTP option. Without a key, accounts work for 24 hours and then wait for email verification.&lt;/p&gt;

&lt;p&gt;Open &lt;a href="http://localhost:4000" rel="noopener noreferrer"&gt;http://localhost:4000&lt;/a&gt;, sign up and create a workspace. A new self-hosted workspace starts with no lists at all. That matters for the prompt below: Claude starts from an empty model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect Claude Code
&lt;/h2&gt;

&lt;p&gt;Create an API key in the app (it is shown once, so copy it), then add the MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http customermates http://localhost:4000/api/v1/mcp --header &lt;span class="s2"&gt;"x-api-key: &amp;lt;your key&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The endpoint is &lt;code&gt;&amp;lt;BASE_URL&amp;gt;/api/v1/mcp&lt;/code&gt;. Local clients send the key in &lt;code&gt;x-api-key&lt;/code&gt;. OAuth for cloud connectors needs a public HTTPS &lt;code&gt;BASE_URL&lt;/code&gt;, so on localhost the key is the way in. The model is yours: external clients use your own AI provider, and Customermates does not bring one along.&lt;/p&gt;

&lt;h2&gt;
  
  
  The prompt
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Set up a deal pipeline for my design studio: a board by stage and five demo deals with values in EUR, spread across the stages.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is all I typed. No schema, no stage names.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Claude did
&lt;/h2&gt;

&lt;p&gt;Apart from some read calls at the start and a read-back at the end, the writes were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;configure_record_model&lt;/code&gt; created a Deals list. In my run Claude previewed the change first, then applied the same one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;mutate_crm_record&lt;/code&gt;, five times, one deal each, spread from Lead to Won.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;manage_data_views&lt;/code&gt; created a view called Pipeline, a board grouped by stage.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wall clock for the whole thing was 58 seconds. Claude's closing message said it had used five stages with no Lost stage, and offered to add one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is in the self-hosted build, and what is not
&lt;/h2&gt;

&lt;p&gt;Self-hosted runs the CRM core, always. These work: lists and views, Excel import and export, Configure (lists, fields, relationships, calculations), dashboard widgets, members and roles, the Activity log, REST, webhooks and MCP.&lt;/p&gt;

&lt;p&gt;These are cloud only and switched off: connected messaging accounts (email, LinkedIn, WhatsApp, Instagram, Telegram), the unified inbox, connected calendars, Mate (the hosted assistant) and its credits, routines and the AI workspace setup. The MCP docs say up to 59 tools on the cloud. A self-hosted one drops the messaging, social and routine tools, so I won't quote a number for it.&lt;/p&gt;

&lt;p&gt;The license is open core. Files outside &lt;code&gt;ee/&lt;/code&gt; are AGPL-3.0-only. &lt;code&gt;ee/&lt;/code&gt; is under the Customermates Commercial License, which allows running the official image self-hosted, also in production, as a Community Build with the cloud-only features off. Contributions go through a CLA (&lt;code&gt;.github/CLA.md&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;On telemetry, only this much is true: the published image turns off Next.js and Prisma telemetry and sets no error-reporting address, and a GeoNames postal-code file is downloaded on first use unless you set &lt;code&gt;POSTAL_CODE_DATA_URL=off&lt;/code&gt;. It is not an air-gapped build, and your AI client sends whatever it reads to your AI provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  About safety
&lt;/h2&gt;

&lt;p&gt;The MCP server instructions ask clients to confirm before deleting or sending. That is guidance to the client, not a gate the server enforces. Approvals that the server enforces exist in Mate, and Mate is cloud only. If you point an agent at a self-hosted instance, the confirmation you get is whatever your client does, for instance Claude Code's permission prompts. I used demo data for exactly this reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;58 seconds is the time of the recorded run, not an average. Another run may take longer or shorter, and I did not collect a spread.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A one-sentence prompt gets you a reasonable first draft of a model, not the model. Claude chose five stages and no Lost stage, and I would not leave that unreviewed on real data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The configure tool has a preview step and Claude used it before changing anything. If you build your own agent workflow around a tool like that, keep the preview.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An empty start is both a feature and a cost. Nothing is predefined, so your agent or you must say what a "deal" is. The cloud's AI workspace setup is not in the self-hosted build.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where this doesn't apply
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;On real customer data: a one-sentence prompt gives you a first draft of a data model, not the model. Review it before you load anything real.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Destructive actions: the server asks clients to confirm deletes, but on a self-hosted instance the only enforced confirmation is your MCP client's permission prompt.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The inbox, connected accounts, calendars, Mate and routines: cloud only, so the follow-up drafting itself is not part of what you self-host.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does it need the cloud?&lt;/strong&gt; No. The core runs on your server with docker compose; nothing phones home beyond an optional postal-code file. &lt;strong&gt;Which AI provider?&lt;/strong&gt; Whatever your MCP client uses. The CRM doesn't call a model itself when self-hosted. &lt;strong&gt;Other clients than Claude Code?&lt;/strong&gt; The same x-api-key header works for Claude Desktop, Codex, Cursor and Gemini CLI; I only recorded Claude Code. &lt;strong&gt;Is 58 seconds a benchmark?&lt;/strong&gt; No, one recorded run on demo data.&lt;/p&gt;

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

&lt;p&gt;Repo: &lt;a href="https://github.com/customermates/customermates" rel="noopener noreferrer"&gt;https://github.com/customermates/customermates&lt;/a&gt;&lt;br&gt;
Self-hosting guide: &lt;a href="https://customermates.com/docs/self-hosting" rel="noopener noreferrer"&gt;https://customermates.com/docs/self-hosting&lt;/a&gt;&lt;br&gt;
Demo with no signup, demo data: &lt;a href="https://demo.customermates.com" rel="noopener noreferrer"&gt;https://demo.customermates.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm Ben and I build Customermates, an open-source CRM for following up on client conversations. Where would you put the confirmation for destructive agent actions: in the client, or enforced by the server?&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>How I track downloads of 18 AI agent frameworks every month (npm, PyPI and GitHub stars)</title>
      <dc:creator>Benjamin Wagner</dc:creator>
      <pubDate>Thu, 12 Nov 2026 17:06:06 +0000</pubDate>
      <link>https://dev.to/benji_wagner/how-i-track-downloads-of-18-ai-agent-frameworks-every-month-npm-pypi-and-github-stars-4ofb</link>
      <guid>https://dev.to/benji_wagner/how-i-track-downloads-of-18-ai-agent-frameworks-every-month-npm-pypi-and-github-stars-4ofb</guid>
      <description>&lt;p&gt;I wanted a number for a question everyone argues about: which agent frameworks are people actually installing? So I built a small crawler that runs once a month and publishes the result as open data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;npm: the public downloads API (api.npmjs.org/downloads/range), daily counts per package.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PyPI: ClickHouse's public PyPI dataset, which goes back to 2023. pypistats.org only keeps 180 days.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;GitHub: stars, forks and open issues from the REST API, one snapshot a day.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it showed
&lt;/h2&gt;

&lt;p&gt;In October the MCP SDK was downloaded 574 million times, LangChain 178 million. A year earlier it was the other way round. MCP passed LangChain in March 2026. The Claude Agent SDK went from 1.4 million to 88 million.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gotchas
&lt;/h2&gt;

&lt;p&gt;Downloads count installs, including CI runs, not people. npm and PyPI count differently, and mirrors inflate PyPI unless you exclude them.&lt;/p&gt;

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

&lt;p&gt;One Python script, one systemd timer and a CSV in a public repo.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/customermates/data-agent-index" rel="noopener noreferrer"&gt;https://github.com/customermates/data-agent-index&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What would you add to the list?&lt;/p&gt;

&lt;p&gt;(Drafted with AI assistance.)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>datascience</category>
    </item>
    <item>
      <title>I built Customermates, a selfhostable, opensource Pipedrive CRM replacement</title>
      <dc:creator>Benjamin Wagner</dc:creator>
      <pubDate>Fri, 27 Mar 2026 13:27:16 +0000</pubDate>
      <link>https://dev.to/benji_wagner/i-built-customermates-a-self-hostable-opensource-pipedrive-crm-replacement-1c56</link>
      <guid>https://dev.to/benji_wagner/i-built-customermates-a-self-hostable-opensource-pipedrive-crm-replacement-1c56</guid>
      <description>&lt;p&gt;I built Customermates because I was unhappy with existing CRM tools. Pipedrive and HubSpot felt too hard to use, while the open-source alternatives I tried were missing important features I wanted.&lt;/p&gt;

&lt;p&gt;With workflow automation and AI agents becoming more capable, many traditional enterprise CRMs feel too expensive, too complex, or simply behind. What teams really need is a trustworthy, simple master system of record that focuses on integrations, flexibility, and getting out of the way.&lt;/p&gt;

&lt;p&gt;Github repo: &lt;a href="https://github.com/customermates/customermates" rel="noopener noreferrer"&gt;https://github.com/customermates/customermates&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://customermates.com" rel="noopener noreferrer"&gt;https://customermates.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Self-host docs: &lt;a href="https://customermates.com/docs/self-hosting" rel="noopener noreferrer"&gt;https://customermates.com/docs/self-hosting&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every ⭐ helps. Feedback is greatly appreciated.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>startup</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
