---
title: "Setting Up BYOK (Bring Your Own Key)"
date: 2026-04-04
author: "Bojan Josifoski"
url: https://samplehq.io/support/setting-up-byok-bring-your-own-key/
description: "BYOK mode lets you connect your own AI provider instead of using SampleHQ's managed AI. This gives you control over which model is used and how your data is processed."
---

# Setting Up BYOK (Bring Your Own Key)

BYOK mode lets you connect your own AI provider instead of using SampleHQ’s managed AI. This gives you control over which model is used and how your data is processed.

## Supported providers

- OpenAI

- Anthropic

- Other providers via OpenRouter

## How to set up BYOK

- Go to **Workspace Settings > System Settings**.

- In the AI configuration section, select **BYOK** mode.

- Choose your AI provider from the dropdown.

- Enter your API key.

- Save.

## What to know

- You are responsible for the cost of API calls to your provider.

- Your API key is stored encrypted in the SampleHQ database.

- All AI features (chat, function calling, watches) work the same regardless of which provider you use.

- BYOK is available on Pro and Enterprise plans.