Skip to content

Secure and local AI on your desktop with a built-in RAG knowledge base and Markdown note support.

License

Notifications You must be signed in to change notification settings

signerlabs/Klee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klee

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.

🌠 Screenshot

Download and run open-source LLMs on your desktop

Klee Screenshot

Off line usage with ZERO data collection

Klee Screenshot

Built-in markdown notes

Klee Screenshot

File & folder knowledge base

Klee Screenshot

At its core, Klee is built on:

  • Ollama: For running local LLMs quickly and efficiently.
  • LlamaIndex: As the data framework.

🤝 Contributing

We warmly welcome contributions to Klee! Here are some ways you can get involved:

  1. Contribute Code: Develop new features or enhance existing code.
  2. Fix Bugs: Submit solutions for any bugs you encounter.
  3. Maintain Issues: Assist in managing GitHub issues.
  4. Product Design: Take part in design discussions.
  5. Write Documentation: Enhance user manuals and guides.
  6. Community Engagement: Participate in discussions and support users.
  7. Promote Usage: Help spread the word about Klee.

🔧 Installation

You can download the released version here or you can setup following the processes below:

1. System Requirements

  • Node.js 20.x or higher
  • Yarn 1.22.19 or higher

2. Clone the Repository

git clone https://github.com/signerlabs/klee-client.git
cd klee-client

3. Install Dependencies

yarn install

4. Configure Environment Variables

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:

Basic Configuration

# 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

5. Set Up Backend Service

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.

6. Run in Development Mode

yarn dev

This command will start both the Vite development server and the Electron application.

7. Build the Application - Optional

yarn build

8. macOS App Signing and Notarization - Optional

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.

🚀 Other Useful Commands

  • yarn type-check: Run TypeScript type checking
  • yarn lint: Run ESLint and Stylelint for code quality checking
  • yarn lint:fix: Automatically fix resolvable code style issues
  • yarn generate-icons: Generate application icons (requires app-icon.png file)

📖 Technology Stack

Electron | React | TypeScript | Vite | Tailwind CSS | Radix UI | i18nex | React Query | Jotai