<?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: Jonathan Klimoski</title>
    <description>The latest articles on DEV Community by Jonathan Klimoski (@agentra).</description>
    <link>https://dev.to/agentra</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%2F3850491%2Fec06d1c4-ddda-4965-8d69-52b44b507645.png</url>
      <title>DEV Community: Jonathan Klimoski</title>
      <link>https://dev.to/agentra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agentra"/>
    <language>en</language>
    <item>
      <title>I built an authorization layer for AI agents. Here's why it had to be non-custodial.</title>
      <dc:creator>Jonathan Klimoski</dc:creator>
      <pubDate>Mon, 30 Mar 2026 04:29:32 +0000</pubDate>
      <link>https://dev.to/agentra/i-built-an-authorization-layer-for-ai-agents-heres-why-it-had-to-be-non-custodial-4585</link>
      <guid>https://dev.to/agentra/i-built-an-authorization-layer-for-ai-agents-heres-why-it-had-to-be-non-custodial-4585</guid>
      <description>&lt;p&gt;A few months ago I was prototyping an agent that needed to make purchases -- API credits, small SaaS subscriptions, that kind of thing. I started wiring it up to a payment method and immediately hit a wall I couldn't shake: there was no layer between the agent and the funds. No "is this actually okay right now?" check. Just a key with full access.&lt;/p&gt;

&lt;p&gt;I looked for something that handled agent-specific authorization -- not just API rate limiting, but actual financial authorization with per-agent limits and a trust model. Nothing existed. So I built it.&lt;/p&gt;

&lt;p&gt;That's Agentra. It authorizes transactions for autonomous agents and maintains trust scores for both sides of a transaction. It never holds private keys or custodies funds -- just says yes or no, and records the decision.&lt;br&gt;
why non-custodial?&lt;/p&gt;

&lt;p&gt;The obvious design is to custody funds -- hold USDC, move it on behalf of agents. That's what I initially sketched out. But it puts you immediately into money transmitter territory. Licensing, audits, state-by-state compliance. That's a dead end for infrastructure that needs to be everywhere agents are.&lt;/p&gt;

&lt;p&gt;The architecture that made more sense: separate the authorization decision from the movement of funds entirely. The agent controls its own keys via Turnkey WaaS. Agentra's platform wallet never holds user funds. What gets recorded on-chain is the authorization event itself -- an EAS attestation on Base Mainnet.&lt;/p&gt;

&lt;p&gt;That attestation is public. Any counterparty can verify an agent was authorized before accepting a payment without trusting the agent directly.&lt;br&gt;
try it&lt;/p&gt;

&lt;p&gt;The API is live. Register an agent:&lt;/p&gt;

&lt;p&gt;curl -X POST &lt;a href="https://api.agentrapay.ai/v1/agents/register" rel="noopener noreferrer"&gt;https://api.agentrapay.ai/v1/agents/register&lt;/a&gt; \&lt;br&gt;
  -H "Content-Type: application/json" \&lt;br&gt;
  -d '{&lt;br&gt;
    "agent_name": "my-test-agent",&lt;br&gt;
    "agent_type": "payment",&lt;br&gt;
    "description": "testing"&lt;br&gt;
  }'&lt;br&gt;
You get back an api_key (prefixed agn_) and an agent_id. New agents start at Unverified -- $100 per transaction, $250 daily. Limits increase as the agent builds a trust history. Denials come back with an upgrade_path object explaining exactly what the agent needs to do next, which turned out to be more important than I expected -- without it, limits just feel like a wall.&lt;br&gt;
Check trust score:&lt;br&gt;
curl &lt;a href="https://api.agentrapay.ai/v1/trust/%7Bagent_id%7D" rel="noopener noreferrer"&gt;https://api.agentrapay.ai/v1/trust/{agent_id}&lt;/a&gt; \&lt;br&gt;
  -H "X-API-Key: agn_your_key"&lt;/p&gt;

&lt;p&gt;the stack&lt;/p&gt;

&lt;p&gt;Rust / Axum 0.8 / PostgreSQL on Railway. &lt;/p&gt;

&lt;p&gt;I went with Rust because authorization decisions need to be fast and the memory safety story matters when you're touching financial logic. The performance profile is worth the tradeoffs.&lt;br&gt;
One sharp edge if you're using Axum 0.8: apply .with_state() to each sub-router individually before merging. If you apply a single .with_state() after .merge(), middleware bleeds across sibling routes in ways that are hard to debug. Burned a few hours on that.&lt;/p&gt;

&lt;p&gt;The MCP server is also live at &lt;/p&gt;

&lt;p&gt;&lt;a href="https://api.agentrapay.ai/mcp" rel="noopener noreferrer"&gt;https://api.agentrapay.ai/mcp&lt;/a&gt; -- published to the official MCP Registry as ai.agentrapay/agentra. &lt;/p&gt;

&lt;p&gt;Agents that support MCP can discover and call Agentra natively without a separate SDK.&lt;br&gt;
what's next&lt;/p&gt;

&lt;p&gt;Framework integrations -- LangChain, AutoGen, CrewAI. If you're building in any of those ecosystems and want to test an early integration, I'd love to hear from you.&lt;/p&gt;

&lt;p&gt;Free tier is 100 authorizations + 50 trust lookups per month, no credit card. If you try it and hit something broken or confusing, drop it in the comments.&lt;/p&gt;

&lt;p&gt;agentrapay.ai | MCP Registry: ai.agentrapay/agentra | Docs&lt;/p&gt;

</description>
      <category>rust</category>
      <category>ai</category>
      <category>agents</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
