Installation¶
Tested on Python 3.11.
1. Create the uv environment¶
Install uv first if you don't have it (astral.sh/uv):
conda install -c conda-forge uv # if you use conda
# curl -LsSf https://astral.sh/uv/install.sh | sh # skip if you already have uv
2. Install psychscanner¶
3. Set API keys¶
Create a .env file in your project directory (or export variables in your shell):
# .env
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GROQ_API_KEY=gsk_...
MISTRAL_API_KEY=...
GOOGLE_API_KEY=...
HUGGINGFACEHUB_API_TOKEN=hf_...
# Ollama remote server (only needed when not using localhost)
OLLAMA_API_KEY=...
Keys are loaded automatically from the environment for each provider family. Ollama running locally needs no key.