Cred is an Apache-2.0 broker you run on your own infrastructure. It holds provider tokens, hands agents short-lived tokens bound to their own keys, makes the upstream call for them, and records each one. It is the base the evidence layer on the roadmap is built on.
npm install @credninja/sdkShort-lived tokens bound to the agent’s own key, with a fresh DPoP proof (RFC 9449) on every request.
Cred makes the upstream call. By default, servers refuse to hand out provider tokens.
Google, GitHub, Slack, Notion, Salesforce, Linear and HubSpot.
Provider tokens encrypted at rest with AES-256-GCM, on your own infrastructure.
A hash-chained log of delegations and calls in the default store, with a verification endpoint.
JWS/Ed25519 receipts for delegations, and a verifier for receipt chains.
Child delegations that can’t exceed their parent, and revocation that cascades to everything derived from a delegation.
Rate limits, scope filters, time windows, URL allowlists and TTL caps, as opt-in policies.
TypeScript and Python SDKs, an MCP server, and adapters for LangChain, CrewAI, OpenAI Agents, AutoGen and Semantic Kernel.
A self-hosted connect flow with widgets, for products that let their own users connect accounts.
import { Cred, importAgentIdentity } from '@credninja/sdk'
const cred = new Cred({
agentToken: process.env.CRED_AGENT_TOKEN!,
baseUrl: process.env.CRED_BASE_URL!,
})
// The agent's own key. It stays in this process.
const agent = importAgentIdentity({
did: process.env.CRED_AGENT_DID!,
privateKeyHex: process.env.CRED_AGENT_PRIVATE_KEY_HEX!,
})
const credential = await cred.delegateHandle({
userId,
appClientId: process.env.CRED_APP_CLIENT_ID!,
service: 'google',
scopes: ['calendar.readonly'],
agentIdentity: agent,
})
// Cred makes the call. The provider token stays on the server.
const res = await cred.use({
token: credential.token,
url: 'https://www.googleapis.com/calendar/v3/calendars/primary/events',
method: 'GET',
agentIdentity: agent,
})