Skip to main content
Claude Science can run jobs on Modal using a Modal account you own and control. You connect your account, jobs run on it, and Modal bills you directly. Anthropic doesn’t provide or bill compute and never sees a payment method.

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 are stored encrypted on your computer and never shown to Claude.

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 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

When work needs a GPU or more memory than your machine has, Claude proposes a job and a Start a Modal job? card appears. The card shows the Modal profile, exact machine spec (for example, H100, 8 CPUs, 32 GiB), a note that billing is per-second, and the maximum billable time. It links to Modal’s pricing page. Approve per job, or for the conversation or project. A separate card asks before Claude opens a Modal setup shell (capped at 30 minutes, no GPU). 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.
Cost controls: there’s no spend ceiling. Each job is approved individually with its machine and time limit visible. Concurrent jobs (default 10, set on the Modal page under Settings > Compute) caps simultaneous containers that Claude Science on this machine can run. Default container timeout is 12 hours (maximum 23), enforced by Modal. Track spend on Modal’s dashboard. On the Modal page under Settings > Compute you can set the Modal environment and the default application name used for containers.

Container images

Claude derives a container image from the environment a job needs and builds it once on Modal’s build servers, then reuses that image for later jobs until the environment changes. Claude tracks built images in the Details document on the Modal page under Settings > Compute.

Scientific model endpoints

Claude Science can connect to a model server (hosted, or a container you run) that serves a scientific model over HTTP, and call it directly from analyses. On Team and Enterprise plans, your organization’s admin can turn off scientific model endpoints for the organization. When your admin turns them off, you can’t connect these providers or use endpoints you set up earlier, and the settings you entered are kept. Turning them off doesn’t change which Claude models you can use (see Scientific model endpoints). If your organization manages the network allowlist, an endpoint at a public or internal host name works only while that list includes the host.

NVIDIA BioNeMo NIM

Model endpoints are available in Claude Science on macOS and Linux. In Settings > Compute, under Model endpoints, click Connect on NVIDIA BioNeMo NIM. Import the skills from the BioNeMo Agent Toolkit, add your NVIDIA NGC API credential, and connect to NVIDIA-hosted API endpoint, or choose to run the model as a local container (On a machine with an NVIDIA GPU). Once connected, ask Claude to start a local Docker NIM container or set up a remote connection for a specific NIM skill from the BioNeMo Agent Toolkit.