bcspragu / kagi

A simple CLI for querying the Kagi search engine via their FastGPT API
MIT License
14 stars 0 forks source link

Storing KAGI_API_KEY in 1password #1

Open pearagit opened 2 months ago

pearagit commented 2 months ago

Recently came across this tool and saw your note about credentials. If anybody uses 1password, here's how you can run kagi:

bcspragu commented 2 months ago

Thanks for the tips! On other projects (ex), I've also exposed the option as a flag and just made a simple wrapper script that calls out to my password manager (e.g. pass, but any CLI will work). I've added support for passing the API key as a flag and updated the docs accordingly in https://github.com/bcspragu/kagi/commit/5354ec54b1e334c37585f56b563b4b88d536db2f