Adds 4 model entries (mimo-v2-flash, mimo-v2-pro, mimo-v2-omni, mimo-v2.5-pro) selectable from canvas. When MODEL matches mimo-*, entrypoint.sh exports ANTHROPIC_BASE_URL=https://api.xiaomimimo.com/anthropic so the claude CLI's native ANTHROPIC_BASE_URL handling routes there. ANTHROPIC_API_KEY in this case is the Xiaomi key, not Anthropic Console. Verified live against all 4 model IDs with x-api-key auth — all returned 200 with proper Anthropic-shape Messages responses (id, type=message, role=assistant, content[].text, usage including cache_read_input_tokens). Operator-set ANTHROPIC_BASE_URL is never overridden — the case-statement only fills in the default when unset, so a user-supplied proxy still wins. Marked as testing because the model→base-URL mapping currently lives in entrypoint.sh shell. The robust shape is a data-driven `runtime_env` field in config.yaml read by the platform provisioner; will follow up with that as a separate cross-repo PR (workspace-server + canvas) so this template no longer carries provider-specific knowledge in shell. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.3 KiB
1.3 KiB
template-claude-code-default
Molecule AI workspace template for the claude-code-default runtime.
Usage
In Molecule AI canvas
Select this template when creating a new workspace — it appears in the template picker automatically.
From a URL (community install)
Paste this URL when creating a workspace:
github://Molecule-AI/template-claude-code-default
Files
config.yaml— workspace configuration (runtime, model, skills, etc.)system-prompt.md— agent system prompt (if present)
Auth paths
| Path | Env var(s) | Where to get the key |
|---|---|---|
| OAuth (Claude Code subscription) | CLAUDE_CODE_OAUTH_TOKEN |
claude login |
| Anthropic API (direct) | ANTHROPIC_API_KEY |
console.anthropic.com |
| Third-party Anthropic-compat (e.g. Xiaomi MiMo) | ANTHROPIC_API_KEY (provider's key) |
provider console |
For third-party providers, entrypoint.sh rewrites ANTHROPIC_BASE_URL based on the selected MODEL so the claude CLI routes there. Currently auto-routes mimo-* models to https://api.xiaomimimo.com/anthropic. Operator-set ANTHROPIC_BASE_URL is never overridden.
Schema version
template_schema_version: 1 — compatible with Molecule AI platform v1.x.
License
Business Source License 1.1 — © Molecule AI.