Pyrite includes optional AI-powered features that require an API key from Anthropic, OpenAI, or Google. All AI features are BYOK (Bring Your Own Key) — nothing runs without your explicit configuration.
What AI features are available
| Feature | What it does | Where it appears | |---------|-------------|-----------------| | Summarize | Generate a summary of an entry | Entry page toolbar | | Auto-tag | Suggest tags based on content | Entry page toolbar | | Chat sidebar | Ask questions about the KB | Cmd+Shift+K | | Semantic search | Find by meaning, not just keywords | Search page, CLI |
Semantic search uses a local model (sentence-transformers) and does NOT require an API key. The other features use cloud LLM APIs.
Configuring API keys
In the web UI
Go to Settings (gear icon in sidebar) and enter your API key:
Settings are stored locally in the browser and sent with each request. They are NOT stored on the server.
Via environment variables
For CLI and server deployments:
```bash export ANTHROPIC_API_KEY=sk-ant-... export OPENAI_API_KEY=sk-... export GEMINI_API_KEY=... ```
Or in a `.env` file in your project directory.
Via config
In `~/.pyrite/config.yaml` or your KB's settings:
```yaml settings: ai: provider: anthropic # or openai, gemini model: claude-sonnet-4-20250514 ```
No AI? No problem
Pyrite works fully without any AI features: