Product Introduction
- Definition: Cred is an open-source, self-hosted credential delegation middleware and encrypted credential store designed for AI agent frameworks. It operates as a secure OAuth 2.0 broker and token vault.
- Core Value Proposition: Cred exists to solve the critical security flaw of AI agents handling plaintext OAuth refresh tokens. It provides secure, auditable, and scoped credential delegation, ensuring agents receive only short-lived, task-specific access tokens while the master credentials remain encrypted and never exposed.
Main Features
- Credential Delegation Broker: The core system brokers OAuth flows between users, AI agents, and service providers (like Google, GitHub). It uses PKCE (RFC 7636) and state parameters for secure authorization, exchanges user-consented refresh tokens for fresh access tokens, and issues them to verified agents. The refresh token is decrypted in memory only during this exchange and never returned to the agent.
- Encrypted Credential Vault (CredX): Stores long-lived OAuth refresh tokens encrypted at rest using AES-256-GCM. It supports per-account key isolation and can integrate with Hardware Security Modules (HSMs) like AWS KMS for key management. CredX can also be deployed as a standalone, single-command encrypted store for simpler agent architectures.
- Cryptographic Audit Trail: Every token delegation event generates a signed, append-only audit receipt using Ed25519 signatures. This creates an immutable chain of custody, detailing which agent requested a token, for which user and scopes, and when.
- Agent Framework Integrations: Ships with official SDKs for TypeScript and Python, and adapters for major AI agent frameworks including LangChain, CrewAI, OpenAI Agents, AutoGen, Semantic Kernel, and Model Context Protocol (MCP) for integration with tools like Claude Desktop.
- Instant Scope Enforcement & Revocation: Agents request tokens with specific scopes, but are constrained by a pre-configured "agent ceiling." Cred enforces that delegated tokens are never wider than this ceiling. User consent grants can be revoked instantly, invalidating all subsequent agent token requests.
Problems Solved
- Pain Point: The insecure practice of storing OAuth refresh tokens in plaintext within AI agent configuration files or environment variables, creating a massive security vulnerability and compliance risk.
- Target Audience: Developers and engineers building AI agent applications, security-conscious DevOps teams, enterprise architects implementing multi-agent systems, and companies undergoing security reviews for AI-powered features.
- Use Cases: An AI scheduling agent that needs Google Calendar access; a GitHub bot that summarizes pull requests; a customer support agent fetching data from Salesforce; any autonomous AI tool requiring secure, delegated access to user-authorized SaaS platforms without credential exposure.
Unique Advantages
Strengths & Limitations (Pros & Cons):
- Pros: Eliminates plaintext credential storage; provides fine-grained, scope-limited access; enables full auditability via cryptographic receipts; supports instant user revocation; self-hosted with zero cloud dependency (Apache 2.0 license); offers broad framework compatibility.
- Cons: Introduces an additional service (the Cred middleware) to deploy and maintain within your infrastructure. Requires managing the encryption key lifecycle (e.g., with KMS). The delegation flow adds minimal latency (~150ms) versus direct token access.
Key Alternatives & Differentiation:
- Plaintext Config Files / ENV Variables: The common but insecure alternative. Cred differentiates by never exposing the refresh token, encrypting it at rest, and providing scoped, auditable delegation.
- Cloud-based Secret Managers (e.g., AWS Secrets Manager, HashiCorp Vault): These encrypt at rest but return the full secret to the calling application. Cred differentiates by acting as an active broker that exchanges the secret for a short-lived token, never returning the credential itself, and adding OAuth flow management and audit logging.
- Direct OAuth Implementation in Agent Code: Developers can implement OAuth PKCE flows directly. Cred differentiates by providing a standardized, security-hardened, reusable service with built-in vaulting, receipt signing, and multi-framework SDKs, reducing custom code and potential security oversights.
Frequently Asked Questions (FAQ)
- How does Cred handle OAuth refresh token security? Cred encrypts OAuth refresh tokens using AES-256-GCM in a dedicated vault. The key can be managed by an HSM like AWS KMS. During delegation, the token is temporarily decrypted in memory to exchange it for a new access token and is never logged, persisted in plaintext, or returned to the AI agent.
- What is the difference between Cred and CredX? Cred is the full credential delegation middleware suite, including the OAuth broker, vault, and audit system. CredX is a standalone component—a single-command, encrypted credential store—for agents that don't require the full delegation protocol but still need secure secret storage.
- Can Cred be used with Claude Desktop or other MCP servers? Yes, Cred provides an official MCP (Model Context Protocol) server adapter, allowing AI assistants like Claude within Claude Desktop to securely request delegated credentials through the Cred system without code changes.
- Is Cred a cloud service or self-hosted software? Cred is primarily open-source, self-hosted software (Apache 2.0) with zero mandatory cloud dependencies. The team also offers "Cred Cloud," a hosted early-access version with a dashboard and managed service.
- What happens if a user revokes consent in the OAuth provider (e.g., Google)? On the next token delegation request, Cred's attempt to exchange the refresh token will fail. Cred should then purge the invalid refresh token from its vault and the agent will receive an error, requiring the user to re-authenticate.
