Get started with Credo
This quickstart will guide you through creating a basic Credo agent that can manage DIDs and credentials.Install core dependencies
Install the core Credo package and required storage module:
The
@credo-ts/askar package provides secure storage for keys and data. For Node.js, you’ll also need @openwallet-foundation/askar-nodejs.Create and initialize your agent
Create a new file
agent.ts and add the following code:agent.ts
This example creates a minimal agent with Askar storage. The agent can create DIDs, manage keys, and store data securely.
What’s next?
Now that you have a basic agent running, explore these topics:DIDComm messaging
Enable peer-to-peer messaging between agents
Issue credentials
Learn how to issue verifiable credentials
Verify presentations
Verify credential presentations from holders
OpenID4VC
Use OpenID for Verifiable Credentials
More examples
Agent with DIDComm support
Agent with DIDComm support
To enable DIDComm messaging, add the DIDComm module:
Agent with AnonCreds support
Agent with AnonCreds support
To work with AnonCreds credentials, add the AnonCreds module:
Agent with OpenID4VC support
Agent with OpenID4VC support
To use OpenID for Verifiable Credentials:
Need help?
Join the community
Join our Discord channel or mailing list for support