Setup Guide

Provider Setup

Connect PromptLab to any AI provider in under two minutes. API keys are stored locally in extension storage and used only to send requests to your selected provider.

00

How provider configuration works

PromptLab routes all API calls through its background service worker. Your API key never touches the panel UI — it lives in extension storage, sandboxed away from the page context. When you run an enhance or A/B test, the extension reads your stored key and sends the request directly to your chosen provider.

Five providers supported: Anthropic Claude, OpenAI, Google Gemini, OpenRouter (gateway to 200+ models), and Ollama for fully local inference. You can switch providers at any time from Options without losing your library or settings.
01

Opening the Options page

1
Open PromptLab

Click the PromptLab icon in your browser toolbar to open the side panel.

2
Go to Settings → Manage Provider Keys

Open the Settings modal inside the panel and click Manage Provider Keys. This is the fastest path to the Options page.

3
Select your provider

Click the provider chip at the top of the Options page. The form below updates to show that provider's configuration fields.

4
Save and test

Enter your credentials, click Save, then click Test Connection to verify. A success message confirms the connection.

You can also reach Options by right-clicking the PromptLab extension icon in the toolbar and choosing Options.

02

Configure a provider

1
Get your API key

Go to Anthropic API settings and create a new key. Copy it — it's only shown once.

2
Paste into Options

Select the Anthropic chip in Options. Paste your key into the API Key field.

Key format
API Key   sk-ant-api03-••••••••••••••••••••
3
Choose a model

Select from the dropdown. Recommended starting point: claude-sonnet-4-20250514 — strong capability at moderate cost.

Free tier: New Anthropic accounts receive a small credit. No credit card required to start.

03

Troubleshooting

!
Test Connection returns an error

Double-check that your API key was copied completely with no trailing spaces. Confirm your account has available credits or quota. For Ollama, confirm the service is running with ollama serve.

!
Enhance / A/B test gives no response

Save your settings in Options, then reload the extension from chrome://extensions and try again.

!
Ollama connection refused

By default Ollama only accepts connections from localhost. You may need to set OLLAMA_ORIGINS before starting Ollama to allow the extension origin:

OLLAMA_ORIGINS=chrome-extension://*,moz-extension://* ollama serve
!
OpenRouter model slug error

Model slugs are case-sensitive and must exactly match the identifier shown on openrouter.ai/models. A typo will produce a runtime error rather than a helpful message.