Connect
Connect Morph Cloud on Integrations, and CostGraph starts sandboxes in your Morph Cloud account. You don’t run anything yourself.- In CostGraph, go to Integrations > Sandbox > Morph Cloud.
-
Enter these fields:
- API key (
MORPH_API_KEY, required): A Morph Cloud API key from the Morph Cloud dashboard. - API URL (
MORPH_BASE_URL, optional): A different Morph Cloud API address, if you do not use the default.
- API key (
- Click Connect.
Your own dispatcher
To keep the key out of CostGraph or reach a private network, run your own dispatcher instead. Setprovider to morph and the preceding fields as environment variables, as described in Run your own dispatcher.
Key and permissions
MORPH_API_KEY is a Morph Cloud API key, created in the Morph Cloud dashboard (cloud.morph.so/web/keys). Morph lets you set key permissions in its dashboard but doesn’t document them. Use a key that can create, run commands in and delete sandboxes. Sources: cloud.morph.so: api keys, cloud.morph.so: ttl, cloud.morph.so: cli, cloud.morph.so: openapi.json.Limits
- Instances do not expire unless ttl_seconds is set; ttl_action is stop or pause. No max TTL is documented. (source)
- Max vCPU/memory/disk, regions and architecture are not documented; per-user service quotas exist (GET /user/service-quota) without published defaults. (source)