
authed identity
Open-source authentication protocol for agentic interactions. Let agents collaborate with Authed
Repository Info
About This Server
Open-source authentication protocol for agentic interactions. Let agents collaborate with Authed
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Authed Identity
Identity and authentication for AI Agents
Authed | Docs
Note: Authed Identity was moved from the old Authed repository, Authed 2.0 coming soon!
Overview
Authed is an identity and authentication system built specifically for AI agents. As AI agents become active participants on the internet, they need secure, scalable ways to identify themselves and authenticate with each other across different systems and organizations.
Traditional authentication methods like OAuth and API keys were designed for human users and applications, forcing agents to rely on static credentials that don't scale with the dynamic nature of AI interactions. Authed solves this problem by giving agents their own identity.
Authed is a developer-first, open-source protocol that:
- Provides unique identities for AI agents
- Enables secure agent-to-agent authentication across different ecosystems
- Eliminates the need for static credentials
- Removes human bottlenecks from authentication workflows
- Dynamically enforces access policies between trusted entities
Quick start
Get up and running with Authed in two simple steps:
1. Install the SDK
pip install authed
2. Initialize Your First Agent
For development (limited to 3 agents):
authed init setup
This command will:
- Create a new unclaimed provider
- Set up a default agent
- Generate a secure key pair in PEM format
- Create
.envwith all required configuration - Add
.envto.gitignore
For production use:
- Visit getauthed.dev to claim your provider
- Initialize with your provider credentials:
authed init setup --provider-id "your-provider-id" --provider-secret "your-provider-secret"
Basic integration
Here's a minimal example using FastAPI:
from fastapi import FastAPI, Request
from authed import Authed, verify_fastapi, protect_httpx
import httpx
app = FastAPI()
# Initialize Authed from environment variables (configured by `authed init setup`)
auth = Authed.from_env()
# Protected endpoint
@app.post("/secure-endpoint")
@verify_fastapi
async def secure_endpoint(request: Request):
return {"message": "Authenticated!"}
# Making authenticated requests
@app.get("/call-other-agent")
@protect_httpx()
async def call_other_agent():
async with httpx.AsyncClient() as client:
response = await client.post(
"http://other-agent/secure-endpoint",
headers={"target-agent-id": "target-agent-uuid"},
json={"message": "Hello!"}
)
return response.json()
Environment setup
Configure Authed using environment variables:
# Registry and agent configuration
AUTHED_REGISTRY_URL="https://api.getauthed.dev"
AUTHED_AGENT_ID="your-agent-id"
AUTHED_AGENT_SECRET="your-agent-secret"
# Keys for signing and verifying requests
AUTHED_PRIVATE_KEY="your-private-key"
AUTHED_PUBLIC_KEY="your-public-key"
Documentation
For more detailed documentation, visit our official documentation.
Integrations
Authed provides integrations with various external systems and protocols:
Model Context Protocol (MCP)
Authed can be used as an authentication layer for the Model Context Protocol (MCP), enabling secure access to MCP servers and resources. See the MCP integration documentation for details.
Why choose Authed?
Designed for agent interactions
Authed is built specifically for the way AI agents interact - dynamic, distributed, and requiring minimal human intervention.
Secure by design
Our protocol uses robust cryptographic signatures and verification mechanisms to ensure agents only interact with trusted entities.
Scalable identity
As your ecosystem of agents grows, Authed scales with you - no need to manage ever-growing lists of API keys or credentials.
Agent-to-Agent communication
Authed provides a Channel component for secure, authenticated communication between agents using WebSockets. This enables agents to establish connections, exchange messages, and maintain persistent communication channels with minimal setup.
Key keatures
- Secure WebSocket communication: Establish authenticated WebSocket connections between agents
- Message handling: Register custom handlers for different message types
- Connection management: Automatically manage multiple connections
- Authentication integration: Leverages Authed's core authentication system
Quick example
# Initialize Authed
auth = Authed.from_env()
# Create a channel
channel = auth.create_channel()
# Open a channel to another agent
target_channel = await channel.open_channel(
target_agent_id="target-agent-id",
websocket_url="wss://target-agent-domain.com/ws"
)
# Send a message
await channel.send_message(
channel=target_channel,
content_type=MessageType.REQUEST,
content_data={"text": "Hello from Agent A!"}
)
# Receive a response
response = await channel.receive_message(target_channel)
See the Channel documentation for more details and examples.
Roadmap
We are working hard on new features!
- Self-hosted registries: Adding support and documentation for self-hosting registries
- Registry interoperability: Expanding registry to make them interoperable, allowing agents to authenticate across registries with the same ID
- Instance-based IDs: Adding support for instance-based identities
- Instance binding: Adding instance binding to agent IDs
- OpenID integration: Adding OpenID identity binding for end users
- Enhanced permissions: Expanding the permission engine to allow more fine-grained permissions
Quick Start
Clone the repository
git clone https://github.com/authed-dev/authed-identityInstall dependencies
cd authed-identity
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.