authsome run), intercepting the agent’s outgoing requests and injecting credentials. Alternatively, it can be embedded as a Python library.
The core concepts
Authsome’s architecture relies on four foundational concepts:- Identity: The cryptographic agent making the request (using Ed25519 keys and
did:keyDIDs). It proves its identity to the daemon using Proof-of-Possession (PoP) JWTs. - Principal: The logical owner (e.g., a human user or team). An identity must claim a principal to access any credentials.
- Vault: The encrypted storage for credentials, owned by exactly one principal.
- Auth flows: The stateless execution of OAuth 2.0 (PKCE, Device Code, DCR) or API key collection.
Motivation
AI agents need external APIs to do their jobs. Historically, giving them access meant one of two bad options:- Exposing raw API keys in environment variables, which leaks credentials to sub-processes.
- Building complex OAuth flows directly into the agent’s code.