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

@ui-tars-test/cli

v0.3.12

Published

CLI for GUI Agent

Downloads

1,602

Readme

@ui-tars-test/cli

CLI for GUI Agent - A powerful automation tool for desktop, web, and mobile applications.

Installation

Global Installation

npm install -g @ui-tars-test/cli

Use via npx (without installation)

npx @ui-tars-test/cli run [options]

Local Installation

npm install @ui-tars-test/cli

Usage

Basic Usage

gui-agent run

This will start an interactive prompt where you can:

  1. Configure your VLM model settings (provider, base URL, API key, model name)
  2. Select the target operator (computer, browser, or android)
  3. Enter your automation instruction

Available Commands

gui-agent run

Run GUI Agent automation with optional parameters.

gui-agent reset

Reset stored configuration (API keys, model settings, etc.).

gui-agent reset                    # Reset default configuration file
gui-agent reset -c custom.json     # Reset specific configuration file

Command Line Options

gui-agent run [options]

Options:

  • -p, --presets <url> - Load model configuration from a remote YAML preset file
  • -t, --target <target> - Specify the target operator:
    • computer - Desktop automation (default)
    • browser - Web browser automation
    • android - Android mobile automation
  • -q, --query <query> - Provide the automation instruction directly via command line
  • -c, --config <path> - Path to a custom configuration file (default: ~/.gui-agent-cli.json)

Examples

Computer Automation

gui-agent run -t computer -q "Open Chrome browser and navigate to github.com"

Android Mobile Automation

Make sure your Android device is connected via USB debugging:

gui-agent run -t android -q "Open WhatsApp and send a message to John"

Browser Automation

gui-agent run -t browser -q "Search for 'GUI Agent automation' on Google"

Using Remote Presets

gui-agent run -p "https://example.com/config.yaml" -q "Automate the login process"

Configuration

Model Configuration

The CLI requires VLM (Vision Language Model) configuration. You can provide this via:

  1. Interactive setup - When you first run the CLI, it will prompt for:

    • Model provider (volcengine, anthropic, openai, lm-studio, deepseek, ollama)
    • Model base URL
    • API key
    • Model name
  2. Configuration file - Settings are saved to ~/.gui-agent-cli.json:

    {
      "provider": "openai",
      "baseURL": "https://api.openai.com/v1",
      "apiKey": "your-api-key",
      "model": "gpt-4-vision-preview",
      "useResponsesApi": false
    }
  3. Remote presets - Load configuration from a YAML file:

    vlmBaseUrl: "https://api.openai.com/v1"
    vlmApiKey: "your-api-key"
    vlmModelName: "gpt-4-vision-preview"
    useResponsesApi: false

Supported Providers

  • volcengine - VolcEngine (ByteDance) models
  • anthropic - Anthropic Claude models
  • openai - OpenAI models (default)
  • lm-studio - LM Studio local models
  • deepseek - DeepSeek models
  • ollama - Ollama local models

Operators

Computer Automation (nut-js)

Using Remote Presets

gui-agent start -p "https://example.com/config.yaml" -q "Automate the login process"

Configuration

Model Configuration

The CLI requires VLM (Vision Language Model) configuration. You can provide this via:

  1. Interactive setup - When you first run the CLI, it will prompt for:

    • Model provider (volcengine, anthropic, openai, lm-studio, deepseek, ollama)
    • Model base URL
    • API key
    • Model name
  2. Configuration file - Settings are saved to ~/.gui-agent-cli.json:

    {
      "provider": "openai",
      "baseURL": "https://api.openai.com/v1",
      "apiKey": "your-api-key",
      "model": "gpt-4-vision-preview",
      "useResponsesApi": false
    }
  3. Remote presets - Load configuration from a YAML file:

    vlmBaseUrl: "https://api.openai.com/v1"
    vlmApiKey: "your-api-key"
    vlmModelName: "gpt-4-vision-preview"
    useResponsesApi: false

Supported Providers

  • volcengine - VolcEngine (ByteDance) models
  • anthropic - Anthropic Claude models
  • openai - OpenAI models (default)
  • lm-studio - LM Studio local models
  • deepseek - DeepSeek models
  • ollama - Ollama local models

Operators

Desktop Automation (nut-js)

  • Automates desktop applications
  • Uses computer vision to identify UI elements
  • Supports mouse and keyboard actions
  • Works with Windows, macOS, and Linux

Android Automation (adb)

  • Controls Android devices via ADB
  • Requires USB debugging enabled
  • Can automate mobile apps and system UI
  • Supports touch gestures and device interactions

Configuration Management

Reset Configuration

To clear all stored configuration and start fresh:

gui-agent reset

This will remove the configuration file (~/.gui-agent-cli.json) and the CLI will prompt you to configure settings again on the next run.

Custom Configuration File

You can specify a custom configuration file location:

gui-agent run -c /path/to/custom-config.json

To reset a specific configuration file:

gui-agent reset -c /path/to/custom-config.json

Development

Building the CLI

npm run build

Development Mode

npm run dev

Running Tests

npm test

License

Apache-2.0

Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.