<?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: No Form</title>
    <description>The latest articles on DEV Community by No Form (@noform).</description>
    <link>https://dev.to/noform</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%2F3970862%2F0777b5db-076a-4fbe-b725-e8f260a04b8a.png</url>
      <title>DEV Community: No Form</title>
      <link>https://dev.to/noform</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noform"/>
    <language>en</language>
    <item>
      <title>Building a consent-preserving auth.md skill for OpenClaw agents</title>
      <dc:creator>No Form</dc:creator>
      <pubDate>Sat, 06 Jun 2026 07:45:28 +0000</pubDate>
      <link>https://dev.to/noform/building-a-consent-preserving-authmd-skill-for-openclaw-agents-1765</link>
      <guid>https://dev.to/noform/building-a-consent-preserving-authmd-skill-for-openclaw-agents-1765</guid>
      <description>&lt;p&gt;Signup forms were designed for humans with browsers. AI agents get a 401 and have nowhere to go.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://workos.com/auth-md" rel="noopener noreferrer"&gt;auth.md&lt;/a&gt; (WorkOS, MIT) changes that: a tiny Markdown file at your domain tells any agent how to register — what flows you support, what endpoints to hit, what scopes it’ll get.&lt;/p&gt;

&lt;p&gt;I just shipped an OpenClaw skill that implements the &lt;strong&gt;user-claimed&lt;/strong&gt; flow end-to-end:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openclaw skills &lt;span class="nb"&gt;install &lt;/span&gt;auth-md-signup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The flow in 90 seconds
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Agent sees &lt;code&gt;401 WWW-Authenticate: Bearer resource_metadata="…"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Two-hop discovery: PRM → AS metadata → &lt;code&gt;agent_auth&lt;/code&gt; block&lt;/li&gt;
&lt;li&gt;POST anonymous registration → gets &lt;code&gt;claim_token&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Asks &lt;strong&gt;you&lt;/strong&gt; for your email in-channel&lt;/li&gt;
&lt;li&gt;Service emails OTP → you paste it back&lt;/li&gt;
&lt;li&gt;POST &lt;code&gt;claim/complete&lt;/code&gt; → scoped, revocable credential stored&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why the OTP step is non-negotiable
&lt;/h2&gt;

&lt;p&gt;The agent can’t complete signup without you. No silent account creation, no credential exfiltration. The human OTP step is the consent gate — remove it and you remove the accountability that makes delegated signup trustworthy.&lt;/p&gt;

&lt;p&gt;The reference implementation uses &lt;a href="https://noform.dev" rel="noopener noreferrer"&gt;NoForm&lt;/a&gt; — which hosts auth.md infrastructure for services that don’t want to build it themselves. The skill works with any auth.md-compliant service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error handling built in
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;otp_invalid&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ask user to retry (max 3x)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;otp_expired&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Offer to re-send OTP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claim_expired&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Restart anonymous registration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;previously_claimed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tell user, stop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;anonymous_not_enabled&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tell user, stop&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Revocation
&lt;/h2&gt;

&lt;p&gt;One call to &lt;code&gt;revocation_uri&lt;/code&gt; with the token. Agent deletes it locally. Your account stays intact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;ClawHub: &lt;a href="https://clawhub.ai/skills/auth-md-signup" rel="noopener noreferrer"&gt;clawhub.ai/skills/auth-md-signup&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Protocol: &lt;a href="https://github.com/workos/auth.md" rel="noopener noreferrer"&gt;github.com/workos/auth.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Reference implementation: &lt;a href="https://noform.dev" rel="noopener noreferrer"&gt;noform.dev&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>openclaw</category>
    </item>
  </channel>
</rss>
