Docs

Introduction

Alien provides infrastructure for deploying and operating software in remote environments at scale, like your customers' cloud accounts. This lets your software run close to:

  • Sensitive data. Process data in the customer's cloud account, so it never reaches yours.
  • Private networks. Reach a database in the customer's VPC or the API of their Kubernetes cluster.
  • Local resources. Read the files and processes on one machine, such as an employee's laptop.
  • Latency-critical workloads. Answer requests from the customer's VPC, next to the app that sends them.

To start, give this prompt to your coding agent in your repository. It asks what your customer requires, reads your code, proposes the smallest option that meets it, and builds it.

Prompt
Help me add Alien (https://alien.dev/docs) to this product so it meets an enterprise customer's data requirements. 1. Install the Alien skills: npx skills add alienplatform/skills 2. Use the alien-architecture skill. Inspect this repository, including its services, Dockerfiles, Helm charts or Docker Compose files, and Terraform. Ask me what the customer requires, then propose the smallest option that meets it: customer-managed keys, local AI models, or a deployment in their cloud or on their servers. 3. Wait for my choice before editing. 4. Use the alien-integration skill to build it and verify one request end to end. Treat the installed packages and `alien --help` as the API source of truth. Don't publish a release or create a customer deployment without asking.

If you already ship a Helm chart, a Compose file, ECS services, or Terraform, start from it.

What runs where

A common design is control plane ⇄ data plane. The control plane stays in your cloud and handles sign-in, customer accounts, deployments, and billing, with no customer data. The data plane runs in each remote environment, with your core services and the data they work with.

Architecture diagram. Control plane manages 2 remote environments: data plane (customer-1 · AWS account), outbound only; data plane (customer-2 · Google Cloud), outbound only.

Each data plane connects out to your control plane. Customer data stays in the data plane.

Not every product splits this way. Often the product stays in your cloud and uses the customer's own key, through customer-managed keys, or their own AI models, through local AI models. Others deploy only a small agent, or the whole product. Architecture design compares them, from the smallest option to the largest.

The data plane can also run in your own cloud, as many times as you need: shared across customers, or dedicated to one customer. Moving it changes where the data lives, not the architecture.

An example

A data plane built from your existing container image, with a bucket and a database next to it:

alien.ts
import * as alien from "@alienplatform/core"

const files = new alien.Storage("files").build()
const db = new alien.Postgres("db").build()

const api = new alien.Container("api")
  .code({ type: "image", image: "ghcr.io/acme/api:1.4.0" })
  .port(8080)
  .link(files)
  .link(db)
  .permissions("execution")
  .build()

export default new alien.Stack("acme-data-plane")
  .add(files, "frozen") // created once, at initial setup
  .add(db, "frozen")
  .add(api, "live")     // updated on every release
  .permissions({
    profiles: {
      execution: {
        files: ["storage/data-read", "storage/data-write"],
        db: ["postgres/data-access"],
      },
    },
  })
  .build()

Each resource becomes a native service wherever the stack runs. The customer's admin picks the platform and compute at initial setup, the one-time step they run in their own account:

Compute
  • alien.Container("api")EC2 machines managed by Alien
  • alien.Storage("files")S3 bucket
  • alien.Postgres("db")Aurora PostgreSQL
  • alien.Queue("jobs")SQS queue
  • alien.Kv("cache")DynamoDB table
  • alien.Vault("secrets")SSM Parameter Store

CloudFormation or Terraform grants Alien a role in the customer's account. Releases are pushed with API calls.

The bucket and the database are frozen: initial setup creates them once, and no later update can change or delete them. The container is live: Alien updates it on every release, with no action from the admin. See Frozen and live.

Each customer's copy of the stack is a deployment. One command updates every deployment:

alien release

Next

On this page