# Kagi Search

The Kagi Search plugin allows BoltAI to search for relevant information from the Internet using Kagi Search API.

It works similarly to the [Web Search plugin](https://docs.boltai.com/docs/plugins/web-search). Instead of using the Google Programmable Search Engine, it uses Kagi Search API instead.

### How to set up the Kagi Search plugin?

1. Make sure you have generated a Kagi Search API key. Follow [this official guide](https://help.kagi.com/kagi/api/search.html) to get started.
2. Go to Settings > Plugins > Kagi Search. Select tab `Settings` then enter your API key.&#x20;

{% hint style="warning" %}
**IMPORTANT**

At the time of this writing, The Search API is in closed beta and is currently available to Kagi Business (Team) plan. This is currently $19/mo plus search API cost (2.5c per search). Please reach out to <support@kagi.com> for invite.

[Learn more...](https://help.kagi.com/kagi/api/search.html)
{% endhint %}

### How to use the Kagi Search plugin?

It's similar to the Web Search Plugin.

1. Start a new chat. Choose an LLM that supports Function Calling (for example GPT-4o)
2. Enable the Kagi Search plugin. Optionally, enable the Web Browsing plugin.
3. Enter your prompt. BoltAI should smartly decide if it needs to perform a web search.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.boltai.com/docs/plugins/kagi-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
