<?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: suman raj</title>
    <description>The latest articles on DEV Community by suman raj (@suman_raj_17).</description>
    <link>https://dev.to/suman_raj_17</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%2F4250279%2F5e2815ac-23d9-4cac-8881-080c4c4f290e.png</url>
      <title>DEV Community: suman raj</title>
      <link>https://dev.to/suman_raj_17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suman_raj_17"/>
    <language>en</language>
    <item>
      <title>How I Scrub API Keys Locally and Cut AI Token Bloat Inside Browser Prompt Boxes</title>
      <dc:creator>suman raj</dc:creator>
      <pubDate>Tue, 17 Nov 2026 17:18:58 +0000</pubDate>
      <link>https://dev.to/suman_raj_17/how-i-scrub-api-keys-locally-and-cut-ai-token-bloat-inside-browser-prompt-boxes-4k1p</link>
      <guid>https://dev.to/suman_raj_17/how-i-scrub-api-keys-locally-and-cut-ai-token-bloat-inside-browser-prompt-boxes-4k1p</guid>
      <description>&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.enginenear.com/" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;enginenear.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;a href="https://www.enginenear.com/" rel="noopener noreferrer"&gt;EngineNear&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every time I’m stuck debugging an Axios error dump or pasting &lt;code&gt;.env&lt;/code&gt; snippets into ChatGPT, Claude, or Perplexity, I catch myself nearly leaking a &lt;code&gt;Bearer&lt;/code&gt; token, &lt;code&gt;sk-&lt;/code&gt; key, or internal secret in the stack trace.&lt;/p&gt;

&lt;p&gt;Even when I manually strip out the secrets, my rushed prompt is usually bloated—wasting tokens and forcing 3–4 follow-up messages just to get a usable fix.&lt;/p&gt;

&lt;p&gt;To solve both problems right inside the workflow, I built &lt;strong&gt;&lt;a href="https://enginenear.com" rel="noopener noreferrer"&gt;EngineNear&lt;/a&gt;&lt;/strong&gt;, a lightweight, local-first Chrome extension that sits directly inside browser AI prompt boxes.&lt;/p&gt;

&lt;h3&gt;
  
  
  How It Works Under the Hood
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;100% Local Secret &amp;amp; PII Firewall:&lt;/strong&gt; Combines known vendor prefixes (&lt;code&gt;sk-&lt;/code&gt;, &lt;code&gt;ghp_&lt;/code&gt;, &lt;code&gt;AKIA&lt;/code&gt;, JWTs, &lt;code&gt;Bearer&lt;/code&gt; headers) with Shannon entropy checks to mask sensitive credentials &lt;em&gt;on your machine&lt;/em&gt; before anything ever touches the network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline Prompt Structuring:&lt;/strong&gt; Compresses messy pasted error logs or half-baked thoughts into a structured, token-efficient prompt in one click.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Server Logging:&lt;/strong&gt; All secret detection and scrubbing run locally in your browser—nothing is sent to an external backend.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Quick Before / After Example
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before (78 tokens + leaked Bearer token):&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;hey why is this failing axios 401 Authorization: Bearer eyJhbGciOiJIUzI1NiIs... here is my code fix it pls&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;After (34 tokens, scrubbed locally):&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;Debug an HTTP 401 Unauthorized response in an Axios request (Authorization: [REDACTED_BEARER_TOKEN]). Identify common header, token expiry, or CORS causes and provide a fix.&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Try It &amp;amp; Share Feedback
&lt;/h3&gt;

&lt;p&gt;You can test the free Chrome extension here: &lt;strong&gt;&lt;a href="https://enginenear.com" rel="noopener noreferrer"&gt;EngineNear&lt;/a&gt;&lt;/strong&gt; (and if you're on Peerlist, we're also live on this week's Launchpad!).&lt;/p&gt;

&lt;p&gt;I’d love feedback from fellow developers on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What custom regex or internal secret formats we should support next&lt;/li&gt;
&lt;li&gt;How you currently sanitize stack traces before pasting them into LLMs&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>security</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
