Installation
This guide will help you install zk-chat on your system.
System Requirements
- Python: 3.11 or higher
- Operating System: macOS, Linux (Windows support is experimental)
- LLM Backend: Either Ollama (local) or OpenAI API access
Prerequisites
For Local LLM (Ollama - Recommended)
If you want to use local AI models, you'll need to install Ollama:
After installing Ollama, pull a model:
Model Recommendations (2025)
Choose based on your available RAM:
64GB+ RAM (High-End):
- gpt-oss:120b - Most capable for RAG and reasoning
- qwen3:32b - Latest generation, very versatile
36-48GB RAM (Mid-Range):
- gpt-oss:20b - Excellent balance, best for RAG tasks
- gemma3:27b - Most capable single-GPU model with vision
- qwen3:14b - Fast and capable
16-32GB RAM (Standard):
- qwen3:8b - Recommended - Fast, versatile, excellent for RAG
- qwen2.5:7b - Proven alternative, very reliable
- mistral:7b - Proven reliable performer
For visual analysis:
- gemma3:27b - Recommended - Best vision capabilities
- qwen3-vl:8b - Fast and capable for images
For OpenAI API
If you prefer to use OpenAI's API instead of local models:
- Get an API key from OpenAI
- Set the environment variable:
Installation Methods
Method 1: Using pipx (Recommended)
pipx installs Python applications in isolated environments, preventing dependency conflicts.
Install pipx:
Install zk-chat:
Upgrade zk-chat:
Install plugins:
# Example: Wikipedia plugin
pipx inject zk-chat zk-rag-wikipedia
# Example: Image generator plugin
pipx inject zk-chat zk-rag-image-generator
Method 2: Using pip in a Virtual Environment
If you prefer managing your own virtual environment:
Create and activate a virtual environment:
Install zk-chat:
Install plugins (optional):
Verify Installation
Verify that zk-chat is installed correctly:
You should see the command-line help output with available commands.
First-Time Setup
When you first run zk-chat, you'll need to provide:
- Vault Path: The location of your Zettelkasten folder
- Model Selection: Choose an LLM model for chat
- Visual Model (optional): Choose a model for image analysis
Example first run:
The tool will:
- Prompt you to select a chat model
- Ask if you want visual analysis capabilities
- Build an initial index of your documents
Index Building
The first index build may take a few minutes depending on the size of your Zettelkasten.
Next Steps
- Read the Quick Start Guide for a hands-on tutorial
- Explore Command Line Interface for detailed command reference
- Learn about Available Tools to understand what the AI can do
Troubleshooting
Ollama Connection Issues
If zk-chat can't connect to Ollama:
-
Ensure Ollama is running:
-
Check that the model is available:
Import Errors
If you encounter import errors, ensure you have the correct Python version:
Permission Issues
If you get permission errors during installation:
- Use
pipxinstead of system-wide pip installation - Or create a virtual environment as shown in Method 2