Sherlock is a bring-your-own-key (BYOK) application. It connects directly from your browser to the AI provider of your choice — no Sherlock-managed credentials, no server-side proxying. To run investigations or use the chat feature, you need at least one API key from a supported provider. This page covers how to get a key from each provider and how to add it to Sherlock.Documentation Index
Fetch the complete documentation index at: https://sherlock-osint.vercel.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
Adding a key in the UI
Open Settings from the top navigation bar, then select the Runtime tab. Scroll to the Access Credentials section. You’ll see a field for each supported provider: Google Gemini, OpenRouter, OpenAI, and Anthropic. Paste your key into the appropriate field and click Save. Sherlock stores the key locally in your browser — it is never transmitted to Sherlock’s own servers. The field shows a key count when credentials are configured, so you can confirm your key was saved at a glance.Keys are stored only in your browser’s local storage. This means they don’t roam between devices or browsers. If you switch browsers or clear your storage, you’ll need to re-enter your key. For shared or public deployments, each user adds their own key — there are no server-side credentials to configure.
Supported providers
- Gemini
- OpenRouter
- OpenAI
- Anthropic
Google Gemini is the recommended starting point for most users. It’s free to get started via Google AI Studio, and Gemini models are well-suited for structured research and investigation tasks.Get a Gemini API key:
- Go to Google AI Studio.
- Sign in with your Google account.
- Click Create API key and copy the key that appears.
- Open Settings → Runtime → Access Credentials.
- Paste your key into the Google Gemini API Key field.
- Click Save.
Choosing a model
After you add a key, the model selector in run setup and in Settings → Runtime → Runtime Profile shows the models available for that provider. You can switch providers and models each time you launch a run — your saved default is a starting point, not a lock-in. For OpenRouter, click Browse in the model selector to open a searchable catalog with filter options. Sherlock includes a curated list of quick picks alongside the full catalog, and you can also enter a model slug manually if you know the exact identifier.Self-hosted configuration via environment variables
If you’re self-hosting Sherlock and want to pre-configure a key for local development, you can set provider keys as environment variables instead of entering them in the UI. This is intended for local development setups only — do not use this approach for a public or shared deployment. Copy.env.example to .env.local in the repo root and set the variables you need:
.env.local:
.env.local. The keys will be baked into the client build and available without manual entry in the Settings UI.
