Individual skill
kagi-cli
Terminal CLI for Kagi subscribers with search, quick answers, assistant, translate, summarization, batch processing, and JSON-first output for automation. Use this skill when the user mentions kagi, wants to search via kagi, needs CLI-based AI assistance, or wants terminal access to Kagi features.
docs/SKILL.md
Source commit 183a6d215c21bc04cf14aa8dea8730b4360e5c2c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 191
- Repository last updated
- Nov 2, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- automation Repository topic
- cli Repository topic
- kagi Repository topic
- rust Repository topic
- search Repository topic
- terminal Repository topic
- kagi-search Repository topic
- privacy Repository topic
- kagi-browser Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.gitignoreasset · 58 bytesREADME.mddoc · 686 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesSKILL.mdcore · 13,843 bytesapi-coverage.mddoc · 274 bytesapp/[[...slug]]/page.tsxruns · 1,401 bytesapp/api/search/route.tsruns · 153 bytesapp/global.cssasset · 393 bytesapp/layout.tsxruns · 826 bytescomponents/logo.tsxruns · 576 bytescontent/docs/commands/ask-page.mdxasset · 3,249 bytescontent/docs/commands/assistant.mdxasset · 12,175 bytescontent/docs/commands/auth.mdxasset · 6,258 bytescontent/docs/commands/bang.mdxasset · 3,243 bytescontent/docs/commands/batch.mdxasset · 585 bytescontent/docs/commands/completion.mdxasset · 2,193 bytescontent/docs/commands/enrich.mdxasset · 3,541 bytescontent/docs/commands/extract.mdxasset · 4,118 bytescontent/docs/commands/fastgpt.mdxasset · 4,925 bytescontent/docs/commands/history.mdxasset · 496 bytescontent/docs/commands/lens.mdxasset · 3,742 bytescontent/docs/commands/mail.mdxasset · 7,172 bytescontent/docs/commands/mcp.mdxasset · 10,615 bytescontent/docs/commands/meta.jsonasset · 519 bytescontent/docs/commands/news.mdxasset · 6,974 bytescontent/docs/commands/notify.mdxasset · 871 bytescontent/docs/commands/quick.mdxasset · 5,107 bytescontent/docs/commands/redirect.mdxasset · 2,804 bytescontent/docs/commands/search.mdxasset · 13,606 bytescontent/docs/commands/site-pref.mdxasset · 885 bytescontent/docs/commands/skills.mdxasset · 2,382 bytescontent/docs/commands/smallweb.mdxasset · 2,529 bytescontent/docs/commands/summarize.mdxasset · 8,833 bytescontent/docs/commands/translate.mdxasset · 5,374 bytescontent/docs/commands/usage.mdxasset · 2,069 bytescontent/docs/commands/watch.mdxasset · 729 bytescontent/docs/guides/advanced-usage.mdxasset · 15,737 bytescontent/docs/guides/authentication.mdxasset · 23,439 bytescontent/docs/guides/installation.mdxasset · 13,818 bytescontent/docs/guides/meta.jsonasset · 228 bytescontent/docs/guides/quickstart.mdxasset · 14,166 bytescontent/docs/guides/troubleshooting.mdxasset · 18,663 bytescontent/docs/guides/workflows.mdxasset · 19,110 bytescontent/docs/index.mdxasset · 11,096 bytescontent/docs/meta.jsonasset · 110 bytescontent/docs/project/contributing.mdxasset · 2,338 bytescontent/docs/project/demos.mdxasset · 4,121 bytescontent/docs/project/development.mdxasset · 953 bytescontent/docs/project/meta.jsonasset · 174 bytescontent/docs/project/support.mdxasset · 771 bytescontent/docs/reference/auth-matrix.mdxasset · 16,489 bytescontent/docs/reference/coverage.mdxasset · 8,685 bytescontent/docs/reference/error-reference.mdxasset · 15,553 bytescontent/docs/reference/meta.jsonasset · 214 bytescontent/docs/reference/output-contract.mdxasset · 12,360 bytesdemo-assets/ask-page.gifasset · 14,367 bytesdemo-assets/assistant-custom.gifasset · 3,529 bytesdemo-assets/assistant.gifasset · 138,490 bytesdemo-assets/auth.gifasset · 62,749 bytesdemo-assets/bang-custom.gifasset · 3,407 bytesdemo-assets/lens.gifasset · 3,162 bytesdemo-assets/news.gifasset · 43,023 bytesdemo-assets/quick.gifasset · 35,842 bytesdemo-assets/redirect.gifasset · 3,261 bytesdemo-assets/search.gifasset · 23,901 bytesdemo-assets/summarize.gifasset · 33,851 bytesdemo-assets/translate.gifasset · 13,810 bytesdemos.mddoc · 5,710 bytese2e-runner.mjsruns · 836 bytese2e.config.tsruns · 384 byteslib/source.tsruns · 281 bytesllms.txtdoc · 5,978 bytesmdx-components.tsxruns · 610 bytesnext.config.mjsruns · 171 bytespackage.jsonruns · 905 bytespnpm-lock.yamlasset · 191,351 bytespnpm-workspace.yamlasset · 256 bytespostcss.config.mjsruns · 81 bytespublic/images/demos/ask-page.gifasset · 14,367 bytespublic/images/demos/assistant-custom.gifasset · 3,529 bytespublic/images/demos/assistant.gifasset · 138,490 bytespublic/images/demos/auth.gifasset · 62,749 bytespublic/images/demos/bang-custom.gifasset · 3,407 bytespublic/images/demos/lens.gifasset · 3,162 bytespublic/images/demos/news.gifasset · 43,023 bytespublic/images/demos/quick.gifasset · 35,842 bytespublic/images/demos/redirect.gifasset · 3,261 bytespublic/images/demos/search.gifasset · 23,901 bytespublic/images/demos/summarize.gifasset · 33,851 bytespublic/images/demos/translate.gifasset · 13,810 bytespublic/images/favicon.pngasset · 7,331 bytespublic/images/kagi-cli-logo-dark.svgasset · 42,434 bytespublic/images/kagi-cli-logo-light.svgasset · 58,372 bytesrelease-runbook.mddoc · 9,603 bytessource.config.tsruns · 621 bytestests/config.test.mjsruns · 399 bytestests/docs.e2e.tsruns · 1,906 bytestodo.mddoc · 9,589 bytestsconfig.jsonasset · 709 bytes
Read excerpt
## Overview
kagi-cli is a terminal CLI that provides command-line access to Kagi search, Quick Answer, AI Assistant, translation, summarization, public feeds through `news` and `smallweb`, and account-level search settings like lenses, custom assistants, custom bangs, and redirects. It outputs JSON by default for scripting and automation, with `--format pretty` for human-readable terminal output on the commands that support alternate renderers.
The CLI prioritizes the subscriber session-token path, so existing Kagi subscribers can use most features without paying for API access. Current `/api/v1` Search and Extract features use `KAGI_API_KEY`; legacy paid API features (summarize, fastgpt, enrich) use `KAGI_API_TOKEN`.
## Installation
```bash
# Homebrew (macOS/Linux)
brew tap Microck/kagi
brew install kagi
# Scoop (Windows)