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
- Navigate to Explore → Models Marketplace (
/dashboard/models-marketplace). - Find the desired model and click Add Model.
- Select BYOK (Own Key).
- 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 |
- Optionally link an OpenWebUI instance under Applications or configure member permissions under Access.
- 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
- Install Claude Code on the Mycelis host and sign in (
claude auth login --claudeai). - Ensure Node.js 18+ (for
npx) or the standalone@agentclientprotocol/claude-agent-acpbinary is installed. - Set
ClaudeSubscription:Enabled = truein configuration and restart Mycelis. - 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
- Configure an Agent — add routing, subagents, Knowledge Bases, and MCP tools
- Create a Commercial Deployment (Managed Keys) — start without your own provider key
- API Reference — call
/api/proxy/v1withpat_...
