<?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: Alfred M</title>
    <description>The latest articles on DEV Community by Alfred M (@alfred_m_6baabea91fac7832).</description>
    <link>https://dev.to/alfred_m_6baabea91fac7832</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%2F3910232%2F4c0175dc-c44f-412c-a7b5-18ec35d530b5.jpg</url>
      <title>DEV Community: Alfred M</title>
      <link>https://dev.to/alfred_m_6baabea91fac7832</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alfred_m_6baabea91fac7832"/>
    <language>en</language>
    <item>
      <title>Per-Customer Cost Tracking for LLM SaaS: Know Your Margins Before They Disappear</title>
      <dc:creator>Alfred M</dc:creator>
      <pubDate>Mon, 04 May 2026 19:14:15 +0000</pubDate>
      <link>https://dev.to/alfred_m_6baabea91fac7832/per-customer-cost-tracking-for-llm-saas-know-your-margins-before-they-disappear-34fg</link>
      <guid>https://dev.to/alfred_m_6baabea91fac7832/per-customer-cost-tracking-for-llm-saas-know-your-margins-before-they-disappear-34fg</guid>
      <description>&lt;h1&gt;
  
  
  Per-Customer Cost Tracking for LLM SaaS: Know Your Margins Before They Disappear
&lt;/h1&gt;

&lt;p&gt;If you are building a SaaS product on top of LLMs or third-party APIs, your costs are not fixed. What you might not know is which customers are responsible for the expensive ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Most small teams have a rough idea of their total API costs. Fewer have visibility into per-customer margins. Your API provider dashboard and Stripe do not talk to each other, and neither answers the question you actually need: what did it cost me to serve customer X this billing period, by feature?&lt;/p&gt;

&lt;p&gt;Without that number, usage-based pricing is guesswork.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Existing Tools Fall Short
&lt;/h2&gt;

&lt;p&gt;OpenMeter and Lago are solid open-source metered billing tools, but they are designed to bill outward to customers and require infrastructure like Kafka and ClickHouse that is hard to justify for a small team.&lt;/p&gt;

&lt;p&gt;Stripe tells you revenue per customer. It cannot tell you margin per customer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Per-Customer Attribution Looks Like
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Every API call is tagged with a customer ID and a feature name&lt;/li&gt;
&lt;li&gt;You define cost rules per feature, for example 0.01 USD per 1000 tokens for GPT-4o&lt;/li&gt;
&lt;li&gt;Costs accumulate in real time giving you live margin per customer and per feature&lt;/li&gt;
&lt;li&gt;Alerts fire when a customer crosses a cost threshold before the billing cycle ends&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://usagemeter.vercel.app" rel="noopener noreferrer"&gt;UsageMeter&lt;/a&gt; is built around this model. A REST API and TypeScript SDK, a few hours to integrate, no infrastructure to babysit. 29 GBP per month.&lt;/p&gt;

&lt;p&gt;If you have never verified your pricing actually covers your costs per customer, it is worth finding out before you subsidise someone for six months without realising it.&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Convert PDF Invoices to Excel Automatically</title>
      <dc:creator>Alfred M</dc:creator>
      <pubDate>Mon, 04 May 2026 19:05:57 +0000</pubDate>
      <link>https://dev.to/alfred_m_6baabea91fac7832/how-to-convert-pdf-invoices-to-excel-automatically-45oh</link>
      <guid>https://dev.to/alfred_m_6baabea91fac7832/how-to-convert-pdf-invoices-to-excel-automatically-45oh</guid>
      <description>&lt;h1&gt;
  
  
  How to Convert PDF Invoices to Excel Automatically
&lt;/h1&gt;

&lt;p&gt;If you run a small business and handle your own bookkeeping, there is a good chance that somewhere in your monthly routine you are manually copying supplier invoices into a spreadsheet. Supplier name. Date. Line items. Tax. Total. Next invoice.&lt;/p&gt;

&lt;p&gt;This is one of those tasks that should have been automated years ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why It Is Harder Than It Looks
&lt;/h2&gt;

&lt;p&gt;At ten invoices a month, manual entry is annoying but manageable. At fifty or a hundred, it consumes real time and introduces errors. A transposed total or missed line item creates headaches when your books do not reconcile at quarter end.&lt;/p&gt;

&lt;p&gt;The core problem is that supplier invoices are unstructured. Every supplier has their own layout and field labels. That inconsistency is what makes automated extraction genuinely difficult.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Options (and Why Most Fall Short)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Basic OCR tools&lt;/strong&gt; return raw text. You still have to parse the fields yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Enterprise document processing platforms&lt;/strong&gt; handle structured extraction but are built for large organisations with dedicated teams and budgets to match.&lt;/p&gt;

&lt;p&gt;Neither makes sense for a sole trader or small business.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Works
&lt;/h2&gt;

&lt;p&gt;Drag in a batch of PDF or image invoices. AI extracts the structured fields: supplier, date, line items, tax, totals. Export a clean Excel or CSV in one click.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://parsepoint.vercel.app" rel="noopener noreferrer"&gt;ParsePoint&lt;/a&gt; does this with a column template system to match your own spreadsheet layout, and a supplier memory feature that learns each vendor format over time. 19 GBP per month with a free tier. Built for sole traders, freelancers, and small ecommerce businesses.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>saas</category>
      <category>business</category>
      <category>automation</category>
    </item>
    <item>
      <title>Claude Code Approval Gates: Keep a Human in the Loop When AI Agents Run Shell Commands</title>
      <dc:creator>Alfred M</dc:creator>
      <pubDate>Mon, 04 May 2026 19:05:21 +0000</pubDate>
      <link>https://dev.to/alfred_m_6baabea91fac7832/claude-code-approval-gates-keep-a-human-in-the-loop-when-ai-agents-run-shell-commands-5cp2</link>
      <guid>https://dev.to/alfred_m_6baabea91fac7832/claude-code-approval-gates-keep-a-human-in-the-loop-when-ai-agents-run-shell-commands-5cp2</guid>
      <description>&lt;h1&gt;
  
  
  Claude Code Approval Gates: Keep a Human in the Loop
&lt;/h1&gt;

&lt;p&gt;AI coding agents like Claude Code, Codex CLI, and Cursor are becoming standard in engineering workflows — writing migrations, cleaning directories, running database operations, often with minimal oversight.&lt;/p&gt;

&lt;p&gt;That is mostly fine. Until it is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: Confidence Without Brakes
&lt;/h2&gt;

&lt;p&gt;The risk is not malice, it is confidence. Claude Code suggests &lt;code&gt;DROP TABLE users&lt;/code&gt; in the same tone it uses to rename a variable. If you are not watching when it runs, you find out later.&lt;/p&gt;

&lt;p&gt;Most teams have no formal process for approving destructive commands — they rely on whoever is at the keyboard to catch problems in real time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Commands Need a Pause Button
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt;, &lt;code&gt;DELETE FROM&lt;/code&gt; database operations&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rm -rf&lt;/code&gt; recursive deletion&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push --force&lt;/code&gt; or direct pushes to main&lt;/li&gt;
&lt;li&gt;Anything touching &lt;code&gt;.env&lt;/code&gt; files or production credentials&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How AgentGate Works
&lt;/h2&gt;

&lt;p&gt;A proxy CLI sits between your agent and the shell. Low-risk commands pass through. Anything matching a configurable regex ruleset pauses and routes an approval request to a web dashboard or Slack. One click to approve or reject. Everything logged: exact command, session, approver, timestamp.&lt;/p&gt;

&lt;p&gt;Strict rules for prod, relaxed for dev. Role-based team permissions. Works with Claude Code, Codex, Cursor, or anything that shells out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://agentgate.vercel.app" rel="noopener noreferrer"&gt;AgentGate&lt;/a&gt; — 49 GBP per month. If your AI coding workflows touch production and your current safety plan is someone was watching, this is for you.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>saas</category>
      <category>devtools</category>
      <category>security</category>
    </item>
  </channel>
</rss>
