---
title: "Giving Agents Their Own Turso Accounts with AgentID"
description: "AgentID is an OpenID Connect provider for AI agents: instead of a human completing a browser login, the agent approves an OIDC Authorization Code + PKCE request by signing a compact ES256 JWS (request ID plus inbox ID) with a P-256 key it holds, registered via AgentMail."
url: "https://swe.quest/articles/giving-agents-their-own-turso-accounts-with-agentid-27b3b5e49a47c3ed"
canonical: "https://turso.tech/blog/giving-agents-their-own-turso-accounts-with-agentid"
source: "Turso"
published: "2026-08-26"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 7
tags: ["identity-auth","ai-agents","cryptography"]
---

# Giving Agents Their Own Turso Accounts with AgentID

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-08-26, 7 min read, Deep dive. Original: [https://turso.tech/blog/giving-agents-their-own-turso-accounts-with-agentid](https://turso.tech/blog/giving-agents-their-own-turso-accounts-with-agentid)

## Summary

AgentID is an OpenID Connect provider for AI agents: instead of a human completing a browser login, the agent approves an OIDC Authorization Code + PKCE request by signing a compact ES256 JWS (request ID plus inbox ID) with a P-256 key it holds, registered via AgentMail. Turso, as a relying party, receives a stable agent \`sub\` and verified AgentMail inbox email in the ID token, with the human owner's name and email served separately from the userinfo endpoint. This keeps agent, owner and application identities distinct. The inbox doubles as a live channel for account notifications. Live checks on credential revocation, inbox deletion, org suspension and transaction expiry gate every sign-in, and JWKS can be cached by kid thanks to overlapping key rotation.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)

## Prerequisites

- OpenID Connect basics
- JWT/JWS
- OAuth Authorization Code with PKCE ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

AgentID, AgentMail, Turso, OpenID Connect, JWS, ES256, PKCE

## Related posts

- [Agentic Platform: Open-Sourcing the Agentic Identity Broker](https://swe.quest/articles/agentic-platform-open-sourcing-the-agentic-identity-broker-c79247dc6e5d742f.md): Zalando Engineering · 2026-09-24 · Hard · 8 min read · Identity & auth, AI agents, Kubernetes, Open source, System design
  Zalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens.
- [Add Cross App Access to Your OIDC Resource Application](https://swe.quest/articles/add-cross-app-access-to-your-oidc-resource-application-d8b2c307a8d6f7b5.md): Okta Developer · 2026-08-24 · Medium · 14 min read · Identity & auth, AI agents, Security
  Cross App Access (XAA) lets an OIDC-federated resource server accept API calls from agents by redeeming an Identity Assertion Authorization Grant (ID-JAG), a short-lived JWT issued by the customer's IdP, for a locally issued access token.
- [Agents aren’t humans (but they kinda are)](https://swe.quest/articles/agents-aren-t-humans-but-they-kinda-are-e617b2a600b9bdb7.md): Cloudflare · 2026-11-05 · Easy · 12 min read · AI agents, Identity & auth, Threat detection, Privacy
  Remotely hosted AI agents act as intermediaries that hide the user from the site.
- [Build "Sign in with Your App" using Supabase Auth](https://swe.quest/articles/build-sign-in-with-your-app-using-supabase-auth-a42222eedce43362.md): Supabase · 2025-12-04 · Medium · 6 min read · Identity & auth, AI agents, PostgreSQL
  Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with \[Your App\]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO.
- [Connections: managed credentials and per-caller identity for Managed Deep Agents](https://swe.quest/articles/connections-managed-credentials-and-per-caller-identity-for-managed-deep-agents-ce54a93aff5fdc9f.md): LangChain · 2026-09-14 · Medium · 6 min read · AI agents, Identity & auth, LLMs
  Connections in Managed Deep Agents (v0.7.0+) store named credentials in the LangSmith workspace instead of \`.env\` or the build, and tools fetch them at run time by slug via \`connections.get()\`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
