README.md

Kagi CLI

Simple command line interface to Kagi's APIs.

Installation

Install Xcode or a Swift toolchain.

% swift build --configuration release
% cp .build/release/fst somewhere/in/you/path/.

Usage

  1. Add an environment variable:
export FASTGPT_API_TOKEN=YOUR_API_TOKEN
  1. Query an API, e.g.:
% kg fastgpt "What is the meaning of life, the universe, and everything?"
  1. For more details:
% kg --help