Skip to main content
Bring your own key (BYOK) connects Mobilerun to your model-provider account. You keep using Mobilerun’s tasks, agent, and routines while your provider bills you directly for model usage routed through that key. BYOK is available on all plans, including Free. Keys belong to the selected workspace, not just the person who adds them. Organization owners and admins can manage them; members have read-only access. You can also use Mobilerun without adding a model key.

Supported providers

Adding a provider key makes its supported model set available in Mobilerun. It does not add every model the provider offers. Use the model list shown in Cloud.

Add a key in Cloud

1

Open LLM keys

Select the workspace that should use the key. In Billing & plans, open LLM keys.
2

Add a credential

Choose New credential. Select Provider, optionally enter a Label, and paste the provider’s API key. Choose Save. Cloud checks the key’s format and sets up its models. Saving is not a live connection test.
3

Test the key

In Test a credential, select the saved Credential and choose Test connection. This sends a short message through that key. Connection succeeded confirms a response from the provider. The test uses the provider and normal usage billing applies.
4

Check routing

The Routing card lists Available models. Your key is used for the models it covers; other models use Mobilerun’s model service.

Use it for tasks, the agent, and routines

Choose a model as usual. Tasks use llmModel in the API/SDK or the model picker in Cloud; see Model selection. The agent and routine task steps use their model pickers too. You do not pass the provider key in task prompts, routine inputs, or each API call. For a model covered by an active workspace key, Mobilerun routes the request through it automatically. You still use your Mobilerun API key to authenticate Cloud API requests; it serves a different purpose from your model-provider key.

What you pay

Check for routing, provider spend, and the monthly LLM limit. This limit applies to requests through the workspace’s own keys. See Credits and units for metering and Pricing for rates. If an authentication failure or certain connection failures cause a request to retry through Mobilerun’s service, that retry uses normal AI-credit billing. Provider rate limits do not trigger this fallback.

Keep your key safe

Cloud stores keys encrypted and does not show the saved key again. Keep provider keys out of client-side code, prompts, screenshots, and logs. Use the key’s action menu to manage it:
  • Rotate key replaces it with a new provider key. A rejected key may show Replace key instead.
  • Pause key temporarily routes matching requests through Mobilerun; Resume key uses your key again.
  • Revoke key stops routing through it and cannot be undone. To cancel the credential at its source, also revoke it in the provider’s dashboard.

Troubleshooting