Connecting Modal
In Settings > Compute > Cloud providers, click Connect on the Modal card. If you’ve signed in with the Modal CLI (modal token new), the app reads ~/.modal.toml automatically; click Check again after the file exists. Alternatively, paste a Token ID and Token secret in Settings > Credentials, under Modal. Tokens you paste are stored encrypted on your computer. With your approval, code that Claude writes can receive your Modal token itself.
Workspace restrictions set by your organization
On Team and Enterprise plans, your organization’s admin can limit Modal to specific workspaces. When Claude uses your Modal token, the app checks the workspace that Modal reports for that token, not the label in your~/.modal.toml. If that workspace isn’t on your organization’s list, the app tells you that this Modal workspace is not allowed by your admin, and Claude can’t run jobs there until you connect a token from an allowed workspace. Your admin can also turn Modal on or off for the organization (see Modal).
If your organization manages the network allowlist, set Network restrictions on the Modal page under Settings > Compute to Allowlist or No network before you run jobs. Jobs from a Modal setup with unrestricted network access are refused while your organization manages the list (see Network allowlist).
Running cloud jobs
Input files are limited to 1 GiB per submit. For larger inputs, Claude can stage data to a Modal Volume and mount it into the job. Outputs written to./out/ (up to 5 GiB) are returned with logs.
Closing the app doesn’t cancel a running Modal job; it continues billing until it finishes or times out. Let running Modal jobs finish before you update. The first start after an update can rebuild the environment Claude Science uses for Modal, and a job ending meanwhile can lose its results if you close the app then or the rebuild exceeds about 10 minutes. Keep the app open until “Setting up environments…” disappears.