Search these docs and the blog: GET https://www.alien.dev/.well-known/search?q={query} returns ranked Markdown excerpts with links. # Docs - Guide: Start here, design what runs where, then describe your stack, call deployments, develop locally, and release. - **Get started** - [Introduction](/docs): Alien provides infrastructure for deploying and operating software in remote environments, close to sensitive data, private networks, and local resources. - [Quickstart](/docs/guide/quickstart): Add Alien to your repository with a coding agent, or build a worker by hand, run it locally as two customers, and deploy it to a cloud account you control. - [How Alien works](/docs/guide/how-alien-works): How Alien deploys into a customer's cloud: the one-time setup their admin runs, the management Alien does on each release, and what Alien can and can't do. - Architecture design - [Architecture design](/docs/guide/design): Decide which part of your product runs in each customer's environment, from only their encryption key to the whole product. - **Patterns** - [Control plane ⇄ Data plane](/docs/guide/design/control-plane-data-plane): Keep the shared control plane in your cloud and run the data plane that handles customer data wherever each customer needs it, up to their own account. - [Agent or connector](/docs/guide/design/agent-or-connector): Run a small agent on the customer's machines, cluster, or network that reaches their private systems and connects out to your cloud. - [Whole product](/docs/guide/design/whole-product): Deploy every service and its storage into the customer's environment, including air-gapped sites, and know what you give up compared to a split. - **Data and connections** - [Classify your data](/docs/guide/design/classify-your-data): Sort every field your product stores or sends into content, derived data, describing text, credentials, and metadata, then decide what may leave. - [Connect your backend](/docs/guide/design/connect-your-backend): How your backend and each deployment talk to each other, and how browsers reach a deployment without customer content passing through your cloud. - **Your stack** - [Stacks](/docs/guide/stacks): Describe what you deploy in alien.ts, the stack Alien builds, releases, and deploys into every remote environment. - Bring an existing app - [Bring an existing app](/docs/guide/existing-app): Move a product that ships with a Helm chart, Docker Compose, ECS, or Terraform onto Alien, so one alien.ts deploys it to every customer. - [From a Helm chart](/docs/guide/existing-app/helm): Move a Helm chart, Kustomize overlays, or Kubernetes manifests onto Alien, and see where Jobs, hooks, init containers, and sidecars go. - [From Docker Compose](/docs/guide/existing-app/compose): Move a product that ships as a Docker Compose file onto Alien, and see where volumes, healthchecks, depends_on, and one-shot setup services go. - [From ECS](/docs/guide/existing-app/ecs): Move a product that runs on Amazon ECS onto Alien, and see where task definitions, load balancers, secrets, autoscaling, and task roles go. - [From Terraform](/docs/guide/existing-app/terraform): Move the databases, buckets, queues, and keys your Terraform creates in your own cloud into alien.ts, so each customer's deployment gets its own. - [Frozen and live resources](/docs/guide/frozen-and-live): Choose per resource whether the customer's admin creates it once at initial setup (frozen) or Alien updates it on each release (live). - [Inputs and secrets](/docs/guide/inputs-and-secrets): Declare the values each deployment needs, say whether you or the customer's admin provides them, and keep customer secrets out of Alien. - [Permissions](/docs/guide/permissions): Grant each workload exactly the access it needs with permission profiles, and understand the three permission layers in a deployment. - [Networking and endpoints](/docs/guide/networking): Expose a Worker or Container over HTTPS, keep services private inside the stack, and know which network choices belong to initial setup. - [WAF or CDN](/docs/guide/waf-or-cdn): Serve a public hostname from Cloudflare or CloudFront while the deployment's endpoint presents a certificate for that name. - **Connect your backend** - [Backend connections](/docs/guide/backend-connections): Every way your backend and a customer's deployment exchange work and data, what each carries, and when to use it. - [Commands](/docs/guide/commands): Run code in a customer's environment from your backend and get the result back, with zero inbound networking and no ports to open. - [Remote bindings](/docs/guide/remote-bindings): Read and write one resource in a customer's account from your hosted backend through cloud APIs with scoped credentials and no inbound networking. - **Develop and release** - [Local development](/docs/guide/local-development): Run your whole stack on your machine with alien dev, using local equivalents of every cloud resource, before you deploy to a customer. - [Testing](/docs/guide/testing): Deploy your stack from a test suite with @alienplatform/testing, then call its endpoints and commands like your backend would. - [Releases](/docs/guide/releases): Publish your stack as a release, move channels to roll it out, pin deployments, and automate it from CI. - [Build with an AI agent](/docs/guide/ai-agents): Install the Alien agent skills so your coding agent can decide what runs in each customer's environment and build it end to end. - **Extensions** - [Extensions](/docs/guide/extensions): Change what Alien deploys, add resources Alien doesn't have, and change the cloud calls it makes, with Rust code that ships in your release. - [Quickstart](/docs/guide/extensions/quickstart): Create an extension that keeps Postgres backups for 30 days, see the change in the setup template, and ship it in a release. - [Template modifiers](/docs/guide/extensions/template-modifiers): Change the CloudFormation template, Terraform module, or Helm chart Alien generates for initial setup, with Rust code in your extension. - [Interceptors](/docs/guide/extensions/interceptors): Change the requests Alien's controllers send to AWS, Google Cloud, Azure, and Kubernetes, and the responses they get back. - [Custom resources](/docs/guide/extensions/custom-resources): Add a resource type Alien doesn't have, from a few lines of setup template up to its own controllers, permissions, and links. - [Controllers](/docs/guide/extensions/controllers): Write the code that creates, updates, and deletes a custom resource, and see where Alien runs it in push, pull, the setup CLI, and alien dev. - [Testing](/docs/guide/extensions/testing): Test an extension's hooks with cargo test, check the whole extension with alien extensions test, and see its changes with alien render and alien dev. - [Release and update](/docs/guide/extensions/releases): Build an extension into a bundle, ship it in a release pinned by digest, and update, roll back, or remove it later. - [Security](/docs/guide/extensions/security): What an extension can reach, where its code runs and whose credentials sign its calls, and what your customer's security team reviews. - **Customer-managed keys** - [Customer-managed keys](/docs/guide/customer-managed-keys): Let each customer hold the key that makes their data readable in their own AWS KMS, Google Cloud KMS, or Azure Key Vault, and revoke it at any time. - [Quickstart](/docs/guide/customer-managed-keys/quickstart): Connect a test key as your own customer, encrypt and decrypt one value, then watch decryption fail when the key is disabled. - [Add customer-managed keys to your product](/docs/guide/customer-managed-keys/add-to-your-product): Add a customer-managed keys settings page to a hosted product. The customer connects a key in their cloud, and your backend encrypts through the API. - [AWS Virtual Keys](/docs/guide/customer-managed-keys/virtual-keys): Encrypt S3, Aurora, DynamoDB, or EBS in your own AWS account with a key your customer holds, through an ordinary AWS KMS key ARN. - [Customer-managed keys in a deployment](/docs/guide/customer-managed-keys/in-a-deployment): Encrypt a deployment's storage, databases, and volumes with a key the customer owns and can revoke, using alien.Key in alien.ts. - [Data and keys](/docs/guide/customer-managed-keys/security): What Alien receives, what the customer's key controls, what must match at decrypt time, and what your application must do. - **Local AI models** - [Local AI models](/docs/guide/local-ai-models): Run your product's AI requests on each customer's own model account, with their approved models, terms, and committed spend. - [Quickstart](/docs/guide/local-ai-models/quickstart): Connect a test model provider as your own customer and send your first request through the AI Gateway. - [Add customer AI models to your product](/docs/guide/local-ai-models/add-to-your-product): Add an AI models settings page to a hosted product. The customer connects their model provider, and your backend calls it through the AI Gateway. - [Requests and models](/docs/guide/local-ai-models/routing): How the AI Gateway picks the customer, model, provider, and protocol for each request, and how to read its logs and usage. - [Local AI models in a deployment](/docs/guide/local-ai-models/in-a-deployment): Call models in the customer's own Amazon Bedrock, Vertex AI, or Azure AI Foundry with no API keys, or serve open-weight models on GPUs. - **Bare metal & on-prem** - [Bare metal & on-prem](/docs/guide/bare-metal-on-prem): Install your product on any customer Linux machine with one command, and every new version you ship updates it automatically. - [Quickstart](/docs/guide/bare-metal-on-prem/quickstart): Build a Rust job worker from source, run it on a Linux machine you own, then ship a new version while a job runs and roll back. - [Add to your product](/docs/guide/bare-metal-on-prem/add-to-your-product): Give a customer the join command for their own on-prem machines through the deployment portal, then show their machines in your product. - [Workloads](/docs/guide/bare-metal-on-prem/workloads): What runs on bare metal and on-prem machines: daemons with host access, stateless containers, pools, data resources, and public endpoints with managed TLS. - [Releases and operations](/docs/guide/bare-metal-on-prem/operations): How releases roll out to your machines, how drain and upgrades protect running work, and how to watch health, read logs, and remove machines. - **Subaccounts** - [Subaccounts](/docs/guide/subaccounts): Give each customer a single-tenant deployment in its own AWS account, Google Cloud project, or Azure resource group, created by Alien in your cloud. - [Connect a cloud](/docs/guide/subaccounts/connect-a-cloud): Give Alien access to create subaccounts in your AWS organization, Google Cloud organization, or Azure subscription. - [Warm pools](/docs/guide/subaccounts/warm-pools): Keep subaccounts ready, with their quotas already requested, so a new customer's deployment starts at once instead of waiting on the cloud provider. - [Quotas](/docs/guide/subaccounts/quotas): How many subaccounts your cloud allows, how to raise that limit, and how Alien requests the quotas each new account needs. - Infrastructure: Every resource your product uses, in your cloud or the customer's: what each becomes on each platform, and what each platform needs for initial setup. - [Infrastructure](/docs/infrastructure): Every Alien resource, from Workers to Postgres to AI models, and the native AWS, Google Cloud, and Azure service each one becomes. - [Using resources](/docs/infrastructure/using-resources): Declare a resource in alien.ts, link it to the code that uses it, call it through a binding, and choose whether the admin or Alien manages it. - **Compute** - [Choose compute](/docs/infrastructure/compute): Choose between a Worker, a Container, and a Daemon for each workload in your stack, and group machines into compute pools. - Worker - [Worker](/docs/infrastructure/worker): Stateless compute that runs on HTTP requests, commands, queue messages, storage events, or a schedule, and scales to zero when idle. - [Worker API reference](/docs/infrastructure/worker/api): Handler registration, event types, waitUntil, and the Worker binding in TypeScript, Python, and Rust. - [Worker behavior and limits](/docs/infrastructure/worker/behavior): Guarantees, limits, per-platform details, and design decisions for Workers. - [Events and triggers](/docs/infrastructure/worker/events-and-triggers): Run a Worker from queue messages, storage events, and cron schedules. - [Toolchains](/docs/infrastructure/worker/toolchains): How Alien builds and packages Worker code from TypeScript, Rust, Python, or a Dockerfile, or uses a prebuilt image. - [Wait until](/docs/infrastructure/worker/wait-until): Run background work in a Worker after the response is sent. - [Worker pricing](/docs/infrastructure/worker/pricing): What a Worker costs in the customer's cloud, with a worked example. - Container - [Container](/docs/infrastructure/container): Long-lived services and background processes from an image, with internal DNS, public endpoints, persistent volumes, backups, and GPUs. - [Container API reference](/docs/infrastructure/container/api): Container builder methods, endpoint and volume options, SDK clients, outputs, and volume CLI commands. - [Container behavior and limits](/docs/infrastructure/container/behavior): Placement, scaling, endpoints, volumes, backups, per-platform details, and limits for the Container resource. - [Container pricing](/docs/infrastructure/container/pricing): What a Container costs in the customer's cloud account, with list prices for load balancers, volumes, and snapshots. - Daemon - [Daemon](/docs/infrastructure/daemon): One long-lived process on every eligible machine or Kubernetes node, for agents, collectors, connectors, and host loaders. - [Daemon API reference](/docs/infrastructure/daemon/api): Daemon builder methods, runtime options, public endpoints, environment variables, and outputs. - [Daemon behavior and limits](/docs/infrastructure/daemon/behavior): Placement, per-platform behavior, host runtime support, public endpoints, and limits for the Daemon resource. - [Daemon pricing](/docs/infrastructure/daemon/pricing): What a Daemon costs in the customer's cloud account. - Sandbox - [Sandbox](/docs/infrastructure/sandbox): Isolated environments your app creates at runtime to run code it doesn't trust, such as user scripts, builds, or code a model wrote. - [Sandbox API reference](/docs/infrastructure/sandbox/api): Every Sandbox method and type in the TypeScript, Python, and Rust SDKs. - [Sandbox behavior and limits](/docs/infrastructure/sandbox/behavior): Guarantees, limits, egress rules, image startup, and per-platform behavior for Sandbox resources. - [Sandbox security](/docs/infrastructure/sandbox/security): Isolation boundaries, users and privileges, outbound enforcement, trusted callers, and known limits of Sandbox resources. - [Remote Sandboxes for a hosted product](/docs/infrastructure/sandbox/customer-sandboxes): Run the code your product executes for a customer inside sandboxes in their cloud, called from your hosted backend through the Sandbox Gateway. - [Sandbox pricing](/docs/infrastructure/sandbox/pricing): What sandboxes, the egress gateway, and NAT cost in the customer's cloud, with a worked example. - [ComputeCluster](/docs/infrastructure/compute-cluster): ComputeCluster pools, hardware requirements, scaling, node permissions, and platform mapping for containers and daemons. - **Data** - Storage - [Storage](/docs/infrastructure/storage): Object storage for files, uploads, and blobs on S3, Cloud Storage, Blob Storage, or a local directory, with one API across clouds. - [Storage API reference](/docs/infrastructure/storage/api): Every Storage method and type in the TypeScript, Python, and Rust SDKs, with parameters, results, and error codes. - [Storage behavior and limits](/docs/infrastructure/storage/behavior): Consistency, durability, limits, operation semantics, triggers, notifications, encryption, and per-cloud details for the Storage resource. - [Customer buckets for a hosted product](/docs/infrastructure/storage/customer-buckets): Keep each customer's files in a bucket in their own cloud account while your backend stays hosted and reads and writes it directly. - [Storage pricing](/docs/infrastructure/storage/pricing): What a Storage resource costs in the customer's cloud account on AWS, GCP, and Azure, with a worked example. - KV - [KV](/docs/infrastructure/kv): A key-value store for small records on DynamoDB, Firestore, Table Storage, or a local database, with TTLs, conditional writes, and prefix scans. - [KV API reference](/docs/infrastructure/kv/api): Every KV method and type in the TypeScript, Python, and Rust SDKs, with conditional writes, scan pagination, and error codes. - [KV behavior and limits](/docs/infrastructure/kv/behavior): Consistency, conditional writes, TTL, scan semantics, limits, and per-cloud details for the KV resource. - [KV pricing](/docs/infrastructure/kv/pricing): What a KV resource costs in the customer's cloud account on DynamoDB, Firestore, and Table Storage, with a worked example. - Queue - [Queue](/docs/infrastructure/queue): A message queue with at-least-once delivery on SQS, Pub/Sub, Service Bus, or a local queue, for background work and Worker triggers. - [Queue API reference](/docs/infrastructure/queue/api): Every Queue method and type in the TypeScript, Python, and Rust SDKs, with batch outcomes, leases, and error codes. - [Queue behavior and limits](/docs/infrastructure/queue/behavior): Delivery guarantees, leases, limits, triggers, and per-cloud settings for the Queue resource. - [Queue pricing](/docs/infrastructure/queue/pricing): What a Queue resource costs in the customer's cloud account on SQS, Pub/Sub, and Service Bus, with a worked example. - Postgres - [Postgres](/docs/infrastructure/postgres): A managed PostgreSQL database on a private network, on Aurora, Cloud SQL, Flexible Server, or a local process, with pgvector included. - [Postgres API reference](/docs/infrastructure/postgres/api): The Postgres connection API in the TypeScript, Python, and Rust SDKs, TLS modes, the binding per platform, and error codes. - [Postgres behavior and limits](/docs/infrastructure/postgres/behavior): What Postgres guarantees on each platform, sizing and tiers, backups, changes to a running database, deletion, and limits. - [Postgres pricing](/docs/infrastructure/postgres/pricing): What a Postgres resource costs in the customer's cloud account on Aurora, Cloud SQL, and Flexible Server, with a worked example. - Redis - [Redis](/docs/infrastructure/redis): A managed Redis-compatible store on a private network, on ElastiCache for Valkey, Memorystore for Valkey, Azure Managed Redis, or a local Valkey container. - [Redis API reference](/docs/infrastructure/redis/api): The Redis connection API in the TypeScript, Python, and Rust SDKs, TLS handling, the binding per platform, and error codes. - [Redis behavior and limits](/docs/infrastructure/redis/behavior): What Redis guarantees on each platform, sizing and tiers, persistence, blocked commands, changes to a running server, deletion, and limits. - [Redis pricing](/docs/infrastructure/redis/pricing): How a Redis resource is billed in the customer's cloud account on ElastiCache, Memorystore, and Azure Managed Redis, and what changes the bill. - **Secrets and keys** - Vault - [Vault](/docs/infrastructure/vault): Secrets your software reads and writes at runtime, stored in the cloud's own secret service in the environment you deploy to. - [Vault API reference](/docs/infrastructure/vault/api): Every Vault method in the TypeScript, Python, and Rust SDKs, the binding per platform, and error codes. - [Vault behavior and limits](/docs/infrastructure/vault/behavior): How Vault stores secrets on each platform, naming rules, size limits, deletion, access scoping, and throttling. - [Vault pricing](/docs/infrastructure/vault/pricing): What a Vault resource costs in the customer's cloud account on SSM Parameter Store, Secret Manager, and Key Vault, with a worked example. - [Key](/docs/infrastructure/key): A customer-managed encryption key in the customer's own key service, used to encrypt storage, databases, and volumes, and small values from code. - **AI and email** - AI - [AI](/docs/infrastructure/ai): Model inference through the customer's own cloud, Amazon Bedrock, Vertex AI, or Azure AI Foundry, with no API keys in your app. - [AI API reference](/docs/infrastructure/ai/api): The AI client in the TypeScript and Python SDKs, the binding, the gateway endpoints, and error codes. - [AI behavior and limits](/docs/infrastructure/ai/behavior): Guarantees, limits, protocols, model availability, and per-cloud details for the AI resource. - [AI models](/docs/infrastructure/ai/models): The models Alien serves on each cloud, their native protocol, and the setup each cloud needs before they answer. - [AI pricing](/docs/infrastructure/ai/pricing): What AI inference costs in the customer's cloud, with a worked example. - Email - [Email](/docs/infrastructure/email): Send and receive mail on customer-owned domains with Amazon SES in the customer's AWS account. - [Email API reference](/docs/infrastructure/email/api): The Email binding, permission sets, runtime domain management, inbound mail, and sending events. - [Email behavior and limits](/docs/infrastructure/email/behavior): Guarantees, limits, inbound activation, update semantics, and what initial setup provisions for the Email resource. - [Email pricing](/docs/infrastructure/email/pricing): What Amazon SES costs in the customer's AWS account, with a worked example. - **Networking and access** - Network - [Network](/docs/infrastructure/network): The VPC or VNet a deployment runs in. When Alien adds it, the network modes, how to set them, and outputs. - [Network settings reference](/docs/infrastructure/network/settings): Every StackSettings.network mode and field. - [Network behavior and limits](/docs/infrastructure/network/behavior): Guarantees, CIDR selection, subnet layout, limits, and per-cloud details for the Network. - [Network pricing](/docs/infrastructure/network/pricing): What a Network costs in the customer's cloud, by mode, with a worked example. - [Supporting resources](/docs/infrastructure/supporting-resources): ArtifactRegistry, Build, and ServiceAccount, and the names deployment status shows for every resource Alien adds to a stack. - **Platforms** - [AWS](/docs/infrastructure/platforms/aws): Set up a deployment in a customer's AWS account with CloudFormation, Terraform, or the CLI. What the admin needs, the management role, updates, removal. - [Google Cloud](/docs/infrastructure/platforms/gcp): Set up a deployment in a customer's Google Cloud project with Google login, Terraform, or the CLI. What the admin needs, what it creates, and removal. - [Azure](/docs/infrastructure/platforms/azure): Set up a deployment in a customer's Azure subscription with Terraform or the CLI. What the admin needs, the managed identity, its role limits, removal. - [Kubernetes](/docs/infrastructure/platforms/kubernetes): Deploy to a customer's Kubernetes cluster with Helm or a new EKS, GKE, or AKS cluster. What the admin needs, how the Operator pulls releases, and removal. - [Bare metal & on-prem platform](/docs/infrastructure/platforms/machines): Run your product on a customer's own Linux machines with one join command. What each machine needs, the machine agent that pulls releases, and removal. - [Single-tenant in your cloud](/docs/infrastructure/platforms/single-tenant): Give one customer a dedicated deployment in your own cloud account. How to create it, change infrastructure without new setup, and use their key on AWS. - [Setup packages](/docs/infrastructure/platforms/setup-packages): The CloudFormation, Terraform, Helm, and CLI packages Alien builds from each release for initial setup: when they build, versions, hosting, and previews. - [Push, pull, and air-gapped](/docs/infrastructure/platforms/deployment-models): How releases and commands reach a customer deployment after setup: push through a scoped cloud identity, pull through an outbound Operator, or air-gapped. - Deployment UX: The screens your customer's admin uses to set up and manage your software in their cloud: a link to the deployment portal, the portal launched from your product, or your own UI. - [Deployment UX](/docs/deployment-ux): What your customer's admin sees when they set up your software in their own cloud, and how to build that setup into your product. - **Send a link** - [Create a setup link](/docs/deployment-ux/setup-links): A setup link is a URL for one customer that opens the deployment portal. Create one in the dashboard, CLI, or API, choose what it allows, and send it. - [Deployment portal](/docs/deployment-ux/deployment-portal): A branded setup page Alien hosts for your customer's admin. They open one link, set up your software in their own cloud, and follow its status. - [Brand the portal](/docs/deployment-ux/branding): White-label the deployment portal with your logo, colors, and domain, and rename the setup CLI and Google sign-in your customer's admin sees. - **Launch from your product** - [Add a Deploy button](/docs/deployment-ux/deploy-button): Add a Deploy in your cloud button to your settings page that opens the deployment portal, then show the deployment's progress and removal in your product. - [Show deployment progress](/docs/deployment-ux/deployment-progress): Show your customer what their deployment is doing, who must act next, and when it's ready, from a few fields on one API response. - [Errors and retries](/docs/deployment-ux/errors-and-retries): Show a deployment's errors so customers know whether to wait, fix something in their cloud, or retry, and hide the noise Alien retries on its own. - [Verify and activate](/docs/deployment-ux/verify-and-activate): Check that your product can reach a customer's new deployment, then turn the feature on. Running means Alien finished, not that the feature works. - [Updates and connection](/docs/deployment-ux/updates-and-connection): Keep your deployment card honest after initial setup. Show when a new release needs the customer's admin, and when Alien can't confirm the current state. - [Remove a deployment](/docs/deployment-ux/remove-a-deployment): Remove a customer's deployment from your product, switch traffic off first, and keep or erase the data in their cloud. - [Follow removal](/docs/deployment-ux/follow-removal): Show a customer's removal until it ends, including the last step their admin finishes in their own cloud, and close your record when it's done. - **Build it into your product** - [Build your own setup screen](/docs/deployment-ux/setup-screen): Add a Deploy in your cloud screen to your product. One API call creates the deployment and returns the setup step for the customer's cloud. - [Sizes and networks](/docs/deployment-ux/sizes-and-networks): Offer Small, Medium, and Large sizes and a network choice when a customer sets up a deployment from your product. - [Resize a deployment](/docs/deployment-ux/resize-a-deployment): Let customers change the size of a running deployment from your product, and show the resize until it finishes. - **Best practices** - [Who acts next](/docs/deployment-ux/who-acts-next): Make every deployment state say who must act next, the customer's admin, Alien, or your team, and hand off to the admin when it's their turn. - [Status messages](/docs/deployment-ux/status-messages): The words to use on your deployment card for each state, how to write errors a customer can act on, and how to keep status accessible. - [Links and branding](/docs/deployment-ux/links-and-branding): Checks before your first customer opens a setup link: link expiry and limits, a branded portal and CLI, sizes, networks, and removal. - Production: Ongoing management after customers deploy: watch deployments, get webhooks, roll out releases, search logs, debug, and fix issues with Remote Operator. - [Production](/docs/production): Manage customer deployments after setup: watch status, get webhooks, roll out releases, search logs, and debug and fix issues with Remote Operator. - **Before launch** - [Go-live checklist](/docs/production/go-live-checklist): The checks to finish before the first real customer deploys, with why each matters and how to do it. - [Private Alien Instance](/docs/production/private-instances): Run the Alien manager in your own AWS, Google Cloud, or Azure account so deployment traffic and logs stay in your cloud, with no new subprocessor. - [Network requirements](/docs/production/network-requirements): The outbound connections a customer's environment makes when a Private Alien Instance manages its deployment, and the ones that still go to Alien. - [Single sign-on (SSO)](/docs/production/sso): Let your team sign in to Alien with your identity provider through SAML 2.0, and require it for everyone on your email domain except workspace admins. - **Watch deployments** - [Deployments and groups](/docs/production/deployments): Find every remote environment, read its status, and tell a running deployment from a healthy one. - [Follow a deployment](/docs/production/customer-setup): Watch a customer's initial setup and the deployment after it from the dashboard or the CLI, and know when to step in and when the admin must act. - [Webhooks](/docs/production/webhooks): Get a signed HTTPS request when a deployment starts running, fails, updates, loses its heartbeat, or is deleted, instead of polling. - [Logs and metrics](/docs/production/logs): Search the logs every deployment sends, read health and resource metrics, and forward logs to Datadog, Coralogix, Axiom, or any OTLP endpoint. - **Release and fix** - [Roll out releases](/docs/production/rollouts): Roll out a release to customer deployments with channels, promotion, and pins, stage it, verify it landed, and handle held releases. - [Debug a deployment](/docs/production/debugging): The CLI steps for finding why a customer deployment failed, stalled, or misbehaves, from its status down to a shell on the host. - [Troubleshooting](/docs/production/troubleshooting): Find your symptom, learn what it means and who must act, and fix stuck, failed, silent, or half-removed customer deployments. - **Remote Operator** - [Remote Operator](/docs/production/remote-operator): An outbound-only container that lets your team and agents diagnose and fix customer deployments through named, approved, audited operations. - [Add to an existing product](/docs/production/remote-operator/add-to-existing-product): Add Remote Operator to a Helm chart or Amazon ECS service you already ship, verify it with a read-only diagnostic, and record the version it runs. - [Operations](/docs/production/remote-operator/operations): The built-in operations catalog, risk tiers, approval rules in alien.ts or Helm values, and how to build and publish your own plugin. - [Access requests](/docs/production/remote-operator/access-requests): Request time-boxed access to operations and debug sessions, see who approves, and revoke a grant. - [Approving access requests](/docs/production/remote-operator/approving-access-requests): Who approves Remote Operator access requests for each deployment group. Teams and customers approve on the Slack card, and customers can use kubectl. - [Debug sessions](/docs/production/remote-operator/debug): Run kubectl, aws, gcloud, or az against one deployment with scoped, time-boxed credentials, and open a shell on Machines and local deployments. - [Slack and the AI agent](/docs/production/remote-operator/slack): Connect Slack for rollout reports and access-request cards, and use the AI agent that investigates deployments and answers @Alien. - [Your own Slack app](/docs/production/remote-operator/your-slack-app): Post access request cards from a Slack app with your name and logo. Clicks in either app approve. - [Upgrade, rotate, and remove](/docs/production/remote-operator/lifecycle): Rotate an installation's connection key, upgrade or roll back the Operator, recover a stuck Helm release, repair a lost connection, and uninstall it. - API reference: Exact interfaces: alien.ts, the CLI, SDKs, and the REST API. - [API reference](/docs/reference): Look up alien.ts options, CLI commands, SDK packages, REST endpoints, permission sets, and terms. - **Configuration** - [Stack](/docs/reference/stack): Every stack-level option in alien.ts. Resources and lifecycles, platforms, permissions, inputs, operations, and dynamic containers. - [Permissions](/docs/reference/permissions): Permission profiles, scopes, management access, custom permission sets, and every built-in permission set by resource. - [Environment variables](/docs/reference/environment-variables): Environment variables Alien injects into workloads, binding variables, how to set your own variables and secrets, and reserved names. - **CLI** - [alien CLI](/docs/reference/cli/alien): Every command and flag of the alien CLI: build, release, onboard customers, deploy, and operate deployments. - [alien-deploy CLI](/docs/reference/cli/alien-deploy): Every command and flag of alien-deploy, the CLI your customers run to set up, update, and remove a deployment. - **SDKs** - [TypeScript SDK](/docs/reference/sdk/typescript): Runtime bindings, command handlers, event handlers, and waitUntil for TypeScript code that runs in a deployment. - [Python SDK](/docs/reference/sdk/python): Async Python bindings for resources linked to a workload, queue handlers for Workers, and remote bindings. - [Rust SDK](/docs/reference/sdk/rust): The alien-sdk crate for Rust workloads, with resource bindings and the Worker context for commands, events, and waitUntil. - [Testing package](/docs/reference/sdk/testing): Deploy a stack from a test with @alienplatform/testing, call its endpoints and commands, then tear it down. - [Platform API client](/docs/reference/sdk/platform-api): Call the Alien REST API from your backend with the typed @alienplatform/platform-api TypeScript client. - **Extensions** - [Extension SDK](/docs/reference/extensions/sdk): The alien-extension-sdk crate: registration, modifiers, interceptors, custom resources, controllers, and the limits hooks and controllers run under. - [Step protocol](/docs/reference/extensions/step-protocol): The JSON messages Alien sends a custom resource's controller each step, and the replies it expects, for controllers not written in Rust. - **REST API** - [REST API](/docs/reference/api): Base URL, API keys, scopes and roles, errors, and pagination for the Alien REST API. - [Auth](/docs/reference/api/auth) - [API keys](/docs/reference/api/api-keys) - [Workspaces](/docs/reference/api/workspaces) - [Projects](/docs/reference/api/projects) - [Setup links](/docs/reference/api/setup-links) - [Deployment groups](/docs/reference/api/deployment-groups) - [Deployments](/docs/reference/api/deployments) - [Releases](/docs/reference/api/releases) - [Release channels](/docs/reference/api/release-channels) - [Packages](/docs/reference/api/packages) - [Dynamic containers](/docs/reference/api/dynamic-containers) - [Machines](/docs/reference/api/machines) - [Domains](/docs/reference/api/domains) - [Commands](/docs/reference/api/commands) - [Operations](/docs/reference/api/operations) - [Debug sessions](/docs/reference/api/debug-sessions) - [Remote bindings](/docs/reference/api/remote-bindings) - [Remote Operator install](/docs/reference/api/remote-operator-install) - [Managers](/docs/reference/api/managers) - [Events](/docs/reference/api/events) - [Resources](/docs/reference/api/resources) - [AWS virtual keys](/docs/reference/api/aws-virtual-keys) - [Gateways](/docs/reference/api/gateways) - [Cloud regions](/docs/reference/api/cloud-regions) - [User](/docs/reference/api/user) - **Platforms and terms** - [Platforms](/docs/reference/platforms): Which resources each platform supports, and what Alien provisions on AWS, Google Cloud, Azure, Kubernetes, bare metal and on-prem machines, and Local. - [Glossary](/docs/reference/glossary): Short definitions of the Alien terms used across the docs, CLI, and dashboard, from deployment groups and setup links to frozen resources and the Operator. - Examples: Complete projects grouped by how much of the product runs in the customer's environment. - [Examples](/docs/examples): Alien example projects, from a one-command Worker to a whole product in a customer's Kubernetes cluster, by how much runs in the customer's environment. - **Start here** - [Hello world](/docs/examples/hello-world): One Worker with an HTTPS route and one command your backend can call, in TypeScript or Rust, from local development to a customer's cloud. - [Deploy a Next.js app into a customer's cloud](/docs/examples/nextjs-application): Run an existing Next.js app as a Container in each customer's AWS, Google Cloud, or Azure account, with its own HTTPS endpoint. - [Run a Python service in the customer's cloud](/docs/examples/python-container): Build a locked Python project into a Container without a Dockerfile, serve HTTP from it, and call linked resources with the alienplatform SDK. - [Call models in the customer's cloud](/docs/examples/ai-quickstart): A Worker that lists and calls the models in Amazon Bedrock, Vertex AI, or Azure AI Foundry with its own cloud identity. No API keys. - **Control plane ⇄ Data plane** - [Build a GitHub integration with a hosted dashboard](/docs/examples/github-agent): Split a product into a hosted Next.js dashboard and a small GitHub Worker in each customer's environment, with the GitHub token in the customer's vault. - [Run a coding agent in a sandbox per conversation](/docs/examples/agent-sandboxes): A hosted chat app that runs Claude Code in one sandbox per conversation inside each customer's cloud, with placeholder keys and writes held for approval. - [Chat with a private Postgres database](/docs/examples/private-postgres-chat): A streaming Next.js chat app in the customer's cloud that answers from a private Postgres through a model in the same cloud, with no API keys. - [Receive webhooks in the customer's cloud](/docs/examples/webhook-api): Give each customer an HTTPS endpoint that stores webhooks in their own account, then query the events from your backend with commands and stack inputs. - [Process events in the customer's cloud](/docs/examples/event-pipeline): One Worker that handles queue messages, new bucket files, and an hourly schedule in the customer's account, with results your backend reads by command. - [Route commands to a Worker and a Daemon](/docs/examples/command-routing): Call the same command name on two resources in one customer deployment and pick the one that answers with a target. - [Store AI trace history in the customer's object storage](/docs/examples/trace-history): Build a durable, queryable AI trace store on SlateDB and the customer's bucket, with no database server to run in their cloud. - [Build a vector database on the customer's object storage](/docs/examples/vector-database): Run stateless Rust readers and writers behind an Nginx router, with every vector in the customer's bucket and concurrent writes coordinated by ETags. - **Agent or connector** - [Build a Kubernetes agent](/docs/examples/kubernetes-agent): A TypeScript agent in each customer's Kubernetes cluster that reports pods, deployments, and nodes to your API and answers commands, read-only. - [Query a private database](/docs/examples/private-database): A connector Worker beside a database you can't reach, with the connection secret in the customer's vault and only results returned to you. - [Build a command-only agent for employee devices](/docs/examples/endpoint-agent): Run a Rust Daemon on each employee device that watches files, flags sensitive data, keeps events in an encrypted local database, and answers via commands. - [Run an agent's tools in the customer's cloud](/docs/examples/remote-tools): Keep the agent loop in your product and run its tool calls in a private Worker next to the customer's files. - **Whole product** - [Run a service in your customers' Kubernetes clusters](/docs/examples/customer-kubernetes): Ship one Rust service to every customer's Kubernetes cluster, including air-gapped sites, with one Helm install per customer and outbound-only updates. - [Deploy with Flux or Argo CD](/docs/examples/flux-argocd): Run an Alien deployment in a Kubernetes cluster from Git with Flux or Argo CD, for your clusters or customers whose platform team uses GitOps. - [Ship a multi-service app into a customer's Kubernetes cluster](/docs/examples/full-application): Deploy a gateway, dashboard, API, worker, scheduler, Postgres, Redis, and object storage as one release into each customer's cluster. - **Keys, models, and storage** - [Encrypt your data with a key in each customer's KMS](/docs/examples/customer-keys): Create a key in each customer's AWS KMS, Cloud KMS, or Key Vault and encrypt and decrypt with it from your hosted backend, without ever holding the key. - [Run model calls on each customer's AWS or Google Cloud account](/docs/examples/customer-models): Release a stack with one AI resource, let each customer connect Bedrock or Vertex AI, and call their models from your backend through the AI Gateway. - [Store files in each customer's own bucket](/docs/examples/customer-storage): Create a dedicated bucket in each customer's AWS, Google Cloud, or Azure account and read and write it from your hosted backend, with no compute there. - **Remote Operator plugins** - [Build a custom Remote Operator plugin](/docs/examples/custom-operations): Write a Rust plugin with one read-only and one mutating operation against your application's admin API, then publish it and run it in customer deployments. - **Extensions** - [Turn on IAM database authentication](/docs/examples/postgres-iam-auth): An extension with template modifiers and interceptors that turn on IAM authentication for the Postgres database on AWS, Google Cloud, and Azure. - [Keep Postgres backups longer](/docs/examples/postgres-backup-retention): An extension with a CloudFormation and a Terraform modifier that raises Postgres backup retention to 30 on AWS, Google Cloud, and Azure. - [Add your tags to Alien's resources](/docs/examples/resource-tags): An extension with interceptors that add your tags to the resources Alien's controllers create on AWS, Google Cloud, Azure, and Kubernetes. - [Add an AWS budget alert](/docs/examples/budget-alert): A small custom resource that adds an AWS budget alert at initial setup, with a CloudFormation emitter, a Terraform emitter, and an importer. - [Add a DNS zone with its own controllers](/docs/examples/dns-zone): A custom resource that adds a DNS zone, with template parts, importers, permission sets, and controllers on AWS, Google Cloud, and Azure. ## Blog - [When your customer won't run your Terraform](https://www.alien.dev/blog/customer-wont-run-terraform): Security teams refuse vendor Terraform when it is big, changes every release, and needs admin rights. Make the install small, readable and one-time. - [Debugging customer deployments without SSH](https://www.alien.dev/blog/debugging-without-ssh): Debug a product in a customer's cloud with no SSH: logs sent outbound, commands you define in code, and approved, time-limited debug sessions. - [How to update software in customer clouds](https://www.alien.dev/blog/update-software-in-customer-clouds): Update software in many customer cloud accounts: decide who starts each update, release through channels, roll out in stages, and pin or roll back. - [BYOC pricing: charge more, not less](https://www.alien.dev/blog/byoc-pricing): Price BYOC at your hosted price, minus the hosting you no longer pay, plus a 10 to 30% premium. That usually lands 5 to 25% above SaaS. - [Bringing the web workflow to bare metal and on-prem](https://www.alien.dev/blog/web-workflow-bare-metal-on-prem): Deploy to customers' bare metal and on-prem Linux servers with an outbound-only machine agent, no SSH or VPN. One command updates every machine. - [A kill switch for your customers' data](https://www.alien.dev/blog/customer-managed-keys): Offer customer-managed keys by encrypting each customer's data with a key they hold in AWS KMS, Google Cloud KMS or Azure Key Vault. - [Auth for BYOC apps, part two: when the client is an agent](https://www.alien.dev/blog/auth-for-byoc-agents): Control plane auth decides who may reach a deployment. Software that acts on its own inside it needs an identity of its own. - [Authentication for BYOC apps](https://www.alien.dev/blog/byoc-authentication): In BYOC, login stays in your control plane. The customer's data plane only verifies tokens and holds no user records. - [The agent nobody operates](https://www.alien.dev/blog/the-agent-nobody-operates): Nobody operates the agent most B2B products ship into customer environments. It needs releases, observability, scoped access and an owner. - [What is BYOC? Bring your own cloud, explained](https://www.alien.dev/blog/what-is-byoc): BYOC means the vendor deploys software into the customer's cloud account and still operates it. Alien keeps the control plane in the vendor's cloud.