sim-plugin-simscale
Use Codex, Claude Code, or another AI agent to work with SimScale cloud simulations through sim-cli.
sim-plugin-simscale makes SimScale a cloud backend in sim's cross-solver
runtime. It is not a general replacement for the SimScale API or Workbench.
The first alpha release focuses on safe API access checks, session inspection,
and one guarded smoke recipe.
SimScale access, API keys, and compute credits are not bundled. See LICENSE-NOTICE.md.
Current Maturity
This is an initial alpha. It has unit coverage and one real-cloud smoke path for accounts with SimScale API access and enough credits.
The only built-in recipe in 0.1.x is:
kind: pipe_junction_incompressible_smoke
name: My SimScale smoke run
max_compute_cpu_hours: 0.5
The recipe uploads a tiny pipe-junction Parasolid fixture, imports geometry, creates a water incompressible-flow setup, meshes, solves, and downloads a probe-point CSV.
Install
PyPI is the primary channel:
uv pip install sim-plugin-simscale
For an exact release:
uv pip install "sim-plugin-simscale==0.1.1"
For source testing against the current main branch:
uv pip install "git+https://github.com/svd-ai-lab/sim-plugin-simscale.git@main"
Authentication
Create a SimScale API key in your SimScale account and export it locally:
export SIMSCALE_API_KEY="..."
On PowerShell:
$env:SIMSCALE_API_KEY = "..."
Optional:
export SIMSCALE_API_URL="https://api.simscale.com"
Never commit API keys. Rotate keys that were pasted into chat or logs.
Common Workflow
Check API access:
sim check simscale
Start an API-backed session:
sim connect --solver simscale --ui-mode no_gui
sim inspect session.summary
sim inspect simscale.spaces
Run bounded JSON commands:
sim exec '{"command": "list_projects"}'
sim exec '{"command": "list_results", "project_id": "...", "simulation_id": "...", "run_id": "..."}'
Run the smoke recipe:
sim run --solver simscale recipe.yaml
Artifacts are written under .sim/runs/<run-id>/:
metadata.jsonevents.jsonprobe_points.csv
Credit Safety
The smoke recipe calls SimScale estimate endpoints before starting meshing or
solving. By default it aborts if either estimate exceeds 0.5 CPU-hours.
You can lower the gate in the recipe:
max_compute_cpu_hours: 0.2
Successful API calls can still create projects/uploads. Compute credit is only expected after mesh or simulation run start calls.
Develop
git clone https://github.com/svd-ai-lab/sim-plugin-simscale
cd sim-plugin-simscale
uv sync --extra test
uv run pytest -q
uv build
Live smoke testing is opt-in:
SIMSCALE_API_KEY=... SIMSCALE_RUN_INTEGRATION=1 uv run pytest tests/test_live_smoke.py -q
License
Apache-2.0. See LICENSE and LICENSE-NOTICE.md.
Metadata
Release files for sim-plugin-simscale 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sim_plugin_simscale-0.1.1.tar.gz | 82.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sim_plugin_simscale-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 106.1 kB
Release files / sim_plugin_simscale-0.1.1.tar.gz
| Download URL | sim_plugin_simscale-0.1.1.tar.gz |
|---|---|
| Size | 82.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13daf1bf54446e9b9e4ace51ca074c0fb380226a9c2466d6295a3987916dc522
|
|
BLAKE2b-256 checksum How to use checksums |
af43f68b2a361a9938f9e7d9ce8112f13d4309b51e5502b9391f30d4b9b694ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sim_plugin_simscale-0.1.1-py3-none-any.whl
| Download URL | sim_plugin_simscale-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e6fb72694a1cd7258561bb70d5fe2132605d0aa2a81eec7e99bd7c68460b828
|
|
BLAKE2b-256 checksum How to use checksums |
498e741c6833eec830ebd02761c853141aa734878de15c83dd1e944f600ecac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|