Bring your own AI
By default, PhishNet analyses email with its own managed AI models. If your organisation would rather use its own AI provider, for example to keep email content under an agreement you already have or to use a specific model, an owner or admin can connect your own API key and choose which model handles each AI task.
This is an org-wide setting, available on Team and Enterprise plans.
Supported providers
| Provider | Key looks like | Where requests go |
|---|---|---|
| OpenAI | sk-… | api.openai.com |
| Anthropic | sk-ant-… | api.anthropic.com |
| Google Gemini (Google AI Studio) | AIza… | generativelanguage.googleapis.com |
| Mistral | Mistral API key | api.mistral.ai |
Each provider's address is fixed. PhishNet can't be pointed at a custom or self-hosted endpoint.
Connecting a provider
- In the PhishNet admin dashboard, open Settings.
- Under 1 · Provider, select the provider.
- Paste your API key.
- Choose a model (see Choosing a model).
- Click Save.
Saving makes a short test call to the provider with your key and model. The key is stored only if that call works; if it doesn't, the page shows the reason. Use Test connection to check a key or model without saving.
A connected provider shows Connected, but nothing changes until you assign it to a task.
To change the model later, select the provider, pick the new model and click Save. Leave the key field blank to keep the stored key.
Choosing a model
Click Load models to fetch the models your key can use from the provider. For a provider you've already saved, the list loads by itself.
- Models PhishNet recommends appear first, under Suggested.
- Everything else your key can use is listed below them.
- To use a model that isn't listed, pick Other model… and type its ID.
Only models that can answer chat requests are listed; embedding, speech, image and realtime models are left out. PhishNet makes one call per scanned email, so a fast, low-cost model is usually the best fit.
Assigning tasks
Under 3 · Model assignment, choose a provider for each task:
| Task | What it does |
|---|---|
| Email scanning | The verdict, threat findings and summary for every scanned email |
| Reply drafts | Suggested replies in the inbox panel |
A task left on PhishNet Built-in keeps using PhishNet's managed models. Changes take effect within a minute.
If your provider fails
If a call to your provider fails, for example because the key expired, the quota ran out or the provider is down, PhishNet still scans the email. It runs its non-AI checks (sender authentication, link and attachment analysis, domain reputation and any custom threat rules) but the verdict has no AI analysis or summary. Reply drafts fall back to a standard template.
Fall back to PhishNet Built-in changes this. When it's on, a failed call to your provider is retried with PhishNet's managed models, so scans keep their AI analysis. It's off by default because turning it on means email content can reach PhishNet's AI providers whenever yours fails. Leave it off if your organisation needs email content to stay with your provider.
When live calls start failing, the provider's status changes to Error and the page shows the reason. It goes back to Connected when calls succeed again, or when Test connection passes with the saved key and model.
Data and security
- Keys are encrypted at rest (AES-GCM). After saving, the dashboard only ever shows the last four characters.
- Personal details are redacted before email content reaches any model, exactly as for PhishNet's own models. See Privacy & data.
- Your provider processes the content under your organisation's own agreement with them. It receives the same redacted email fields PhishNet's own models receive.
- Every change is recorded in the admin activity feed: saving or removing a provider, and changing task assignments or the fallback setting.
- Saving, testing and loading models each call the provider with your key, so they're limited to about 10 a minute per organisation.
Troubleshooting
| Message | What to do |
|---|---|
| "… rejected the API key, or the key has no access to this model." | Check that the key is current and that its project has access to the model. |
| "… doesn't recognise this model: …" | The model may be retired or closed to new projects; the provider's own reason follows the colon. Click Load models and pick a model from the list. |
| "… is rate-limiting this key, or it's out of quota." | Check the key's billing and rate limits with the provider. |
| "Too many requests. Wait a minute and try again." | You've hit PhishNet's limit on key checks. Wait a minute. |
Google Gemini: Google no longer offers Gemini 2.5 models to projects that haven't used them before. If your key belongs to a new project, choose a Gemini 3 model such as gemini-3.5-flash-lite.
Removing a provider
Select the provider and click Remove. Its key is deleted, and any task it was running goes back to PhishNet Built-in.
Requirements
- PhishNet Team or Enterprise plan
- Owner or Admin role in the PhishNet admin dashboard
- An API key from a supported provider