Skip to main content
Didit Raises $2M and Joins Y Combinator (W26)
Didit
Back to blog
Blog · March 7, 2026

Securing AI Agents: did:pkh & Didit's Verifiable Credentials

AI agents are transforming workflows, but their security and verifiable identity are paramount. This post explores how did:pkh and Didit's Verifiable Credentials provide a robust framework for agent identity, ensuring trust.

By DiditUpdated
thumbnail.png

Decentralized Agent IdentityAI agents require secure, verifiable identities to operate reliably within complex digital ecosystems. did:pkh, leveraging public key cryptography, offers a decentralized and robust method for agents to establish and prove their identity without relying on central authorities.

Verifiable Credentials for Agent AttributesVerifiable Credentials (VCs) issued by platforms like Didit can attest to specific attributes or capabilities of an AI agent, such as its access permissions, compliance status, or even its training origin, enhancing trust and interoperability.

Programmatic Registration and API AccessDidit uniquely enables AI agents to self-register and obtain API credentials programmatically in just two API calls, eliminating the need for browser interaction and streamlining integration into CI/CD pipelines and agent workflows.

Didit's AI-Native AdvantageDidit provides a modular, AI-native platform with a Model Context Protocol (MCP) server, allowing agents to configure verification workflows, manage sessions, and monitor billing entirely via API, making it the most agent-friendly identity verification solution.

The Rise of AI Agents and the Need for Verifiable Identity

The proliferation of AI agents, from coding assistants like Cursor and GitHub Copilot to autonomous operational tools, marks a significant shift in how we interact with technology. These agents are increasingly performing critical tasks, accessing sensitive data, and making decisions. However, with great power comes great responsibility, and a fundamental challenge emerges: how do we establish and verify the identity of these AI agents? How can we ensure they are who they claim to be, that they have the necessary permissions, and that their actions are auditable?

Traditional identity systems, often built for human interaction, fall short in the agentic era. They typically involve browser-based logins, multi-factor authentication (MFA) tailored for humans, and manual configuration processes. AI agents require a headless, programmatic approach to identity that is both secure and scalable. This is where decentralized identifiers (DIDs) and Verifiable Credentials (VCs) come into play, offering a robust framework for agent identity.

did:pkh: A Foundation for Decentralized Agent Identity

A crucial component of securing AI agents is the establishment of a decentralized, self-sovereign identity. The did:pkh method, which stands for Public Key Holder DID, leverages existing blockchain accounts (like Ethereum or Bitcoin) to create a DID. Essentially, an agent's public key becomes its identifier, and the corresponding private key serves as its means of authentication.

Why is this powerful for AI agents? Firstly, it provides a tamper-proof and cryptographically secure identity that is not controlled by any central authority. The agent itself controls its private key, enabling it to sign messages, prove ownership of its DID, and authenticate itself across various services. This eliminates single points of failure and enhances the agent's autonomy. For instance, an AI agent could use its did:pkh to sign off on code changes, prove its origin when interacting with APIs, or securely access decentralized applications without human intervention.

Establishing such an identity is the first step towards a more trustworthy and accountable agent ecosystem, allowing for secure interactions that can be verified on a public ledger.

Verifiable Credentials: Attesting to Agent Attributes

While did:pkh provides a foundational identity, AI agents often need to prove specific attributes or capabilities without revealing unnecessary information. This is where Verifiable Credentials (VCs) become indispensable. A VC is a digital credential issued by an issuer (e.g., a service provider, an organization, or even another trusted AI agent) to a holder (the AI agent), which can then be presented to a verifier.

Imagine an AI agent designed to perform financial transactions. Instead of sharing all its internal logic or access tokens, it could present a VC issued by a compliance authority, attesting that it has undergone specific AML screening checks and is authorized to execute transactions up to a certain limit. Similarly, a coding agent could present a VC from a software vendor proving its license to use a particular library. Didit's platform, with its robust ID Verification, AML Screening & Monitoring, and Phone & Email Verification capabilities, is perfectly positioned to act as an issuer of such VCs for AI agents, attesting to their verified status or capabilities.

VCs, combined with did:pkh, create a powerful privacy-preserving mechanism. Agents can selectively disclose only the necessary information, enhancing security and minimizing data exposure while maintaining full verifiability.

Programmatic Registration and API-First Integration for Agents

For AI agents to effectively utilize these identity frameworks, the underlying infrastructure must be agent-friendly. Traditional identity platforms often require manual steps that are impossible for autonomous agents. Didit stands out as the most agent-friendly identity verification platform precisely because it was built from the ground up for programmatic interaction.

Consider the process of an AI agent needing to register for an identity verification service. With Didit, this can be achieved in just two API calls:

  1. Register: The agent sends a POST request to https://apx.didit.me/auth/v2/programmatic/register/ with an email and password.
  2. Verify Email: Upon receiving an email verification code (which could be autonomously retrieved by a sophisticated agent or passed by a human operator), the agent sends another POST request to https://apx.didit.me/auth/v2/programmatic/verify-email/ with the email and code.

The response to the second call immediately provides the agent with an api_key and client_id, along with access and refresh tokens. This eliminates browser-based workflows, 2FA friction for API accounts, and manual setup, making Didit ideal for CI/CD pipelines and fully autonomous agent deployments. This API-first approach extends to all aspects of Didit's platform, allowing agents to configure workflows, manage sessions, and even monitor billing programmatically.

How Didit Helps Secure AI Agents

Didit is uniquely positioned to empower and secure AI agents in the decentralized identity landscape. Our AI-native, developer-first identity platform provides the modular building blocks necessary for agents to establish, prove, and manage their identities seamlessly and securely.

Our core offerings, such as ID Verification, Passive & Active Liveness, and 1:1 Face Match & Face Search, can be adapted to verify the 'identity' or attributes of an agent's operator or even the agent itself if it has a physical presence. More importantly, Didit's programmatic registration and full Management API allow AI agents to:

  • Self-Register and Authenticate: Agents can obtain API credentials with just two API calls, integrating effortlessly into automated workflows.
  • Issue and Verify Verifiable Credentials: While Didit can issue VCs for humans (e.g., proof of age via Age Estimation or proof of address via Proof of Address), its robust verification engine can also act as a verifier for VCs presented by AI agents, ensuring they meet specific criteria.
  • Configure Workflows: Agents can programmatically set up and modify verification workflows using Didit's API, adapting to changing requirements without human intervention.
  • Monitor and Manage: Tools for listing sessions, getting verification results, managing blocklists, and checking billing balance are all accessible via API, enabling agents to maintain oversight.

Didit's Free Core KYC, modular architecture, and AI-native design ensure that securing AI agents is not only possible but also efficient and cost-effective. Our Model Context Protocol (MCP) server integration further streamlines this, allowing agents to discover and use Didit tools natively within their environments.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Infrastructure for identity and fraud.

One API for KYC, KYB, Transaction Monitoring, and Wallet Screening. Integrate in 5 minutes.

Ask an AI to summarise this page
Securing AI Agents with did:pkh and Didit's Verifiable.