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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dust-tt/dust-cli

v0.3.3

Published

A command-line interface for interacting with Dust.

Downloads

137

Readme

Dust CLI

A command-line interface for interacting with Dust.

Installation

To install the Dust CLI globally, run:

npm install -g @dust-tt/dust-cli

Linux

Dust CLI depends on keytar for storing credentials. On Linux, keytar requires libsecret to be installed.

Depending on your distribution, you will need to run the following command:

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat-based: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret

Usage

The Dust CLI allows you to manage your Dust authentication session and chat with Dust agents.

dust [command] [options]

When no command is provided, the chat command will be used by default.

Commands

  • login: Authenticate with your Dust account.
    • dust login
    • dust login --force: Force re-authentication even if already logged in.
  • status: Check your current authentication status.
    • dust status
  • logout: Log out from your Dust account.
    • dust logout
  • agents-mcp: Select Dust agents and launch a Model Context Protocol server (via SSE transport) to interact with them.
    • dust agents-mcp
    • Optional: --port <number> or -p <number> to specify the listening port (defaults to auto-selection)
    • Optional: --sId <sId> or -s <sId> to specify the agent sId to use directly (can be repeated)
  • chat: Chat with a Dust agent (default command).
    • dust chat or simply dust
    • Optional: --sId <sId> or -s <sId> to specify the agent sId to use directly
    • Optional: --auto to automatically accept all file edit operations without prompting
  • help: Display help information.
    • dust help

Headless Authentication

The Dust CLI supports headless authentication for automated workflows and CI/CD environments. This allows you to authenticate without interactive prompts by providing credentials via environment variables or command-line arguments.

Usage

Method 1: Environment Variables (Recommended)

Set the following environment variables:

export DUST_API_KEY="sk_your_api_key_here"
export DUST_WORKSPACE_ID="ws_abc123"

Then run any command normally:

dust [command]

Method 2: Command-line Arguments

Pass both required parameters with any command:

dust [command] --workspaceId <workspace-id> --key <your-api-key>

Parameters

  • DUST_API_KEY (env) or --api-key (flag): Your API key for authentication
  • DUST_WORKSPACE_ID (env) or --wId (flag): Your workspace ID

Note: Command-line flags take precedence over environment variables. If both are set, the command line flags will be used.

Examples

Using Environment Variables:

# Set environment variables once
export DUST_API_KEY="sk_your_api_key_here"
export DUST_WORKSPACE_ID="ws_abc123"

# Chat with headless auth
dust chat

# Launch agents-mcp with headless auth
dust agents-mcp --port 8080

# Use with specific agent
dust chat --sId 1234567890

Using Command-line Arguments:

# Chat with headless auth
dust chat --wId ws_abc123 --api-key sk_your_api_key_here

# Launch agents-mcp with headless auth
dust agents-mcp --wId ws_abc123 --api-key sk_your_api_key_here --port 8080

# Use with specific agent
dust chat --sId 1234567890 --wId ws_abc123 --api-key sk_your_api_key_here

When to Use Headless Auth

Headless authentication is particularly useful for:

  • Automated scripts and workflows
  • CI/CD pipelines
  • Server environments without interactive terminals
  • Batch processing operations

Security Considerations

  • Use environment variables instead of command-line flags when possible, as command-line arguments may be visible in process lists
  • Store API keys securely and avoid committing them to version control
  • Consider using secrets management tools for production deployments
  • Use .env files locally and proper secrets management in CI/CD environments

Options

  • -v, --version: Display the installed CLI version.
  • -f, --force: Used with the login command to force re-authentication.
  • --auto: Automatically accept all file edit operations without prompting for approval (chat command only).
  • --help: Display help information for the CLI.

In-Chat Commands

While chatting with an agent, you can use these commands by typing them with a forward slash:

  • /exit: Exit the chat session
  • /switch: Switch to a different agent
  • /attach: Open file selector to attach a file
  • /clear-files: Clear any attached files
  • /auto: Toggle auto-approval of file edits on/off

Examples

  • dust (starts a chat with a Dust agent)
  • dust login
  • dust agents-mcp
  • dust agents-mcp --port 8080
  • dust agents-mcp --sId 1234567890
  • dust chat
  • dust chat --sId 1234567890
  • dust chat --auto (automatically accept all file edits)
  • dust help

Development

To set up the development environment:

  1. Make sure you have the right version of Node.js installed (nvm use in the CLI directory).
  2. Install dependencies: npm install
  3. Build the CLI: npm run build or npm run build:dev (or npm run dev for hot-reloading)
  4. Run the CLI locally: node dist/index.js <command>