How to Secure Agents using OAuth — Jared Hanson (Keycard, Passport.js)
OAuth: the quiet protector of your agents
In the evolving landscape of AI agents and automation, security remains the fundamental but often overlooked foundation. Jared Hanson, the creator of Passport.js and co-founder of Keycard, recently delivered an illuminating talk on implementing OAuth for agent security. His presentation offers a critical roadmap for organizations looking to protect their autonomous systems from the increasing sophistication of security threats.
Key insights from Hanson's talk
-
The agent security challenge: As agents gain more autonomy and access to sensitive systems, traditional security models break down. Agents need tailored authentication approaches that maintain security without sacrificing their automated nature.
-
OAuth as the solution: OAuth 2.0 provides a framework perfectly suited for agent security, allowing controlled delegation of access without credential sharing. This creates clear boundaries and permissions that limit an agent's reach to only what's necessary.
-
Implementation patterns: Hanson outlines three distinct ways to implement OAuth for agents – client credentials for backend-only interactions, authorization code for user-delegated access, and device authorization for situations where direct user interaction isn't possible.
Why this matters now
The most compelling insight from Hanson's presentation is how OAuth fundamentally shifts the security paradigm for agents. Rather than trying to retrofit human-centered authentication to autonomous systems, OAuth provides purpose-built patterns that acknowledge the unique nature of agent operations.
This approach arrives at a critical inflection point in enterprise automation. Organizations are rapidly deploying AI agents across business functions, but security implementations haven't kept pace. According to recent IBM research, 74% of companies that have adopted AI acknowledge security gaps in their implementations. These vulnerabilities represent existential business risks as agents often require access to multiple systems containing sensitive data.
By implementing OAuth patterns as Hanson suggests, organizations create security guardrails that allow for innovation without exposing critical systems. This isn't merely about preventing breaches—it's about building sustainable automation infrastructure that scales safely.
Beyond the presentation: real-world applications
Hanson's technical focus leaves room for exploring how these patterns manifest in enterprise environments. Consider a financial services firm implementing an agent to process customer service requests. Without proper OAuth implementation, this agent might require overly broad system access, creating unnecessary risk vectors. By using the authorization code flow, the agent can request precisely
Recent Videos
Hermes Agent Master Class
https://www.youtube.com/watch?v=R3YOGfTBcQg Welcome to the Hermes Agent Master Class — an 11-episode series taking you from zero to fully leveraging every feature of Nous Research's open-source agent. In this first episode, we install Hermes from scratch on a brand new machine with no prior skills or memory, walk through full configuration with OpenRouter, tour the most important CLI and slash commands, and run our first real task: a competitor research report on a custom children's book AI business idea. Every future episode will build on this fresh install so you can see the compounding value of the agent in real time....
Apr 29, 2026Andrej Karpathy – Outsource your thinking, but you can’t outsource your understanding
https://www.youtube.com/watch?v=96jN2OCOfLs Here's what Andrej Karpathy just figured out that everyone else is still dancing around: we're not in an era of "better models." We're in a different era of computing altogether. And the difference between understanding that and not understanding it is the difference between being a vibe coder and being an agentic engineer. Last October, Karpathy had a realization. AI didn't stop being ChatGPT-adjacent. It fundamentally shifted. Agentic coherent workflows started to actually work. And he's spent the last three months living in side projects, VB coding, exploring what's actually possible. What he found is a framework that explains...
Mar 30, 2026Andrej Karpathy on the Decade of Agents, the Limits of RL, and Why Education Is His Next Mission
A summary of key takeaways from Andrej Karpathy's conversation with Dwarkesh Patel In a wide-ranging conversation with Dwarkesh Patel, Andrej Karpathy — former head of AI at Tesla, founding member of OpenAI, and creator of some of the most popular AI educational content on the internet — shared his views on where AI is headed, what's still broken, and why he's now pouring his energy into education. Here are the key takeaways. "It's the Decade of Agents, Not the Year of Agents" Karpathy's now-famous quote is a direct pushback on industry hype. Early agents like Claude Code and Codex are...