A proxy that exposes Kagi's LLM platform.
Create a .env file in the project root:
cp .env.example .env
# Edit .env with your actual valuesOr use mise.local.toml:
cp .env.example mise.local.toml
# Edit mise.local.toml with your actual valuesOr set environment variables directly:
export KAGI_SESSION_KEY="your_session_key_here"
export PORT=5000 # optional, defaults to 5000| Variable | Description | How to Get |
|---|---|---|
KAGI_SESSION_KEY |
Your Kagi session cookie | Log into kagi.com, open DevTools → Application → Cookies → kagi_session value |
| Variable | Default | Description |
|---|---|---|
PORT |
5000 | Port to run the proxy server on |
python server.pyThe proxy will be available at http://localhost:$PORT.
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
Copyright (C) 2024-2025 Cyberes, Alex Lee
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See LICENSE for the full license text.