npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@idevsec/creduent-cli

v2.1.2

Published

The official command-line interface for Creduent: the open standard and security protocol for cryptographic AI agent identity, authentication, and trust verification using Ed25519 and DNS.

Downloads

752

Readme

Creduent CLI

npm version License Node Compatibility Downloads

The official command-line interface for the Creduent Protocol, the open standard for cryptographic AI agent identity, Ed25519 signing, DNS ownership verification, and attestation registry.

What is Creduent?

Creduent is an open application-layer protocol for cryptographic identity and trust verification of autonomous AI agents, originally created by Kashish Kanojia and stewarded by IDevSec. The official Creduent CLI is developed and maintained by IDevSec.

The Creduent CLI allows developers, operators, and agent hosts to initialize agent identities, resolve attestation records, cryptographically verify agent trust status, and register new agents directly from the terminal.

Protocol: idevsec.com/creduent | Docs: idevsec.com/creduent/docs | Registry: creduent.idevsec.com


Key Features

  • Native Cryptographic Verification: The verify command uses the @idevsec/creduent SDK to validate Ed25519 signatures locally. No centralized API trust is required.
  • Command-Line Native: Lightweight and fast terminal utility optimized for scripts, pipelines, and DevOps workflows.
  • Full Registry Integration: Seamlessly register new agents, resolve identity records, and perform cryptographic signature validation.
  • Custom Registry Selection: Target private or custom local registry instances using the --base-url parameter.
  • No Complex Configuration: Simply install and run, no local database setup required.

Installation

npm install -g @idevsec/creduent-cli

Once installed, you can access the CLI using the creduent command.


Command Reference & Examples

1. Initialize a New Agent Identity

Generates a fresh Ed25519 keypair, builds a signed agent.json document, and saves both to disk.

# Interactive setup
creduent init

# Non-interactive with flags
creduent init \
  --agent agent://myorg/mybot \
  --owner "My Organization" \
  --domain myorg.com \
  --endpoint https://api.myorg.com/agent \
  --capabilities "chat,search" \
  -y

Example Output:

Generating Ed25519 key pair...
Signing agent.json metadata...
Private key saved to: private_key.pem (KEEP THIS SECRET!)
Signed agent.json saved to: agent.json

YOUR PUBLIC KEY:
  ed25519:V43yNaTrpqQj9YJnjYVL2HdOrqUDcnflhzNGuHTaFD8=

Setup completed successfully!
To publish and verify this identity:
  1. Host agent.json at: https://myorg.com/.well-known/agent.json
  2. Add a DNS TXT record for _creduent.myorg.com
  3. Register your agent: creduent register --agent agent://myorg/mybot ...

2. Verify an Agent (Native Cryptographic)

Downloads the agent identity document and validates the Ed25519 signature locally using the @idevsec/creduent SDK. No centralized trust, as verification is fully decentralized.

creduent verify agent://idevsec/steward

Example Output (verified):

Cryptographically VERIFIED!
Agent ID:     agent://idevsec/steward
Owner:        IDevSec
Capabilities: verify, resolve, attest

Example Output (failed):

Verification failed: Signature verification failed

3. Resolve an Agent Attestation

Fetches and displays the complete cryptographic attestation record of a registered agent from the registry.

creduent resolve agent://idevsec/steward

Example Output:

Resolving: agent://idevsec/steward

  Agent ID   : agent://idevsec/steward
  Issuer     : agent://creduent/registry
  Level      : trusted
  Domain     : creduent.idevsec.com
  Public Key : ed25519:V43yNaTrpqQj9YJnjYVL2HdOrqUDcnflhzNGuHTaFD8=
  Issued     : 2026-05-30T19:23:30Z
  Expires    : 2027-05-30T19:23:30Z

4. Register a New Agent

Registers a new AI agent identity with the Creduent registry by submitting its URI, domain, and the URL to its agent.json metadata document.

creduent register \
  --agent agent://myorg/mybot \
  --domain myorg.com \
  --json-url https://myorg.com/.well-known/agent.json \
  --meta env=production \
  --meta version=1.0

5. Renew Agent Attestation

Extends your agent's attestation validity period. Requires the agent's private key to sign the renewal request. The registry enforces a 30-day maximum — any request beyond 30 days from now is capped server-side.

# Renew for 30 days (default)
creduent renew --agent agent://myorg/mybot

# Renew for a specific number of days (max 30 enforced by server)
creduent renew \
  --agent agent://myorg/mybot \
  --days 14 \
  --key ./private_key.pem

| Flag | Default | Description | | :--- | :--- | :--- | | --agent | required | Agent URI to renew | | --days | 30 | Days from now for new expiry (server max: 30) | | --key | ./private_key.pem | Path to the agent's private key PEM file |


Global Options

| Option | Description | | :----------------- | :---------------------------------------------------------------------------------------------------------- | | --base-url <url> | Override the default public registry (https://creduent.idevsec.com) to query a private or local registry. | | --help | Show the help menu listing all commands and flags. |

Example using a custom registry:

creduent verify agent://myorg/mybot --base-url http://localhost:8000

How Verification Works

Starting from Phase 3, creduent verify performs fully decentralized cryptographic verification:

  1. Resolves the agent:// URI to the agent's published agent.json document.
  2. Strips the signature field and applies RFC 8785 JCS canonicalization.
  3. Verifies the Ed25519 signature against the document's declared public key using globalThis.crypto.subtle (Web Crypto API).
  4. Returns the verified agent ID and capabilities on success.

This means verification works entirely offline once the document is fetched, and does not depend on the registry being live or trusted.


Development & Testing

The Creduent CLI contains unit tests checking argument flag parsing, crypto operations, and client routines. Tests are built on top of Node.js's native test runner.

To compile and execute the test suites:

npm run test

Protocol Specification


License

Licensed under the Apache License 2.0. See the LICENSE file for the full legal text.