kagi-cli

Access Kagi search and AI services from the terminal with JSON output.

139|15|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Microck/kagi-cli --skill kagi-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kagi-cli
Source: https://github.com/Microck/kagi-cli/tree/main/docs
Command: npx skills add https://github.com/Microck/kagi-cli --skill kagi-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a single command‑line interface to Kagi, unlocking powerful search, quick answers, AI assistant, translation, summarization, and batch processing directly from the terminal, eliminating the need to switch to the web UI or write custom API calls.

Core Features & Use Cases

  • Search & Snap: Perform Kagi searches with JSON output, region/time filters, and lenses.
  • Quick Answer & Assistant: Get concise answers with references and maintain threaded conversations.
  • Translate & Summarize: Translate text and summarize URLs using subscriber features.
  • Automation: Batch processing and scriptable JSON output for CI/CD pipelines and other automation tasks.

Quick Start

Run kagi search "latest AI developments" to instantly retrieve structured results in your terminal.

Frequently Asked Questions about kagi-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Kagi search and AI assistant directly from the terminal?

You can access Kagi search and AI assistant from the terminal by running commands like `kagi search` to retrieve structured JSON results, while the assistant feature supports maintaining threaded conversations without needing the web UI.

Can I get JSON output from Kagi searches for CI/CD pipeline automation?

Yes, Kagi searches return JSON output designed for easy script integration, enabling batch processing, region and time filtering, and seamless automation within CI/CD pipelines and other terminal workflows.

Does the Kagi CLI support text translation and URL summarization?

Yes, the CLI supports text translation and URL summarization using Kagi subscriber features, allowing developers to process and condense information directly from the command line.

What is the best way to script Kagi AI queries across macOS, Linux, and Windows?

The CLI runs natively on macOS, Linux, and Windows, using scriptable JSON output to provide a consistent interface for automating Kagi AI queries, quick answers, and search tasks across different operating systems.

How do I get quick answers with references using Kagi in the terminal?

You can get concise quick answers with references by using the CLI's quick answer feature, retrieving summarized information and citations directly in the terminal for immediate developer reference.

Are there limitations to using Kagi translation and summarization features in the CLI?

Translation and summarization features require a Kagi subscriber account, and while the CLI supports batch processing and JSON output, complex web UI interactions are not replicated in the terminal environment.