MerchantDrafts · Docs

Hosted vs BYOK Runtime Modes

Difference between hosted and bring-your-own-key runtime modes.

Short Answer

MerchantDrafts has two runtime modes:

Hosted

Use Hosted when you want the simplest setup.

BYOK

BYOK means Bring Your Own Key.

The Practical Difference

QuestionHostedBYOK
Who provides the runtime?MerchantDrafts backendYour Gemini API key
Do you need a MerchantDrafts license?YesYes, and the plan must allow BYOK
Do you need your own Gemini key?NoYes
What usage model applies?MerchantDrafts quotaYour own Google API billing
Best forFastest onboarding, normal use, and PAYG-capable hosted tiersOperators who want direct Gemini billing and runtime control

Which Should I Use?

How to Enable BYOK (BYOK-Enabled Packages)

  1. Go to MerchantDrafts → About / License.
  2. In the License & Runtime card, set Runtime Mode to BYOK.
  3. Paste your Gemini API key into the Gemini API Key (BYOK) field. Keys start with AIza and are 39 characters long.
  4. Click Save & Revalidate. A green confirmation appears when the key is saved and BYOK is active.

You can switch back to Hosted at any time by changing Runtime Mode back to Hosted (default) and saving.

About / License is the canonical place to manage both license validation and runtime mode.

Important naming note:

Support Notes