Turn any script into a scheduled job or web app in your cloud.
pdt builds, runs, and deploys apps—scheduled jobs and web apps—to AWS, Azure, Google Cloud, or Windows Task Scheduler. It gives every app the same primitives, chosen from years of deploying apps for businesses on each cloud. No servers to run and nothing extra to install, and everything it makes lives in your own account.
- Bring your scripts - Drop in your PowerShell or Python files, or a web app with its own
Dockerfile. pdt finds what they need and runs them. - One command to deploy - No cloud skills needed.
pdt deployinstalls the tools it needs and opens the sign-in page for you. - Any cloud - Move a job between AWS, Azure, Google Cloud, and Windows by changing one line, or deploy a web app behind Google sign-in on Google Cloud.
- Know the cost first - See the plan and a monthly cost estimate before anything changes.
- Know when it breaks - Health checks, logs, a local dashboard, and alerts to Slack, Teams, or email.
Every app gets the same building blocks for its app profile. pdt picks the service on each cloud for you.
| AWS | Azure | Google Cloud | Windows | |
|---|---|---|---|---|
| Compute | AWS Batch (Fargate) | Container Apps Jobs | Cloud Run Jobs | Task Scheduler |
| Schedule | EventBridge Scheduler | Container Apps Jobs | Cloud Scheduler | Task Scheduler |
| Secrets | Secrets Manager | Key Vault | Secret Manager | .env file, read at each run |
| Storage (app files and state) | S3 | Blob Storage | Cloud Storage | %ProgramData%\pdt |
| Logs | CloudWatch Logs | Log Analytics | Cloud Logging | Log files |
| Alerts | Slack, Teams, email | Slack, Teams, email | Slack, Teams, email | Slack, Teams, email |
Web apps (app_profile: web) run on Google Cloud Run behind Identity-Aware Proxy; see Types of apps.
- One folder per app - Each app is built, deployed, and destroyed on its own.
- Run it locally first -
pdt runruns the app the same way the cloud does, with the same config and storage. - You own everything - Your apps live in your own git repo, and they run in your own cloud account. There is no pdt server.
- Secrets stay secret - Kept in
.envon your computer and in the cloud's secret store, never in git or the image. - Nothing left behind - Everything pdt makes is tagged
managed-by=pdt, andpdt destroyremoves all of it. - Cheapest by default - Jobs run only when scheduled, and web apps scale to zero by default, on the lowest-cost option that works (for example arm64 on AWS).
- One run at a time - A job's saved state is locked during a run, so two runs never overwrite each other.
Download and run the pdt installer.
Install uv, then pdt:
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
uv tool install pdt-cli
uv tool update-shell
For other ways to install, and how to update or remove pdt, see docs/install.md.
Then run:
pdt init jobs
cd jobs
pdt new hello-powershell --from powershell-hello-world
cd hello-powershell
pdt run
pdt deploy
pdt logs
- Create the app with
pdt new your-powershell-job --from powershell-hello-world - Replace
hello.ps1in theyour-powershell-jobfolder with your own.ps1script - Test the app locally with
pdt run your-powershell-job - Deploy it with
pdt deploy your-powershell-job
See every command.
A first deploy of the hello-world-example app to Azure, then a look at its run:
Run pdt examples to list them, then pdt new <name> --from <example> to copy one.
Small job that logs "Hello world." pdt init puts a copy of this in every new empty project.
PowerShell job. Finds the Microsoft 365 licenses a tenant pays for that nobody uses: paid licenses on disabled accounts, on accounts that have not signed in for 90 days (or never did), and seats bought but assigned to nobody. Each run keeps a LicenseWaste-<date>.xlsx workbook in the app's data store, with a Summary sheet of monthly and annual cost and one sheet per finding.
Looks at recent Entra ID sign-ins. Sends an email when one person signs in from two far-apart places too quickly: Dallas an hour ago, Paris now.
Settings for the lookback window, the minimum distance, and the email addresses live in the app's own pdt.yml. The env vars it needs are listed there too, and in its env.template.
PowerShell job. Once a week it exports the Intune configuration of a tenant with the bulk export of IntuneManagement version 4, and keeps an IntuneExport-<date>.zip in the app's data store. To import, unzip it and point IntuneManagement's import at the company folder inside.
Reports active Monday users whose email address does not match the userPrincipalName of an active Entra ID user.
A PowerShell job whose one script, hello.ps1, writes "Hello, world!". It is the app the Quick Start deploys. Put your own .ps1 files in its folder in place of hello.ps1 to deploy your own PowerShell job.
PowerShell job. Writes a small CSV report with Export-Csv, and pdt keeps the file in the app's data store.
A web app (app_profile: web) that greets the person who signed in.
AutoIDM makes pdt. Any issues, questions, ideas, or concerns? Use any of these methods to get a hold of us:
- Discord
- Report a problem at https://github.com/AutoIDM/pdt/issues.
- Concepts: how projects, apps, profiles, secrets, and storage fit together
- Types of apps: scheduled jobs and web apps, and the services pdt picks for each profile on each cloud
- More ways to install: other installs, release verification, and how to update or remove pdt
- Projects and apps: set up a project, add an app, move providers, and where pdt keeps its files
- Example deployment: text transcript of a full
pdt deploy,pdt logs,pdt health, andpdt run --deployed
- Writing your own app: Python apps, PowerShell apps, web apps, logging, and built-in
pdt.utilshelpers - Choosing where apps run: AWS, Azure, Google Cloud, Windows Task Scheduler, cloud builds, and custom Dockerfiles
- Deploying and operating: plan, deploy, run, pause, secrets, destroy, CI, and troubleshooting
- Keeping files between runs: app storage, locked state sync, querying files with DuckDB, and reading another app's files
- Alerts: send deploy and run notifications to Slack or Microsoft Teams
- Sending email: send mail from an app over SMTP, Microsoft Graph, SES, or Resend
- The dashboard:
pdt gui, the local browser view of every app's runs, logs, files, and SQL workbench
- Commands: every
pdtcommand, its flags, exit codes, and--jsonoutput - Settings: every key in the project and app
pdt.ymlfiles, every env var, precedence rules, and.pdt/files - Using pdt with AI agents: safe non-interactive workflow, JSON schemas, guardrails, and project
AGENTS.md(see also llms.txt)