Installation¶
Requirements¶
- Python 3.13 or higher (uvx handles this automatically)
- An API key for your chosen AI model (OpenAI, Anthropic, Google, etc.)
Recommended: Use uvx (uv tool)¶
uvx is the recommended way to use Anknote. It provides an isolated environment and handles dependencies automatically.
Install uv first¶
If you don't have uv installed:
# On Linux/macOS
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Or with pip
pip install uv
Use Anknote with uvx¶
Run Anknote directly without permanent installation:
# Show help
uvx anknote --help
# Process a file
uvx anknote my-notes.md
# Process a directory with options
uvx anknote notes/ -o flashcards/ -v
Benefits of uvx: - No conflicts with other Python packages - Always uses the latest version - Automatic dependency management - No need to manage virtual environments
Alternative: Install from PyPI¶
If you prefer traditional installation:
Then use it directly:
Install from Source¶
For development or to get the latest features:
Development Installation¶
If you want to contribute to Anknote:
git clone https://github.com/rayanramoul/anknote.git
cd anknote
# Install with development dependencies
pip install -e ".[dev,docs]"
# Install pre-commit hooks
pre-commit install
Verify Installation¶
Check that Anknote is installed correctly:
Set Up AI Model¶
Anknote uses LiteLLM, which supports many AI providers. Set up your API key:
OpenAI¶
Anthropic (Claude)¶
Google (Gemini)¶
Configuration¶
Create a configuration file to customize Anknote:
This creates a .anknote.json
file in your current directory. See the Configuration Guide for details.
Next Steps¶
- Usage Guide - Learn how to use Anknote
- Configuration - Customize your setup