Go to file
Hongming Wang c1fc78090e
Some checks failed
CI / validate (push) Failing after 0s
fix(adapter): route anthropic:/claude: prefixes via OpenRouter, not OpenAI
OpenClaw is OpenAI-compat only (--custom-compatibility openai is
hard-set). Prior routing fell through every unrecognised prefix
(including anthropic and claude) to OPENAI_API_KEY + api.openai.com
with the bare model id, so workspaces booted with the wheel-default
`anthropic:claude-opus-4-7` reached `running` status while every
inference call returned 401/404 from OpenAI.

Detect anthropic/claude → re-route through OpenRouter at slash-form
`anthropic/<id>`, which exposes Claude under the OpenAI-compat API.
Per-prefix API-key lookup also lands so groq/openrouter/qianfan use
their proper env vars instead of the legacy OPENAI_API_KEY fallthrough.

Routing extracted to a pure helper `_resolve_provider_routing(model,
env, runtime_config)` so the twelve branches it encodes are pinned in
tests/test_model_routing.py without invoking the npm install +
onboard side effects of setup() (which is `# pragma: no cover`).

Filed as Issue 5 in known-issues.md (OWC-272).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 17:20:26 -07:00
.github/workflows Merge pull request #8 from Molecule-AI/chore/enroll-secret-scan 2026-04-29 13:45:32 -07:00
.molecule-ci/scripts fix(config): add models[] array for canvas model dropdown (#4) 2026-04-22 19:00:47 +00:00
runbooks docs: add CLAUDE.md, known-issues.md, and runbooks/local-dev-setup.md 2026-04-21 10:55:08 +00:00
tests fix(adapter): route anthropic:/claude: prefixes via OpenRouter, not OpenAI 2026-05-01 17:20:26 -07:00
__init__.py feat: add adapter code + Dockerfile for standalone deployment 2026-04-16 04:27:22 -07:00
.gitattributes chore: enforce LF line endings on .sh/.py/.yaml/Dockerfile 2026-04-24 00:36:49 -07:00
.gitignore fix(adapter): route anthropic:/claude: prefixes via OpenRouter, not OpenAI 2026-05-01 17:20:26 -07:00
adapter.py fix(adapter): route anthropic:/claude: prefixes via OpenRouter, not OpenAI 2026-05-01 17:20:26 -07:00
AGENTS.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00
BOOTSTRAP.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00
CLAUDE.md docs: add CLAUDE.md, known-issues.md, and runbooks/local-dev-setup.md 2026-04-21 10:55:08 +00:00
config.yaml fix(config): add models[] array for canvas model dropdown (#4) 2026-04-22 19:00:47 +00:00
Dockerfile fix: restore COPY/RUN lines in Dockerfile 2026-04-27 07:50:19 -07:00
HEARTBEAT.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00
install.sh add install.sh to install Node 22 from nodesource 2026-05-01 13:33:35 -07:00
known-issues.md fix(adapter): route anthropic:/claude: prefixes via OpenRouter, not OpenAI 2026-05-01 17:20:26 -07:00
README.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00
requirements.txt feat: add adapter code + Dockerfile for standalone deployment 2026-04-16 04:27:22 -07:00
SOUL.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00
TOOLS.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:47 -07:00

template-openclaw

Molecule AI workspace template for the openclaw 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-openclaw

Files

  • config.yaml — workspace configuration (runtime, model, skills, etc.)
  • system-prompt.md — agent system prompt (if present)

Schema version

template_schema_version: 1 — compatible with Molecule AI platform v1.x.

License

Business Source License 1.1 — © Molecule AI.