Every example on this page runs against the hosted private-beta API with Python 3.11+, the published SDK, and a beta key — copy, paste, run. Pages note it explicitly when a feature needs deployment-side support. New here? Do the First Machine quickstart once, then start with Code Interpreter, Agent Workspace, or Fork below.

Machine patterns

Code Interpreter

Stateful notebook-style cells, a runtime package install, and a rendered plot.

Agent Workspace

Clone a repository and run checks inside a machine, the way an agent would.

Fork

Branch a running machine and watch parent and child diverge.

Template Build

Bake dependencies into a reusable template and launch from it.

Template Warm Pools

Keep pre-booted machines ready and choose checkout fallback behavior.

Shared Volume

Mount one durable volume into two machines — writer and read-only reader.

CI/CD Pipelines

Run untrusted build and test steps in disposable machines.

Networking

Port Forwarding

Serve HTTP from a machine and fetch it through a signed preview URL.

Custom Preview Proxy

Front machine previews with your own Node or Python proxy.

Resumable Upload

Upload large files and directories with progress and retry recovery.

Lifecycle Webhook

Register HMAC-signed webhooks and inspect deliveries.

Computer use

Desktop Viewer

Start a desktop machine and open the managed browser viewer.

Functions

Deploy a local Function project as a managed job or service — named, versioned, with logs, outputs, and URLs.

Minimal Job

Package a small project, run it as a job, collect declared outputs.

HTTP Service

Deploy a long-running HTTP Function service and fetch its public URL.

OpenAI Agents SDK

Run an OpenAI Agents SDK app as a finite job.

Claude Agent SDK

Run a Claude Agent SDK app as a finite job.

LangGraph Service

Deploy a graph-backed HTTP service.

CrewAI Job

Run a CrewAI project as a bounded job.

Machine + Function

Invoke a Function from a customer Machine and inspect a retained Function machine.
The Function Jobs and Function Services guides include Python, TypeScript, and CLI examples in the same workflow pages. Looking for pause/resume or SSH? Those live in the product docs: Auto-Resume and SSH access both include runnable walkthroughs.