<?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: Sippakorn Raksakiart</title>
    <description>The latest articles on DEV Community by Sippakorn Raksakiart (@spksoft).</description>
    <link>https://dev.to/spksoft</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%2F218460%2F8c525560-96a1-4bfe-bfe3-7f115ea71b37.jpeg</url>
      <title>DEV Community: Sippakorn Raksakiart</title>
      <link>https://dev.to/spksoft</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/spksoft"/>
    <language>en</language>
    <item>
      <title>Using Your Claude Subscription in Pi Agent — At Your Own Risk</title>
      <dc:creator>Sippakorn Raksakiart</dc:creator>
      <pubDate>Mon, 24 Aug 2026 04:06:37 +0000</pubDate>
      <link>https://dev.to/spksoft/using-your-claude-subscription-in-pi-agent-at-your-own-risk-5h1j</link>
      <guid>https://dev.to/spksoft/using-your-claude-subscription-in-pi-agent-at-your-own-risk-5h1j</guid>
      <description>&lt;p&gt;If you use &lt;a href="https://pi.dev/" rel="noopener noreferrer"&gt;Pi&lt;/a&gt; and you're willing to gamble your Anthropic account on it, here you go:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/spksoft/pi-sub-anthropic" rel="noopener noreferrer"&gt;https://github.com/spksoft/pi-sub-anthropic&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That sentence is not a joke, and I'd rather lead with it than bury it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I got here
&lt;/h2&gt;

&lt;p&gt;I watched &lt;a href="https://www.youtube.com/watch?v=RjfbvDXpFls" rel="noopener noreferrer"&gt;Mario Zechner's talk, &lt;em&gt;Building pi in a World of Slop&lt;/em&gt;&lt;/a&gt;, and came out the other side genuinely in love with Pi. Four primitives — read, write, edit, bash — a system prompt under a thousand tokens, and everything else is an extension you write yourself. After a couple of years of agents that ship with fifty tools and opinions about all of them, that minimalism lands hard.&lt;/p&gt;

&lt;p&gt;Then I hit the wall everyone hits.&lt;/p&gt;

&lt;p&gt;Pi's provider layer does the &lt;em&gt;correct&lt;/em&gt; thing: it follows Anthropic's policy and doesn't let you point a Claude Pro/Max subscription at a third-party harness. Since April 4, 2026, Anthropic has enforced this server-side — third-party tools authenticating with a subscription OAuth token get a &lt;code&gt;400&lt;/code&gt; telling them their usage draws from extra usage, billed per token, not from plan limits. There's an &lt;a href="https://github.com/earendil-works/pi/issues/3372" rel="noopener noreferrer"&gt;open issue on the Pi repo&lt;/a&gt; from someone running into exactly this.&lt;/p&gt;

&lt;p&gt;That is a reasonable position for Anthropic to hold. Subscriptions were priced for interactive use, not for agents burning tokens unattended, and first-party clients get prompt-cache behaviour that third-party harnesses don't. I'm not writing a grievance post about it.&lt;/p&gt;

&lt;p&gt;But I was curious. And curiosity, for me, mostly expresses itself as "what happens if I try."&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually built
&lt;/h2&gt;

&lt;p&gt;So I ported the Anthropic provider layer out of &lt;a href="https://github.com/can1357/oh-my-pi" rel="noopener noreferrer"&gt;omp (oh-my-pi)&lt;/a&gt;, pinned at v17.4.2, into a standalone Pi extension. It registers a second provider — &lt;code&gt;pi-sub-anthropic&lt;/code&gt; — alongside Pi's built-in one, so nothing about your existing setup changes until you explicitly select it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pi &lt;span class="nb"&gt;install &lt;/span&gt;npm:pi-sub-anthropic

/login pi-sub-anthropic
/model pi-sub-anthropic/claude-opus-5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No runtime dependencies, no build step. Pi type-strips the TypeScript at load, and the Messages API is spoken directly over &lt;code&gt;fetch&lt;/code&gt;. Nine models registered, mirroring Pi's own Anthropic catalog.&lt;/p&gt;

&lt;p&gt;It also accepts an API key via &lt;code&gt;PI_SUB_ANTHROPIC_API_KEY&lt;/code&gt;, which is the boring, sanctioned path — billed as API credits, no fingerprint games, and the one I'd actually recommend to anyone reading this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part you need to read before installing
&lt;/h2&gt;

&lt;p&gt;To make a subscription credential work outside Claude Code, this extension reproduces Claude Code's wire fingerprint: user-agent, beta headers, system-block layout, token clamp, tool naming, billing attestation. That is, by construction, &lt;strong&gt;presenting a third-party client as a first-party one&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Which means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It may violate Anthropic's &lt;a href="https://www.anthropic.com/legal/aup" rel="noopener noreferrer"&gt;Usage Policy&lt;/a&gt; and &lt;a href="https://www.anthropic.com/legal/consumer-terms" rel="noopener noreferrer"&gt;Consumer Terms&lt;/a&gt;.&lt;/strong&gt; Read them and decide for yourself. This project takes no position and offers no defence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detection is trivial and entirely on Anthropic's side.&lt;/strong&gt; They can identify, rate-limit, suspend, or terminate accounts at any time, without notice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The account at risk is your Claude subscription account&lt;/strong&gt; — the same one you use in Claude.ai and Claude Code. There is no sandbox. There is no way to limit the blast radius.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The fingerprint is pinned and does not self-update.&lt;/strong&gt; The moment Anthropic changes something server-side, requests start failing, possibly loudly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No warranty, no support, no liability.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you aren't prepared to lose the account, don't install it. Use an API key, or use Pi's built-in &lt;code&gt;anthropic&lt;/code&gt; provider, or just use Claude Code — which is, after all, the client this thing is imitating.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credit where it's due
&lt;/h2&gt;

&lt;p&gt;The interesting work here isn't mine. The OAuth flow, the wire fingerprint, the beta profile, the token clamp, the tool naming, the billing attestation — all of that is &lt;a href="https://github.com/can1357/oh-my-pi" rel="noopener noreferrer"&gt;omp&lt;/a&gt;'s discovery. What I contributed is a Node-compatible translation, tests, and documentation. MIT licensed, carrying omp's notice.&lt;/p&gt;

&lt;p&gt;Not an official Anthropic or Pi project. Use at your own risk.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/spksoft/pi-sub-anthropic" rel="noopener noreferrer"&gt;https://github.com/spksoft/pi-sub-anthropic&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/pi-sub-anthropic" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/pi-sub-anthropic&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pi gallery: &lt;a href="https://pi.dev/packages/pi-sub-anthropic" rel="noopener noreferrer"&gt;https://pi.dev/packages/pi-sub-anthropic&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pi: &lt;a href="https://github.com/badlogic/pi-mono" rel="noopener noreferrer"&gt;https://github.com/badlogic/pi-mono&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;omp: &lt;a href="https://github.com/can1357/oh-my-pi" rel="noopener noreferrer"&gt;https://github.com/can1357/oh-my-pi&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>claude</category>
      <category>pi</category>
    </item>
  </channel>
</rss>
