Environment Variables
Cluely supports multiple AI providers through environment variables. Create a.env file in the root directory to configure your preferred AI provider.
AI Provider Options
- Gemini (Cloud AI)
- Ollama (Local/Private)
- OpenRouter
- K2 Think V2
Google Gemini provides the latest AI technology with vision capabilities and fastest responses.Get your API key: Google AI StudioConfiguration details:
The fallback API key is optional but recommended. If the primary key hits rate limits, Cluely automatically switches to the fallback key.
- Default model:
gemini-2.5-flash - Automatic rate limit handling with exponential backoff
- Supports both image and audio analysis
Application Settings
Window Configuration
Cluely’s main window is configured inelectron/main.ts with these settings:
Screenshot Settings
Screenshot behavior is controlled inelectron/ScreenshotHelper.ts:
- Maximum screenshots: 5 per queue
- Storage locations:
- Primary queue:
~/Library/Application Support/interview-coder/screenshots/ - Extra queue:
~/Library/Application Support/interview-coder/extra_screenshots/
- Primary queue:
- Format: PNG
- Auto-cleanup: Old screenshots are automatically deleted when queue exceeds limit
Screenshot cleanup details
Screenshot cleanup details
When you take a screenshot:
- Window hides automatically (100ms delay)
- Screenshot is saved to appropriate queue directory
- If queue exceeds 5 screenshots, oldest is deleted
- Window reappears after capture
- Screenshots are deleted from disk when removed from queue
Model Configuration
LLM Parameters
All AI providers use these default parameters (defined inelectron/LLMHelper.ts):
System Prompt
Cluely uses a specialized system prompt to provide helpful, structured responses:Development Configuration
Running in Development Mode
Thepackage.json defines these development scripts:
The
npm start command automatically starts Vite dev server on port 5180, waits for it to be ready, then launches Electron.Build Configuration
- macOS: DMG installer for x64 and arm64
- Windows: NSIS installer and portable executable
- Linux: AppImage and DEB package
Port Configuration
To check and free port 5180:Advanced Configuration
Switching AI Providers at Runtime
Cluely supports switching between AI providers without restarting:Connection Testing
Test your AI provider connection:Installation Workarounds
Sharp Build Errors
If you encounter Python or Sharp build errors duringnpm install:
postinstall script automatically handles this:
Why does Sharp cause build errors?
Why does Sharp cause build errors?
Sharp is an image processing library that requires native binaries. The
SHARP_IGNORE_GLOBAL_LIBVIPS=1 flag tells Sharp to use prebuilt binaries instead of compiling from source, avoiding the need for Python and build tools.