How to use Claude Code with COMSOL through sim-cli
One-sentence answer
Section titled “One-sentence answer”Use sim-cli-core plus sim-plugin-comsol, sync the COMSOL skill into .claude/skills, run sim check comsol, then ask Claude Code to inspect and execute bounded steps through sim-cli.
Requirements
Section titled “Requirements”- Licensed local COMSOL Multiphysics installation
- Python environment
- uv or pip
- sim-cli-core
- sim-plugin-comsol
- Claude Code
Install
Section titled “Install”uv add sim-cli-core sim-plugin-comsoluv run sim plugin sync-skills --target .claude/skills --copyuv run sim check comsoluv run sim plugin doctor comsol --deepPrompt for Claude Code
Section titled “Prompt for Claude Code”Use the installed sim-comsol skill. Run sim through this project with
uv run sim .... Check my local COMSOL installation before connecting. Work one bounded step at a time: connect, inspect, execute a small step, inspect results, then save or update a checkpoint before continuing. Do not guess COMSOL API names.
Workflow
Section titled “Workflow”check readiness → attach to live session → inspect model state→ run one bounded CAE step → verify result/state → save checkpoint/artifactsFor COMSOL, that may be one geometry/material/physics update, one mesh operation, one study solve, one plot creation, or one exported table/probe.
Limitations
Section titled “Limitations”sim-cli does not bundle COMSOL. You must provide your own licensed solver installation.