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

@uaito/ai

v0.1.9

Published

UAITO AI package

Readme

@uaito/ai

This package provides a powerful Agent class that can be used to orchestrate tasks with various Large Language Models. It also includes a command-line interface (CLI) for interacting with the agent directly from your terminal.

Installation

npm install @uaito/ai

or

yarn add @uaito/ai

Library Usage

The main export of this package is the Agent class. You can use it to wrap any LLM provider that conforms to the @uaito/sdk's BaseLLM interface.

import { Agent } from '@uaito/ai';
import { OpenAI } from '@uaito/openai';
import { MessageArray } from '@uaito/sdk';

async function main() {
  const llm = new OpenAI({
    options: {
        // ... your OpenAI options
    }
  });
  
  const agent = new Agent(llm);
  
  const history = new MessageArray([]); // or provide existing message history
  await agent.addInputs(history);
  
  const { response } = await agent.performTask("Hello, who are you?");
  
  for await (const chunk of response) {
    if (chunk.type === 'message') {
        for (const content of chunk.content) {
            if (content.type === 'text') {
                process.stdout.write(content.text);
            }
        }
    }
  }
}

main();

CLI Usage

This package also provides the uaito-cli command, which allows you to run the agent from your command line.

Command

uaito-cli run <message> [options]

Runs the application with a given configuration.

Arguments

  • message: (Required) The message to send to the agent.

Options

  • --provider, -p: (Required) The LLM provider to use.
    • Choices: OpenAI, Anthropic, Grok, Google, Local, API
  • --model, -m: (Required) The model to use. The available models depend on the selected provider. See provider-specific details below.
  • --apiKey: The API key for the provider. If not provided, the CLI will look for an environment variable.

Provider-specific Details and Examples

OpenAI

  • Provider value: OpenAI
  • Models: gpt-5-nano, gpt-5-mini.
  • API Key: Use the --apiKey option or set the OPENAI_API_KEY environment variable.

Example:

npx uaito-cli run "Translate 'Hello, world!' to French." -p OpenAI -m gpt-5-nano

Anthropic

  • Provider value: Anthropic
  • Models: Any model string supported by the Anthropic API. E.g., claude-4-sonnet (which corresponds to "claude-sonnet-4-2025-05-14").
  • API Key: Use the --apiKey option or set the ANTHROPIC_API_KEY environment variable.

Example:

npx uaito-cli run "What is the capital of France?" -p Anthropic -m claude-4-sonnet

Grok

  • Provider value: Grok
  • Models: grok-4.
  • API Key: Use the --apiKey option or set the GROK_API_KEY environment variable.

Example:

npx uaito-cli run "Explain quantum computing in simple terms." -p Grok -m grok-4

Google

  • Provider value: Google
  • Models: gemini-2.5-pro.
  • API Key: Use the --apiKey option or set the GOOGLE_API_KEY environment variable.

Example:

npx uaito-cli run "What is the capital of Spain?" -p Google -m gemini-2.5-pro

Local

  • Provider value: Local
  • Models: Only onnx-community/Lucy-ONNX is currently supported.
  • API Key: Not required.

Example:

npx uaito-cli run "Write a short poem about coding." -p Local -m onnx-community/Lucy-ONNX

API

  • Provider value: API
  • Description: This provider uses the UAITO API endpoint. It currently uses the Anthropic provider under the hood.
  • Models: Any model string supported by the backend.
  • API Key: Use the --apiKey option or set the GROK_API_KEY environment variable.

Example:

npx uaito-cli run "Summarize the provided text." -p API -m some-anthropic-model