Enter your password to continue
No billing snapshot yet.
How to get your session token:
token=)No token configured
The Kagi Assistant enables AI chat through Kagi's models. It requires a separate browser cookie in addition to the session token above.
How to get the _kagi_search_ cookie:
_kagi_search_This cookie is separate from the session token. The assistant exposes an OpenAI-compatible API at /v1/chat/completions.
No cookie configured
| Name | Id to use | Model | Search default | Lens |
|---|
| Name | Id |
|---|
Read-only view of the Kagi account's lenses. Use a lens name or id as the lens parameter on /api/v0/search. Only enabled lenses can be searched; manage them at kagi.com/settings/lenses.
| Name | ID | Enabled | Position | Description |
|---|---|---|---|---|
| Click Refresh to load lenses from Kagi. | ||||
External clients use these keys to authenticate with this wrapper.
| Name | Key | Actions |
|---|---|---|
| Loading... | ||
curl -H "Authorization: Bot YOUR_API_KEY" \ "/api/v0/search?q=hello+world&limit=5"
curl -H "Authorization: Bot YOUR_API_KEY" \ "/api/v0/lenses" curl -H "Authorization: Bot YOUR_API_KEY" \ "/api/v0/search?q=hello+world&lens=Reddit"
curl -X POST "/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-4-6-sonnet","messages":[{"role":"user","content":"Hello!"}],"stream":true}'