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

visaire

v2.2.2

Published

A fully autonomous agentic CLI tool for interacting with large language models (Claude, Gemini, GPT) that can execute multi-step tasks automatically

Downloads

27

Readme

Visaire CLI

A powerful and user-friendly command-line interface for interacting with Large Language Models (Claude, Gemini, GPT). Get AI assistance directly in your terminal with an interactive conversational experience.

🚀 Quick Start

1. Install

npm install -g visaire

2. Setup (Interactive)

visaire setup

This will guide you through:

  • Choosing your preferred AI provider
  • Setting up your API key
  • Configuring default settings

3. Start Using

Interactive Mode (Recommended)

# Start interactive conversation
visaire

# Or explicitly use interactive command
visaire interactive

Direct Commands

# Simple question
visaire "Explain quantum computing"

# Pipe input
echo "Review this code for bugs" | visaire

# Use specific provider
visaire --provider gpt "Write a Python function to sort a list"

That's it! 🎉

📖 Usage

Interactive Mode (New!)

The interactive mode provides a modern conversational experience:

visaire

Features:

  • Continuous conversation - Chat naturally with the AI
  • Conversation history - Context is maintained throughout the session
  • Provider switching - Change providers mid-conversation
  • Special commands - Use /help, /clear, /history, /switch, /exit
  • Clean interface - No technical artifacts, just clean responses

Basic Commands

# Simple question
visaire "How do I center a div in CSS?"

# Pipe input
echo "Review this code for bugs" | visaire

# Use specific provider
visaire --provider gpt "Write a Python function to sort a list"

# Show help
visaire --help

Configuration Commands

# Interactive setup (recommended for first-time users)
visaire setup

# Show current configuration
visaire config show

# Set API key for a provider
visaire config set --api-key sk-xxx --provider claude

# Set default provider
visaire config set --provider claude

# Reset all settings
visaire config reset

⚙️ Configuration

Option 1: Interactive Setup (Recommended)

visaire setup

Option 2: Manual Configuration

Create ~/.visairerc:

{
  "defaultProvider": "claude",
  "agent": {
    "enabled": true
  }
}

Option 3: Environment Variables

export CLAUDE_API_KEY="sk-ant-your-key-here"
export GPT_API_KEY="sk-your-openai-key-here"
export GEMINI_API_KEY="your-google-api-key-here"

🔑 Getting API Keys

Claude (Anthropic)

  1. Visit console.anthropic.com
  2. Create account and navigate to API Keys
  3. Generate new key (starts with sk-ant-)

GPT (OpenAI)

  1. Visit platform.openai.com
  2. Create account and navigate to API Keys
  3. Generate new key (starts with sk-)

Gemini (Google)

  1. Visit Google AI Studio
  2. Sign in and create API key
  3. Copy the generated key

🤖 Agent Mode

Visaire includes an intelligent agent that can execute actions based on AI responses:

  • Create files when AI suggests code
  • Run commands when AI provides terminal instructions
  • Install packages when AI recommends dependencies

Enable/disable with:

visaire config set --agent-enabled true

📋 Command Reference

Main Options

| Option | Description | Example | |--------|-------------|---------| | --provider, -p | AI provider (claude/gpt/gemini) | visaire -p claude "question" | | --api-key, -k | API key for provider | visaire -k sk-xxx "question" | | --model, -m | Specific model | visaire -m gpt-4 "question" | | --agent | Enable agent mode | visaire --agent "create a todo app" | | --no-agent | Disable agent mode | visaire --no-agent "explain code" |

Commands

| Command | Description | |---------|-------------| | visaire setup | Interactive first-time setup | | visaire config show | Display current configuration | | visaire config set | Update configuration | | visaire config reset | Reset to defaults |

🔒 Security

API Key Security

  • Recommended: Use visaire setup or environment variables
  • Avoid: Passing API keys via command line (visible in process lists)

Agent Security

  • Agent mode includes built-in safety restrictions
  • Commands are filtered for security
  • User confirmation required for destructive actions

🛠️ Examples

Code Generation

visaire "Create a Python function to calculate fibonacci numbers"

Code Review

cat script.py | visaire "Review this code for potential issues"

Learning

visaire "Explain the difference between let, const, and var in JavaScript"

Project Help

visaire "How do I set up a Node.js project with Express and TypeScript?"

Creative Tasks

visaire "Write a short story about a robot learning to paint"

🔍 Troubleshooting

Common Issues

"No provider configured"

  • Run visaire setup for interactive configuration
  • Or use --provider flag: visaire --provider claude "question"

"No API key found"

  • Run visaire setup to set API key
  • Or use visaire config set --api-key <key> --provider <provider>

"Invalid API key format"

  • Check your API key matches the expected format for your provider
  • Claude: starts with sk-ant-
  • OpenAI: starts with sk-
  • Gemini: alphanumeric string

Network/timeout errors

  • Check internet connection
  • Try again (some providers have temporary issues)
  • Increase timeout: visaire --timeout 60000 "question"

Getting Help

# Show all options
visaire --help

# Show current configuration
visaire config show

# Test your API key
visaire --test-key

# Enable debug mode
DEBUG=1 visaire "test prompt"

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE file for details.

🆘 Support

  • Issues: GitHub Issues
  • Documentation: This README and visaire --help

Made with ❤️ for developers who love working in the terminal.