StackMachine SDK
Deploy and manage apps on StackMachine from JavaScript/TypeScript or Python. Examples are pulled from stackmachine/sdks; each page has a JavaScript / Python toggle when both are available.
Quickstart
Install the SDK
Set your API key
Export a key from the StackMachine dashboard or use a demo key locally:
export STACKMACHINE_API_KEY=your_api_key_hereDeploy your first app
Pass a files map to deployments.create, wait for the build, then open the app URL:
See Deploy from files for ZIP uploads, redeploys, and resuming builds.
List what’s running
for await (const app of client.apps.list({ limit: 10 })) {
console.log(app.name, app.url);
}for app in client.apps.list(limit=10):
print(app.name, app.url)List apps — full paging examples.
Explore the docs
Install the SDK, set your API key, and pick sync or async Python.
Ship versions from files or ZIP, redeploy, and resume in-flight builds.
List, fetch, and delete apps by ID or name.
Attach custom hostnames and verify DNS.
Enable SSH, tokens, users, and authorized keys.
Pull build and runtime logs for an app version.
WordPress, demos, and end-to-end walkthroughs.