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

@umytbaynazarow/agentauth-cli

v0.7.0

Published

CLI tool for AgentAuth - Setup, test, and deploy agent authentication in minutes

Readme

AgentAuth CLI

Setup, test, and deploy agent authentication in minutes

Official CLI tool for AgentAuth - the lightweight authentication system for AI agents.

Features

  • 🚀 Interactive Setup - agentauth init configures your project in seconds
  • 🧪 Local Testing - agentauth test validates auth without hitting production
  • Deployment Validation - agentauth deploy checks environment before going live
  • 📦 Zero Config - Works out of the box with sensible defaults

Installation

npm install -g @umytbaynazarow/agentauth-cli

Quick Start

1. Initialize AgentAuth in your project

agentauth init

This will:

  • Create .agentauthrc configuration file
  • Generate .env.agentauth template
  • Walk you through interactive setup

2. Test your configuration

agentauth test

This will:

  • Start a local mock API server
  • Run authentication flow tests
  • Validate your credentials

3. Validate before deployment

agentauth deploy --check

This will:

  • Check all required environment variables
  • Validate API connectivity
  • Ensure deployment readiness

Commands

agentauth init

Initialize AgentAuth in your project with interactive setup.

Options:

  • -b, --base-url <url> - AgentAuth API base URL
  • --skip-prompts - Skip interactive prompts and use defaults

Example:

# Interactive setup
agentauth init

# Non-interactive with custom URL
agentauth init --base-url https://auth.yourcompany.com --skip-prompts

agentauth test

Test your AgentAuth configuration with a local mock API server.

Options:

  • -a, --agent-id <id> - Agent ID to test
  • -k, --api-key <key> - API key to test
  • -v, --verbose - Show detailed error messages

Example:

# Test with environment variables
agentauth test

# Test with specific credentials
agentauth test --agent-id agent_123 --api-key ak_secret --verbose

agentauth deploy

Validate environment variables and API connectivity before deployment.

Options:

  • -e, --env <file> - Path to .env file
  • -c, --check - Check-only mode (no deployment)

Example:

# Validate current environment
agentauth deploy --check

# Validate specific .env file
agentauth deploy --env .env.production --check

Configuration Files

.agentauthrc

JSON configuration file created by agentauth init:

{
  "baseUrl": "https://auth.yourcompany.com",
  "environment": "production",
  "agentId": "agent_...",
  "apiKey": "ak_..."
}

.env.agentauth

Environment variable template:

AGENTAUTH_BASE_URL=https://auth.yourcompany.com
AGENTAUTH_AGENT_ID=your-agent-id
AGENTAUTH_API_KEY=your-api-key
AGENTAUTH_ENVIRONMENT=production

Use Cases

Local Development

# Set up for local development
agentauth init --base-url http://localhost:3000

# Test against local API
agentauth test

CI/CD Pipeline

# Validate before deployment
agentauth deploy --check

# If validation passes, proceed with deployment
if [ $? -eq 0 ]; then
  echo "Deploying..."
fi

Quick Debugging

# Test specific credentials
agentauth test --agent-id agent_xxx --api-key ak_yyy --verbose

Environment Variables

Required:

  • AGENTAUTH_BASE_URL - AgentAuth API URL
  • AGENTAUTH_AGENT_ID - Your agent ID
  • AGENTAUTH_API_KEY - Your API key

Optional:

  • AGENTAUTH_ENVIRONMENT - Environment name (development/staging/production)
  • AGENTAUTH_TOKEN_LIFETIME - Custom token lifetime in seconds
  • AGENTAUTH_DEBUG - Enable debug logging (true/false)

Troubleshooting

"Missing required environment variable"

Make sure you've created a .env file from the template:

cp .env.agentauth .env
# Edit .env with your credentials

"Failed to connect to API"

Check that:

  1. Your AGENTAUTH_BASE_URL is correct
  2. The API server is running
  3. Your network allows connections to the API

Use agentauth test to validate locally first.

"Invalid credentials"

Verify your agent ID and API key are correct:

agentauth test --agent-id your-id --api-key your-key --verbose

Related Packages

Documentation

Full documentation: docs.agentauth.dev

License

MIT

Support