Find ai runnerIntroduction

Introduction

Detect and invoke AI CLI tools (Claude, Gemini, Codex, Copilot, Cursor, Crush, Amp, Kimi, Qwen, OpenCode, Droid) installed on the system

Find AI Runner

Detect and invoke AI CLI tools installed on the system.

@visulima/find-ai-runner provides a unified interface for discovering and running 11 popular AI CLI tools. It handles detection across multiple strategies, builds the correct CLI arguments for each provider, and executes prompts with configurable timeouts and models.

Key Features

  • 11 providers supported — Amp, Claude, Codex, Copilot, Crush, Cursor, Droid, Gemini, Kimi, OpenCode, Qwen
  • Three detection strategies — Environment variables, system PATH lookup, and known installation paths
  • Unified execution API — Single runProvider() function works with any detected provider
  • Cross-platform — Works on Linux, macOS, and Windows
  • Zero dependencies — No runtime dependencies
  • TypeScript first — Full type safety with exported types

Quick Start

import { detectAvailableProviders, runProvider } from "@visulima/find-ai-runner";

// Find all installed AI CLI tools
const available = detectAvailableProviders();
console.log(`Found ${available.length} AI providers`);

// Run a prompt against the first available provider
const [provider] = available;

if (provider) {
    const result = await runProvider(provider, "Explain this error: Cannot read property 'foo' of undefined");
    console.log(result.stdout);
}

Next Steps

Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues