Skip to content
Back to skills

421 Getting Started 5def9767

ASecurity

Sign up for free at https://modal.com and get $30/month of credits.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
devopspythonrustbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 421-getting-started_5def9767 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 421 Getting Started 5def9767?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 421 Getting Started 5def9767
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-421-getting-started-5def9767/badge)](https://www.skillsdirectory.com/skills/tools-only-421-getting-started-5def9767)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Getting Started with Modal

## Sign Up

Sign up for free at https://modal.com and get $30/month of credits.

## Authentication

Set up authentication using the Modal CLI:

```bash
modal token new
```

This creates credentials in `~/.modal.toml`. Alternatively, set environment variables:
- `MODAL_TOKEN_ID`
- `MODAL_TOKEN_SECRET`

## Basic Concepts

### Modal is Serverless

Modal is a serverless platform - only pay for resources used and spin up containers on demand in seconds.

### Core Components

**App**: Represents an application running on Modal, grouping one or more Functions for atomic deployment.

**Function**: Acts as an independent unit that scales up and down independently. No containers run (and no charges) when there are no live inputs.

**Image**: The environment code runs in - a container snapshot with dependencies installed.

## First Modal App

Create a file `hello_modal.py`:

```python
import modal

app = modal.App(name="hello-modal")

@app.function()
def hello():
    print("Hello from Modal!")
    return "success"

@app.local_entrypoint()
def main():
    hello.remote()
```

Run with:
```bash
modal run hello_modal.py
```

## Running Apps

### Ephemeral Apps (Development)

Run temporarily with `modal run`:
```bash
modal run script.py
```

The app stops when the script exits. Use `--detach` to keep running after client exits.

### Deployed Apps (Production)

Deploy persistently with `modal deploy`:
```bash
modal deploy script.py
```

View deployed apps at https://modal.com/apps or with:
```bash
modal app list
```

Stop deployed apps:
```bash
modal app stop app-name
```

## Key Features

- **Fast prototyping**: Write Python, run on GPUs in seconds
- **Serverless APIs**: Create web endpoints with a decorator
- **Scheduled jobs**: Run cron jobs in the cloud
- **GPU inference**: Access T4, L4, A10, A100, H100, H200, B200 GPUs
- **Distributed volumes**: Persistent storage for ML models
- **Sandboxes**: Secure containers for untrusted code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.