[GH-ISSUE #3694] [FEAT]: Add Kagi Search to Agent Web Search skill #2381

Closed
opened 2026-02-22 18:29:25 -05:00 by yindo · 2 comments
Owner

Originally created by @grantcarthew on GitHub (Apr 21, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3694

What would you like to see?

The Kagi search engine supports API token generation. It would be great to use this in the agents.

Originally created by @grantcarthew on GitHub (Apr 21, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3694 ### What would you like to see? The [Kagi](https://kagi.com/) search engine supports API token generation. It would be great to use this in the agents.
yindo added the enhancementIntegration Requestfeature request labels 2026-02-22 18:29:25 -05:00
yindo closed this issue 2026-02-22 18:29:26 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 22, 2025):

This can be easily accomplished now with an API Block in an Agent Flow - looking at using any of the provider APIs they host.

@timothycarambat commented on GitHub (Apr 22, 2025): This can be easily accomplished now with an [API Block](https://docs.anythingllm.com/agent-flows/blocks/api-call) in an [Agent Flow ](https://docs.anythingllm.com/agent-flows/overview)- looking at using [any of the provider APIs they host.](https://help.kagi.com/kagi/api/summarizer.html)
Author
Owner

@grantcarthew commented on GitHub (Apr 22, 2025):

Ah, excellent. Thanks @timothycarambat

For anyone wanting to use this, here are the basics:

Flow Name: Kagi Internet Search

Flow Description: Search the internet using the Kagi search engine.

Flow Variables:

  • searchString: {leave-initial-value-blank}
  • searchResult: {leave-initial-value-blank}

Add an API Call block:

I get this in the reply when running the curl:

curl -v  -H "Authorization: Bot $TOKEN"   https://kagi.com/api/v0/search\?q=pizza
{"meta":{"id":"a4c24cbd23591a775a93662de8","node":"australia-southeast1","ms":23,"api_balance":5.0},"data":null,"error":[{"code":2,"msg":"Unauthorized: Search API is currently in beta. Email support@kagi.com to request access.","ref":null}]}

And have emailed support. When trying out the @agent I get:

Agent @agent invoked. Swapping over to agent chat. Type /exit to exit agent execution loop early.
[debug]: @agent is attempting to call flow_b39975fb-a77a-4e39-bf88-04e32297122f tool
Executing flow: Kagi Internet Search
Making GET request to external API...
Sending body to https://kagi.com/api/v0/search?q=pizza: No body
Request failed with status 401
Flow failed: Unknown error

I imagine once I get access, it should work fine.

@grantcarthew commented on GitHub (Apr 22, 2025): Ah, excellent. Thanks @timothycarambat For anyone wanting to use this, here are the basics: Flow Name: Kagi Internet Search Flow Description: Search the internet using the Kagi search engine. Flow Variables: - searchString: {leave-initial-value-blank} - searchResult: {leave-initial-value-blank} Add an API Call block: - URL: https://kagi.com/api/v0/search\?q=${searchString} - Method: GET - Header key: Authorization - Header value: Bot {your-api-token} - Store Response In: searchResult I get this in the reply when running the curl: ```bash curl -v -H "Authorization: Bot $TOKEN" https://kagi.com/api/v0/search\?q=pizza ``` ```json {"meta":{"id":"a4c24cbd23591a775a93662de8","node":"australia-southeast1","ms":23,"api_balance":5.0},"data":null,"error":[{"code":2,"msg":"Unauthorized: Search API is currently in beta. Email support@kagi.com to request access.","ref":null}]} ``` And have emailed support. When trying out the @agent I get: Agent @agent invoked. Swapping over to agent chat. Type /exit to exit agent execution loop early. [debug]: @agent is attempting to call `flow_b39975fb-a77a-4e39-bf88-04e32297122f` tool Executing flow: Kagi Internet Search Making GET request to external API... Sending body to https://kagi.com/api/v0/search\?q=pizza: No body Request failed with status 401 Flow failed: Unknown error I imagine once I get access, it should work fine.
yindo changed title from [FEAT]: Add Kagi Search to Agent Web Search skill to [GH-ISSUE #3694] [FEAT]: Add Kagi Search to Agent Web Search skill 2026-06-05 14:46:14 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2381