Skip to content
Mycelis Platform · Guide · 7 min min read

Create a Commercial Deployment (BYOK)

Overview

BYOK (Bring Your Own Key) lets you connect your own API key from OpenAI, Anthropic, Google, xAI, Mistral, or any OpenAI-compatible endpoint to Mycelis. Keys are stored encrypted and used strictly server-side by the gateway.

Benefits: Full control over provider billing and rate limits combined with Mycelis Privacy Filtering, Semantic Caching, Agent Routing, MCP Tools, per-key spend budgets, and OpenWebUI.


Create a BYOK Deployment

  1. Navigate to Explore → Models Marketplace (/dashboard/models-marketplace).
  2. Find the desired model and click Add Model.
  3. Select BYOK (Own Key).
  4. Enter your API key and pick your provider or a custom base URL:
Provider Base URL
OpenAI https://api.openai.com/v1
Anthropic https://api.anthropic.com/v1
Google Gemini https://generativelanguage.googleapis.com/v1beta/openai
xAI (Grok) https://api.x.ai/v1
Mistral https://api.mistral.ai/v1
Custom URL Any OpenAI-compatible API
  1. Optionally link an OpenWebUI instance under Applications or configure member permissions under Access.
  2. Click Create — the endpoint is ready immediately.

Claude Subscription (ACP) — Personal Self-Hosted Installs Only

On self-hosted, personal Mycelis installations, Claude models offer a third destination: Claude subscription (ClaudeSubscription). Requests flow via the Agent Client Protocol (@agentclientprotocol/claude-agent-acp) to your local claude CLI login — no Anthropic API key is stored or required.

Important: Because claude.ai (Pro / Max) subscriptions are strictly personal under Anthropic's terms, this destination is disabled by default (ClaudeSubscription:Enabled = false) on hosted multi-tenant Mycelis and must only be enabled on private single-user instances.

Self-Hosted Setup

  1. Install Claude Code on the Mycelis host and sign in (claude auth login --claudeai).
  2. Ensure Node.js 18+ (for npx) or the standalone @agentclientprotocol/claude-agent-acp binary is installed.
  3. Set ClaudeSubscription:Enabled = true in configuration and restart Mycelis.
  4. Open a Claude model in the Marketplace and pick Claude subscription — the built-in setup check verifies installation, adapter availability, and login status.

For host safety, ACP sessions run with built-in Claude Code host tools disabled (tools: []), while Workspace MCP tools and Subagents are bridged through an isolated per-session loopback MCP endpoint.


Next steps