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

@deepractice-ai/agent-cli

v0.4.14

Published

CLI for running Deepractice AI Agent

Readme

@deepractice-ai/agent-cli

CLI tool for running Deepractice AI Agent - a visual AI agent interface powered by Claude.

Quick Start

# Install globally
npm install -g @deepractice-ai/agent-cli

# Run the server
agentx http --anthropic-api-key YOUR_API_KEY

The server will start on http://0.0.0.0:5200 by default.

Installation

Global Installation (Recommended)

npm install -g @deepractice-ai/agent-cli

Using npx (No Installation)

npx @deepractice-ai/agent-cli agentx http --anthropic-api-key YOUR_API_KEY

Local Development

# Clone the repository
git clone https://github.com/Deepractice/Agent.git
cd Agent

# Install dependencies
pnpm install

# Build agent-cli
pnpm --filter @deepractice-ai/agent-cli build

# Run locally
node apps/agent-cli/dist/bin/agent-cli.js http --anthropic-api-key YOUR_API_KEY

Usage

Basic Command

agentx http [options]

Options

| Option | Description | Default | | ---------------------------- | ---------------------------- | --------------------------- | | --host <host> | Host to bind to | 0.0.0.0 | | --port <port> | Port to listen on | 5200 | | --project <path> | Project directory path | Current directory | | --anthropic-api-key <key> | Anthropic API key (required) | - | | --anthropic-base-url <url> | Anthropic API base URL | https://api.anthropic.com | | --node-env <env> | Node environment | production |

Examples

Basic Usage

# Start with API key
agentx http --anthropic-api-key sk-ant-xxxxx

# Custom port
agentx http --port 8080 --anthropic-api-key sk-ant-xxxxx

# Custom project directory
agentx http --project /path/to/project --anthropic-api-key sk-ant-xxxxx

Using Environment Variables

Instead of passing options via CLI, you can use environment variables:

export ANTHROPIC_API_KEY=sk-ant-xxxxx
export PORT=8080
export PROJECT_PATH=/path/to/project

agentx http

Note: The CLI does not automatically load .env files. You must either:

  • Set environment variables manually (as shown above)
  • Pass options via command-line flags
  • Use a tool like dotenv-cli to load env files

Docker Usage

docker run -d \
  -p 5200:5200 \
  -v /local/project:/project \
  -e ANTHROPIC_API_KEY=sk-ant-xxxxx \
  deepracticexs/agent:latest

Configuration

The CLI sets up environment variables that are used by the underlying agent-service:

  • NODE_ENV: Node environment mode
  • PORT: Server port
  • PROJECT_PATH: Working directory for the agent
  • ANTHROPIC_API_KEY: Your Anthropic API key (required)
  • ANTHROPIC_BASE_URL: Custom API endpoint (optional)

Architecture

The agentx CLI is a lightweight wrapper that:

  1. Parses command-line arguments
  2. Sets up environment variables
  3. Dynamically loads and starts the agent-service

This design allows for:

  • Simple deployment (npm install -g)
  • Easy configuration via CLI or environment variables
  • Clean separation between CLI interface and server logic

Environment Priority

Configuration is loaded in the following priority (highest to lowest):

  1. CLI options (e.g., --port 8080)
  2. Environment variables (e.g., export PORT=8080)

Note: The CLI does not load .env files automatically. Use environment variables or CLI options.

Requirements

  • Node.js >= 20.0.0
  • Anthropic API key

Troubleshooting

Port Already in Use

# Kill process on port 5200
lsof -ti:5200 | xargs kill -9

# Or use a different port
agentx http --port 8080

Permission Denied (PROJECT_PATH)

Make sure the specified project path is writable:

# Use a directory in your home folder
agentx http --project ~/my-project

API Key Issues

# Verify your API key is set
echo $ANTHROPIC_API_KEY

# Or pass it directly
agentx http --anthropic-api-key sk-ant-xxxxx

Development

Build

pnpm build

Watch Mode

pnpm dev

Testing

# Test the built CLI
node dist/bin/agent-cli.js http --help

Related Projects

License

MIT

Support


Made with ❤️ by Deepractice Team