Secure and local AI on your desktop with a built-in RAG knowledge base and Markdown note support.
Like Klee? Give it a star 🌟, visit our Website or join our Discord.
At its core, Klee is built on:
- Ollama: For running local LLMs quickly and efficiently.
- LlamaIndex: As the data framework.
We warmly welcome contributions to Klee! Here are some ways you can get involved:
- Contribute Code: Develop new features or enhance existing code.
- Fix Bugs: Submit solutions for any bugs you encounter.
- Maintain Issues: Assist in managing GitHub issues.
- Product Design: Take part in design discussions.
- Write Documentation: Enhance user manuals and guides.
- Community Engagement: Participate in discussions and support users.
- Promote Usage: Help spread the word about Klee.
You can download the released version here or you can setup following the processes below:
- Node.js 20.x or higher
- Yarn 1.22.19 or higher
git clone https://github.com/signerlabs/klee-client.git
cd klee-client
yarn install
Copy the .env.example
file to .env
:
cp .env.example .env
Edit the .env
file to configure the following environment variables according to your requirements:
# Remote Mode Configuration
# Set to 'true' to enable remote mode, 'false' to use local mode (default is 'false')
VITE_USE_SUPABASE=false
# Supabase configuration (only required if VITE_USE_SUPABASE=true)
# These are used to configure your own remote service
# If not specified, the system will use our default deployed service
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_AUTH_CALLBACK_URL=your_callback_url
# Ollama service address (default: http://localhost:11434)
VITE_OLLAMA_BASE_URL=http://localhost:11434
# Local Python service address (default: http://localhost:6190)
VITE_REQUEST_PREFIX_URL=http://localhost:6190
Before running the client, you need to set up and start the backend service. Clone and configure the backend service repository:
git clone https://github.com/signerlabs/klee-service.git
cd klee-service
Follow the installation instructions in the backend repository to set up and start the service. The backend service needs to be running on port 6190 (or the port you specified in VITE_REQUEST_PREFIX_URL
) for the client to connect properly.
Refer to the klee-service repository for detailed backend setup instructions.
yarn dev
This command will start both the Vite development server and the Electron application.
yarn build
Edit .env
file if you need to build a signed application for macOS.
# Apple ID account
[email protected]
# Apple ID password or app-specific password
APPLEIDPASS=your_apple_id_password
# Apple Developer Team ID
APPLETEAMID=your_team_id
After building is complete, you can find the compiled application in the dist
directory.
yarn type-check
: Run TypeScript type checkingyarn lint
: Run ESLint and Stylelint for code quality checkingyarn lint:fix
: Automatically fix resolvable code style issuesyarn generate-icons
: Generate application icons (requires app-icon.png file)
Electron | React | TypeScript | Vite | Tailwind CSS | Radix UI | i18nex | React Query | Jotai