| A: Installer | B: From source |
|---|---|
|
Recommended for most users. Run the installer wizard, follow steps, done. |
For developers or running directly in a Python virtual environment. |
Run SAM-Setup-0.4.9.exe. The wizard walks through:
flowchart LR
A["Choose install\nfolder"] --> B["Pick optional\ntasks"]
B --> C["Install Ollama\nif checked"]
C --> D["Pre-download\nmodels if checked"]
D --> E["Launch SAM"]
style A fill:#12121a,stroke:#00D4AA,color:#e8e8e8
style E fill:#0d3b32,stroke:#00D4AA,color:#e8e8e8
Step 1: Install location. Defaults to %LOCALAPPDATA%\Programs\SAM. No administrator rights needed.
Step 2: Optional tasks (checked by default):
| Task | What it does | If you skip it |
|---|---|---|
| Install Ollama | Downloads official Ollama installer and runs silently | Install later from ollama.com |
| Download language model | Pre-pulls qwen2.5:3b (~2 GB) |
Downloads automatically on first use |
| Download speech model | Pre-downloads Whisper small (~500 MB) |
Downloads on first voice capture |
| Start with Windows | Adds a startup shortcut entry | Launch manually from Start Menu |
Step 3: Launch. SAM starts and sits in the system tray.
Settings -> Apps -> SAM -> Uninstall. Uninstaller preserves your config and downloaded models by default.
A small circle appears on your screen. Say "Hey Sam", press Ctrl+Space to speak, or press Ctrl+Shift+Space (or click the orb) to type.
flowchart LR
A["clone"] --> B["venv +\npip install"] --> C["ollama pull"] --> D["python main.py"]
style D fill:#0d3b32,stroke:#00D4AA,color:#e8e8e8
git clone https://github.com/sametgurtuna/SAM.git
cd SAMpython -m venv venv
.\venv\Scripts\Activate.ps1pip install --upgrade pip
pip install -r requirements.txtInstall from ollama.com/download. SAM starts the Ollama server automatically if not already running.
ollama --versionollama pull qwen2.5:3b| Model | Size | Notes |
|---|---|---|
qwen2.5:3b |
2.0 GB | Default - balanced speed and quality |
qwen2.5:1.5b |
1.0 GB | Faster, smaller |
llama3.2:3b |
2.0 GB | General alternative |
gemma2:2b |
1.6 GB | Lightweight alternative |
python main.py +--------------------------------------------+
| SAM - AI Desktop Assistant v0.4.9 |
| |
| Say 'Hey Sam' to activate (voice) |
| Press CTRL+SPACE to speak |
| Press CTRL+SHIFT+SPACE to type |
| Press CTRL+C to quit |
| |
| LLM: Ollama (qwen2.5:3b) |
| Tray icon active (right-click for menu) |
+--------------------------------------------+
| Issue | Solution |
|---|---|
No LLM engine found |
Run ollama list and ollama pull qwen2.5:3b |
Ctrl+Space does nothing |
Run terminal as Administrator if another app captures global keys |
| Microphone not working | Verify default input device in Windows Sound settings |
| Wake word will not trigger | Lower threshold in settings (wake_word.threshold: 0.35) |
| SAM is already running | SAM allows only one instance via named mutex. Check system tray |
- Get an API key from console.anthropic.com
- Set environment variable:
$env:ANTHROPIC_API_KEY = "sk-ant-..."
- Install optional SDK:
pip install anthropic
hotkey:
trigger: ctrl+space
text_input: ctrl+shift+space
wake_word:
model: assets/models/hey_sam.onnx
threshold: 0.5
stt:
model: small
language: en
llm:
ollama:
model: qwen2.5:3b
temperature: 0.7
autostart: true
stop_on_exit: false
tts:
engine: edge-tts
voice: en-US-GuyNeural
ui:
orb:
layer: auto
click_through: trueFor details, see README.md and docs/ARCHITECTURE.md.
