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

@jack230230/agent

v0.0.19

Published

AI Agent that can be started from a remote configuration URL or local config file

Readme

@zhenwei/agent

AI Agent that can be started from a remote configuration URL. This package allows you to quickly spin up an AI agent using Claude or OpenAI, configured through a centralized dashboard.

Quick Start

Start an agent using npx (no installation required):

# From a remote configuration URL
npx -y @jack230230/agent https://your-dashboard.com/api/ac/your-token

# From a local configuration file
npx -y @jack230230/agent ./agent-config.json

Features

  • 🤖 Support for Claude (Anthropic) and OpenAI providers
  • 🔌 Model Context Protocol (MCP) support
  • 🔧 Built-in tools: file operations, shell operations, web automation, and more
  • 📝 Memory management
  • ⏰ Scheduled tasks
  • 🌐 Remote configuration via API

Prerequisites

Required Environment Variables

Depending on which AI provider you're using, you'll need one of these API keys:

# For Claude (Anthropic)
export ANTHROPIC_API_KEY="your-api-key"

# For OpenAI
export OPENAI_API_KEY="your-api-key"

Optional Environment Variables

For Mac automation features:

export UITARS_URL="http://localhost:8083"  # Default
export CUA_PROVIDER="uitars"               # Default

Usage

Using npx (Recommended)

The easiest way to start an agent is using npx with either a config URL or a local config file:

From Remote URL

npx -y @zhenwei/agent https://localhost:3001/api/ac/token_abc123

The config URL should be in the format: https://your-dashboard/api/ac/<token>

From Local Config File

# Relative path
npx -y @zhenwei/agent ./agent-config.json

# Absolute path
npx -y @zhenwei/agent /path/to/agent-config.json

# Home directory
npx -y @zhenwei/agent ~/my-agents/config.json

Using the CLI after installation

# Install globally
npm install -g @zhenwei/agent

# Run with URL
agent https://your-dashboard.com/api/ac/your-token

# Run with local config file
agent ./agent-config.json

Configuration

The agent configuration can be fetched from a remote URL or loaded from a local JSON file. The configuration includes:

  • Agent name and provider (Claude/OpenAI)
  • System prompt
  • Enabled tools (file operations, shell, web, etc.)
  • MCP server configurations
  • Provider-specific settings (model, temperature, etc.)
  • Authentication credentials for dashboard connection

Example Local Configuration File

Here's an example of a local configuration file (agent-config.json):

{
  "name": "my-agent",
  "provider": "claude",
  "profile": "You are a helpful AI assistant",
  "workingDirectory": "~/.workers/my-agent",
  "maxTurns": 100,
  "scheduleCron": null,
  "providerConfig": {
    "model": "claude-sonnet-4-20250514",
    "maxThinkingTokens": 10000
  },
  "tools": {
    "fileOperations": true,
    "shellOperations": true,
    "webOperations": true,
    "taskManagement": true,
    "fileNavigation": true
  },
  "auth": {
    "agentId": 1,
    "token": "your-agent-token",
    "dashboardUrl": "http://localhost:3001",
    "websocketUrl": "http://localhost:3005"
  }
}

Note: The auth section is required and contains:

  • agentId: The agent ID from your dashboard
  • token: Authentication token for the agent
  • dashboardUrl: URL of your dashboard
  • websocketUrl: WebSocket server URL for real-time communication

Development

Local Development

# Clone the repository
git clone https://github.com/zhenwei/Jessica.git
cd Jessica/apps/agent

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

Building

pnpm build

Publishing

# From the root of the workspace
pnpm publish:agent

Architecture

This agent connects to a dashboard via WebSocket to receive commands and report status. It supports:

  • Multiple AI Providers: Claude (Anthropic) and OpenAI
  • MCP (Model Context Protocol): Connect to various MCP servers for extended capabilities
  • Built-in Tools: File operations, shell commands, web automation, task management
  • Remote Configuration: Fetch configuration from a centralized dashboard
  • Real-time Communication: WebSocket connection for bi-directional communication

License

MIT

Author

Zhenwei

Repository

https://github.com/zhenwei/Jessica