# Kagi CLI

Simple command line interface to [Kagi's APIs]https://help.kagi.com/kagi/api/overview.html.

## 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
```

2. Query an API, e.g.:

```
% kg fastgpt "What is the meaning of life, the universe, and everything?"
```

3. For more details:

```
% kg --help
```