Hasty Briefsbeta

Show HN: OAuth for AI Agents

12 days ago
  • #AI security
  • #API tokens
  • #audit logging
  • Kage Keys provides scoped, temporary tokens for AI agent actions to enhance security and auditability.
  • Features include service/action scoping (e.g., github:repos.read), auto-expiration (default 10s, configurable), and logging for debugging and compliance.
  • Includes a drop-in wrapper for any async function, making it easy to integrate with existing workflows.
  • Logs every action with details like scope, timestamp, status, token, and expiration time, stored in kage-keys.log.
  • Supports real API proxy integration, live revoke + approvals, and an enterprise dashboard for advanced use cases.
  • Available via npm as @kagehq/keys, with functions like withAgentKey for token generation and getLogs for accessing logs.
  • Demo available in examples/demo.js, showcasing all features.
  • Licensed under FSL-1.1-MIT, with details in the LICENSE file.