Openship Integration Guide

Technology: openship · Category: hosting · Last reviewed: 2026-10-20

Source: https://tech-stack.codeamanilabs.org/guide/openship

Insight:

Openship is the self-hosted deploy tier: Apache-2.0 CI/CD that builds, ships, routes, and TLS-terminates a repo on hardware you own — a Vercel-shaped workflow without the per-seat bill. Since August it has grown from a single-box PaaS (0.6.x) into a fleet platform (0.9.x): k3s clusters, replicas, clustered Postgres/Redis, its own CI runner (Openship Actions), and a Node SDK in the same openship package. The trade is unchanged — you are the platform team, and the Docker socket the API mounts is host root. codeAmani runs a fork (codeAmani-Solutions/open-ship, still on 0.6.8) as its local fleet control plane; catching up to 0.9.x means crossing 0.8.0's one-way secret-encryption migration.

 ██████╗ ██████╗ ███████╗███╗   ██╗███████╗██╗  ██╗██╗██████╗
██╔═══██╗██╔══██╗██╔════╝████╗  ██║██╔════╝██║  ██║██║██╔══██╗
██║   ██║██████╔╝█████╗  ██╔██╗ ██║███████╗███████║██║██████╔╝
██║   ██║██╔═══╝ ██╔══╝  ██║╚██╗██║╚════██║██╔══██║██║██╔═══╝
╚██████╔╝██║     ███████╗██║ ╚████║███████║██║  ██║██║██║
 ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝╚═╝╚═╝

Openship Integration Guide

Focus: Running codeAmani's own deploy platform. Install the control plane, deploy a repo end to end, drive it from code (Ship SDK) and agents (MCP), and operate the local fork (codeAmani-Solutions/open-ship) that fronts the fleet.

Overview

Openship is an open-source, self-hostable deployment platform with built-in CI/CD, licensed Apache-2.0 (repo LICENSE, npm metadata). Point it at a GitHub repo, a folder on disk, or a prebuilt image and it runs one pipeline: detect the stack, build an image, run it on loopback, then write an OpenResty reverse-proxy route and issue a Let's Encrypt certificate. Push-to-deploy, PR previews, rollbacks, managed Postgres/MySQL/MongoDB/Redis, a built-in Postfix + Dovecot mail server, and backups all live in the same control plane.

Four interfaces drive the same backend: a desktop app (Electron), a web dashboard (Next.js), the CLI, and since 0.8.0 the Ship SDK (openship/client, openship/native), all in one npm package. A REST API and an MCP endpoint let agents drive it.

⚠️ Name collision. openshiporg/openship is an unrelated e-commerce order-fulfilment project. This guide covers oblien/openship, the deployment platform at https://openship.io.

Current version (verified 2026-10-20)

npm openship 0.9.3 (published 2026-10-17). Description: "Openship SDK and CLI for native and remote deployments"
GitHub release v0.9.3 (2026-10-17). Release cadence is about weekly.
Node engines.node >=22 (the CLI warns on 20 and 21, and refuses below 20)
License Apache-2.0
codeAmani fork 0.6.8, 13 fork commits, last commit 2026-08-29. It is four minor versions behind (see Breaking changes)

What changed since this guide was written (0.6.7 → 0.9.3)

Release Date Headline
0.6.8 – 0.7.2 Aug 25 – Sep 5 Fix releases (release notes are "bump + announce" only)
0.8.0 Sep 27 Server clusters (managed WireGuard private networking + k3s), app replicas 1–100, clustered PostgreSQL and sharded Redis, shared volumes, S3 DB backups, Node SDK, much larger MCP surface, releaseCommands, wildcard TLS, env/build-args encrypted at rest
0.8.1 Oct 6 Openship Cloud managed servers with monthly plans, passkeys + TOTP 2FA, GitHub access decoupled from sign-in
0.8.2 Oct 6 Desktop updater fix ("Redirect was cancelled")
0.9.0 Oct 12 Openship Actions (GitHub-style CI on your own Linux/macOS runners), move the control plane between Desktop and a server, GitHub deployment Checks on by default, Cloud Pages for static sites
0.9.1 Oct 13 Public app catalog, runtimeVersion / runtimeImage overrides, path-only domain routing
0.9.2 Oct 16 Workers and schedulers declared in openship.json, managed Cloudflare Tunnel ingress, reusable BuildKit caches
0.9.3 Oct 17 Opt-in GitHub PR previews (same-repo, non-draft, isolated vars and volumes), command-variable → encrypted env migration

Where it sits next to the managed hosts and the other self-hosted PaaS

Vercel Railway Render Coolify / Dokploy Openship
Model Managed serverless Managed containers Managed containers Self-hosted PaaS Self-hosted PaaS (+ optional managed Cloud)
Who runs the machine Vercel Railway Render You You (or Openship Cloud)
Long-running processes / workers ✗ functions ✓ ✓ ✓ ✓ (workers + schedulers since 0.9.2)
Cost at rest Per seat + usage Usage Per service VPS rent VPS rent (Cloud: $5–$99/mo per server)
TLS / routing Automatic Automatic Automatic Traefik + LE OpenResty + LE; you own renewals
Edge features Global CDN, WAF CDN CDN Traefik middlewares Reload-free per-route rate limits, IP/geo/UA bans, built-in analytics. No CDN, no cache, no HTTP/3, no WAF
Multi-server n/a n/a n/a SSH SSH + WireGuard + k3s clusters (0.8.0)
Agent surface MCP MCP MCP MCP (Coolify read-only, Dokploy full API) MCP, write-capable, every call re-authorized
Distinctive DX, previews DX Managed always-on Coolify: 280+ templates Adopts running Coolify/Dokploy/Dokku stacks and proxies; built-in mail server; desktop mode with no daemon

The Coolify / Dokploy / Dokku column and Openship's "no CDN / HTTP/3 / WAF" caveat come from Openship's own migration guide, which states its own gaps candidly. It is still a vendor comparison, so verify it before you lean on it.

Reach for Openship when infra has to stay in-house, when one €5–€20 VPS must carry several apps that would each be a paid Render or Railway service, or when the same box also hosts Postgres, Redis, and mail. Stay on Vercel (codeAmani's default) for marketing sites, the dashboard, and anything where a git push shipping itself is worth more than owning the box.

flowchart LR
  A["Source<br/>GitHub repo · local folder · image"] --> B["Detect<br/>package.json · lockfile · openship.json"]
  B --> C["Build<br/>Docker image or bare release<br/>config frozen into a snapshot"]
  C --> R["releaseCommands<br/>(migrations, 10 min each)"]
  R --> D["Run<br/>container on loopback<br/>+ workers / schedulers"]
  D --> E["Route + secure<br/>OpenResty + Let's Encrypt<br/>or Cloudflare Tunnel"]
  E --> F["Live domain"]
  G["git push / PR"] -.->|"webhook · Checks"| B
  H["CLI · SDK · dashboard · desktop · MCP"] --> I["Control plane API<br/>Hono + Postgres/PGlite"]
  I --> B

Official Documentation

Resource URL
Docs home https://openship.io/docs
Installation https://openship.io/docs/getting-started/installation
Ship SDK https://openship.io/docs/api/sdk
CLI reference https://openship.io/docs/cli/reference
MCP https://openship.io/docs/mcp (tool catalog: https://openship.io/docs/api/mcp-tools)
Security: isolation / auth / permissions https://openship.io/docs/security/isolation · /docs/security/auth · /docs/security/permissions
Updating https://openship.io/docs/guides/updating
Openship Actions https://openship.io/docs/guides/actions
Migrate from Coolify / Dokploy / Dokku https://openship.io/docs/guides/migrate-from-coolify-dokploy-dokku
Releases https://github.com/oblien/openship/releases
Pricing (Cloud) https://openship.io/pricing

Self-hosting requirements

Need Detail
Control-plane host (Compose mode, recommended for a VPS) Linux with Docker. Runs Postgres, Redis, API :4000, dashboard :3001, and an OpenResty edge on :80/:443 (host networking, so Linux only).
Bare mode macOS, Windows, or Linux without Docker. One process with embedded PGlite. It deploys out to SSH servers or Cloud and does not host apps itself.
Node 22+ for npm i -g openship. The install script supplies its own Node.
Service manager systemd (Linux), launchd (macOS), or a Scheduled Task on Windows (best effort). Without systemd, use openship up --foreground or raw Compose.
Target servers Any SSH-reachable Linux (Ubuntu/Debian work well), with key, password, or agent auth. Openship installs docker + git on setup, then openresty, certbot, and rsync on first need. Cloudflare Access SSH is supported, so :22 does not have to be public.
Clusters (0.8.0+) Two or more SSH servers with bidirectional private connectivity: an existing private network, or Openship-managed WireGuard. Openship installs k3s. Provider firewall rules are shown before apply.
Public HTTPS A domain with A/AAAA records to the box (HTTP-01), or a connected DNS provider for wildcard certs, or a managed Cloudflare Tunnel (0.9.2). Push-to-deploy and OAuth for MCP both need an always-on public origin.
Data you must keep The database plus the instance encryption key (BETTER_AUTH_SECRET on API installs). Compose installs keep generated secrets in ~/.openship/compose/.env (previous copy kept at .env.bak).

Install

# macOS / Linux: checksum-verified bundle; brings its own Node when yours is < 22
curl -fsSL https://get.openship.io | sh

# pin a release (set the variable on sh, not on curl)
curl -fsSL https://get.openship.io | OPENSHIP_VERSION=0.9.3 sh

# or with a package manager on your own Node 22+
npm i -g openship@0.9.3
# Windows. The docs print git.openship.io/windows, which does not resolve.
# get.openship.io/windows redirects to scripts/install.ps1 in oblien/openship.
irm https://get.openship.io/windows | iex

Then run the wizard. It creates the first admin, wires your domain, and installs Openship as a boot service:

openship            # guided setup, then the control panel
openship open       # dashboard (default http://localhost:3001)
openship status
openship doctor     # also re-probes the host-control channel

Headless / CI (no prompts). Export OPENSHIP_ADMIN_PASSWORD from Hazina first so it stays out of shell history:

openship up --non-interactive \
  --admin-email ops@example.com --admin-name "Ops" \
  --domain-kind custom --hostname ops.example.com \
  --acme-email ops@example.com --edge migrate

--domain-kind takes byo (your own proxy), custom (Openship's edge issues LE), free (<slug>.opsh.io, needs Cloud connect first), or none. --edge migrate|takeover|cancel pre-answers what happens to an existing proxy holding :80/:443. Add --dry-run to preview.

Command Purpose
openship up [--compose|--bare] [--public-url URL] [--foreground] [--no-ui] Install and start as a service
openship up --no-host-control Do not create the container→host SSH key (see Security)
openship stop / openship update [--check] [--via npm|bun] Stop / update. Re-run openship up after update, because the running service keeps the old version until restarted
openship uninstall [--keep-data] [--keep-images] [--yes] Remove the control plane. Deployed apps keep running

Raw Docker Compose (no CLI)

git clone https://github.com/oblien/openship.git && cd openship
cp .env.example .env          # fill in secrets first
docker compose --env-file .env -f docker/docker-compose.yml up -d

docker/docker-compose.yml pulls ghcr.io/oblien/*. The root docker-compose.yml is the from-source SaaS control plane (no edge, no socket) and cannot host your apps. Raw Compose does not provision the host-control SSH channel, so :80/:443 takeover, the mail engine, and host-written catalog configs refuse until you do the five manual steps in .env.example (see /docs/troubleshooting/host-channel). openship update will not touch a raw-Compose stack. Upgrade it by pinning OPENSHIP_VERSION in .env, then pull and up -d.


Deploy a project

cd your-project
openship init
openship deploy --watch
openship logs

CI: openship project git auto-deploy my-app --enable adds a GitHub webhook that re-runs the pipeline on push and rebuilds only the monorepo services that changed. Since 0.9.0, repository deployments also publish GitHub Checks by default. That needs a GitHub App with Checks write access, because a PAT alone is not enough. 0.9.3 adds opt-in PR previews: same-repository, non-draft PRs only, with preview-only variables and isolated volumes. Production variables are never copied, and forks are excluded.

openship.json additions since August

Key Since What it does
releaseCommands 0.8.0 Run in order after build, against the candidate release's env (migrations). 10-minute budget each. Failure blocks activation, and rollbacks skip them. Single-app Docker and Bare only.
runtimeVersion / runtimeImage 0.9.1 Pin the runtime (for example PHP 8.3/8.4), or override the production base image for Docker source builds.
Workers / schedulers (roles) 0.9.2 Extra containers from the app image with their own command and no published ports. Schedulers are singletons. Single-app self-hosted Docker only.

Detected stacks: Node, Python, Go, Rust, PHP, Ruby, Java, .NET, Dockerfiles, Compose files, and monorepos. Next.js standalone and Nuxt output are prepared automatically (0.9.3).


Ship SDK (0.8.0+)

The same openship package now exports a typed SDK. Imports are passive: importing does not start the CLI or open a database.

Import Use
openship/client → OpenshipClient Talk to an existing self-hosted or Cloud API (https://api.openship.io for Cloud)
openship/native → createShip Embed an engine in your own Node app (PGlite storage, explicit start() / close(), needs a ≥32-byte encryption key)
openship Both, plus OperationError, iteratePages, consumeDeploymentEvents, and types
import { resolve } from "node:path";
import { OpenshipClient } from "openship/client";

const ship = new OpenshipClient({
  baseUrl: "https://open-ship-api.codeamani.com",   // no credentials or query string allowed
  token: process.env.OPENSHIP_TOKEN!,                // opsh_pat_..., from Hazina
  organizationId: process.env.OPENSHIP_ORGANIZATION_ID!,
});

const run = await ship.deploy({ name: "my-app", source: { type: "directory", path: resolve("./app") } });
const outcome = await ship.deployment(run.deployment_id).wait({ timeoutMs: 600_000 });
if (!outcome.success) throw new Error(outcome.status);

Behaviour to know: the client never follows redirects and never retries mutations. On a lost response, inspect state before you resubmit. Aborting a log stream or a wait() does not cancel the deployment, so call deployment(id).cancel(). ready and no_changes are the success states. Full runnable versions are in examples/ (type-checked against openship@0.9.3).


CLI map (0.9.3)

Group Commands
Run / update the instance up, stop, update, install, uninstall, open, status, doctor, reset-admin-password
Deploy init, deploy, deployment, logs, app
Resources project (git, routing, volume, database, connections), service (env), domain (dns)
Access & API login, logout, context, token, access, api, credential
Servers & fleet server (cluster, network, managed, containers, tunnel, github), edge (rules), dns (ingress)
Ops backup (policy, run, destination), job, mail, migration, notification, webhook, analytics, audit, system, settings, billing

Openship Actions has no dedicated command group yet. Drive it through openship api. Global flags: --json (use it from scripts and agents), --version, --help. Contexts live in ~/.openship/config.json.

PATs are opsh_pat_ + 43 random characters. Narrow them:

openship token create "ci-readonly" --read-only --expires 90
openship token create "deploy-bot" --grant project:proj_123:read,write
openship login --token opsh_pat_xxxxxxxxxxxx

A token is bound to the organization it was created in and acts as its creator, never more. Bearer tokens sent from the dashboard's own browser origin are rejected (401 BEARER_NOT_ALLOWED_FROM_BROWSER).


Architecture

flowchart TD
  subgraph UI["Interfaces"]
    D1["Dashboard · Next.js"]
    D2["CLI + Ship SDK · npm openship"]
    D3["Desktop · Electron"]
    D4["MCP · POST /api/mcp"]
  end
  UI -->|"HTTP /api/*"| API["Control plane API · Hono"]
  API --> DB[("Postgres + Drizzle<br/>or embedded PGlite")]
  API --> ADP["adapters"]
  ADP --> R["runtime<br/>Docker · bare (systemd) · k3s cluster · Cloud"]
  ADP --> I2["infra<br/>OpenResty edge · certbot · CF Tunnel"]
  R --> T{"Target"}
  T --> T1["This server (host-control SSH)"]
  T --> T2["Your servers over SSH"]
  T --> T3["Cluster over WireGuard + k3s"]
  T --> T4["Openship Cloud"]

Security model: what the deploy path can touch

This is the part to read before exposing an instance.

Surface What it is Blast radius Control
Docker socket in the api container (Compose mode) Needed to build and run apps Host root for anyone who controls the API Treat dashboard access as host access. Never co-tenant. Keep the dashboard off the public internet (OPENSHIP_BIND_ADDR, Cloudflare Tunnel + Access)
Host-control channel SSH key that openship up authorizes for the invoking user, reached via host.docker.internal Host shell, :80/:443 takeover, port scans openship up --no-host-control on boxes that only manage remote servers. It is CLI-only by design, and it is defense in depth, not isolation
SSH credentials to target servers Key, password, or agent. Stored by the control plane Whatever that user can do (usually root) Use a dedicated key per server and prefer agent auth. Cloudflare Access transport keeps :22 private
Runtime isolation Docker: one container per deployment, per-project bridge network openship-<slug>, project-prefixed volumes, random loopback ports Kernel-level Bare mode shares the host filesystem, network, and users and has no CPU/memory caps. Run only trusted code there
Openship Actions runners (0.9.0) Native runners, or runners with a host Docker socket Run trusted code with that server user's access Fork code is blocked by default. Approved fork runs use disposable Cloud runners without secrets. For stronger separation, use disposable VMs
Secrets at rest Env, build args, and Compose snapshots encrypted since 0.8.0. 2FA secrets are encrypted with BETTER_AUTH_SECRET Losing the key means losing the secrets Back up the DB and the key together. "Download .env" and project export are plaintext, so treat those files as secrets
MCP POST /api/mcp, OAuth 2.1 or PAT Exactly the grant Every tools/call re-runs auth and per-resource checks. tokens, auth, and mcp modules can never become tools. Tools carry readOnlyHint / destructiveHint
Unauthenticated floods Per-IP guard before auth (0.8.0) n/a Behind a proxy, set TRUST_PROXY / OPENSHIP_TRUST_EDGE=true so the guard sees real client IPs
Account Passkeys + TOTP 2FA + recovery codes (0.8.1) n/a Turn on 2FA for every admin on any internet-reachable instance
Updates Pulled from public GitHub releases. Checksum-verified bundle. Desktop verifies SHA-256 and publisher signature n/a Auto-update is off by default on servers. Pin OPENSHIP_VERSION for Compose
Telemetry Structured error upload is disabled for Desktop, self-hosted, native, and CLI (0.9.0) n/a Only Openship Cloud stores sanitized events

Driving Openship from Claude Code (MCP)

# OAuth 2.1: browser consent where you pick read-only/full and which projects/servers/repos
claude mcp add --transport http --scope user openship https://openship.example.com/api/mcp

# Static-token fallback: mint a read-only or scoped PAT for agents
claude mcp add --transport http openship https://openship.example.com/api/mcp \
  --header "Authorization: Bearer opsh_pat_…"

codeAmani's fork — the local fleet control plane

The working checkout lives in WSL Ubuntu at ~/projects/grok-projects/open-ship (read-only snapshot taken 2026-10-20):

origin https://github.com/codeAmani-Solutions/open-ship.git
upstream https://github.com/oblien/openship.git. v0.6.8 merged (0adc1e79). The local upstream/main ref has not been fetched past 0.6.8
Branch / version main, package.json 0.6.8, 13 commits ahead of the local upstream/main ref, last commit 2026-08-29
Uncommitted docker-compose.override.yml modified, plus untracked AGENTS.md, decisions.md, status.md, scripts/migrate-ghost-postgres.sh, and others
Shape Bun + Turbo monorepo: apps/{api,cli,dashboard,desktop,edge,email,web}, packages/*

Upstream's ports (:4000 / :3001) are not what this machine runs, because 127.0.0.1:4000 belongs to the global openship CLI. docker-compose.override.yml supplies the fleet topology:

Surface Host port URL
Dashboard 3246 http://127.0.0.1:3246
API 3247 http://127.0.0.1:3247/api/health
Marketing web 3236 http://127.0.0.1:3236
Deploy-agent SSH 2222 ssh -p 2222 -i ssh-keys/id_ed25519 root@127.0.0.1
Webmail 20000 http://127.0.0.1:20000
Public dashboard Cloudflare tunnel https://open-ship.codeamani.com → :3246
Public API Cloudflare tunnel https://open-ship-api.codeamani.com → :3247

Bring-up (repo root, inside WSL):

hazina inject open-ship --check    # names only, never values
hazina inject open-ship            # writes .env.local
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
node scripts/dev-status.mjs

The fork deliberately runs the from-source root compose, not openship up. Its docs (2efb47c3) warn that openship up is a different stack and must not replace it.

What the fork adds

  1. deploy-agent/: an SSH target the control plane can reach. In Compose the API cannot SSH to the WSL host (no host sshd), so an Ubuntu 24.04 container is the target: openssh-server (PasswordAuthentication no, PermitRootLogin prohibit-password), docker-ce-cli, docker-compose-plugin, and docker-buildx-plugin (Openship passes --progress=plain, and the legacy builder exits 125). It runs network_mode: host on SSH_PORT=2222, mounts the host Docker socket, /var/lib/openship, and /etc/letsencrypt (certsExist() checks the target's filesystem). It persists sshd host keys under /var/lib/openship/sshd, and a systemctl shim starts OpenResty without systemd. Since 2efb47c3, host-control SSH also points at the deploy-agent on :2222.
  2. Product-issue operator loop. scripts/openship-api.mjs issues, dev-status.mjs [--strict], fleet-reconcile.mjs (recycles the stale API SSH pool after a deploy-agent recreate), and ops-watch.mjs --once.
  3. Agent MCP over subscription logins. Grok Build and Claude Code connect over Openship OAuth (grok login / claude login), not XAI_API_KEY / ANTHROPIC_API_KEY. The PAT fallback (OPENSHIP_MCP_TOKEN) is an Openship token.
  4. Dashboard additions (since August): a project Preview tab with desktop/mobile viewports, and grok-browser preview plus Chrome DevTools analytics capture (c611123f, 62fdfde4, df4c7d4a).
  5. Webmail (apps/email): mailbox identity, CID HQ signature, Outlook-style settings, PWA offline, OpenPGP passphrase encryption on send, and in-app redirects instead of VITE_PUBLIC_APP_URL (1067be4d).

⚠️ Deploy-agent exposure (found 2026-10-20)

Read-only check: the deploy-agent's sshd listens on 0.0.0.0:2222 and [::]:2222. No ListenAddress is set, and network_mode: host publishes it on every interface of the WSL VM. Behind that login sit root, the host Docker socket, and /etc/letsencrypt. Pubkey-only auth is the only barrier. Until the fork is changed, do not enable WSL mirrored networking or forward :2222 past the Windows firewall. The fix belongs in the fork (ListenAddress 127.0.0.1 in entrypoint.sh), plus a key used only by the API. It was not applied, because this refresh is read-only on the fork.

Upgrading the fork to 0.9.x (not done; plan it)

Secrets: Hazina, not .env by hand

All secrets for this checkout flow through Hazina project open-ship. There are two files, deliberately not collapsed:

File Owner Consumed by
.env Compose stack env_file for api / dashboard
.env.local hazina inject open-ship scripts/auto-login-local.mjs, operator tooling

Do not env_file: .env.local into compose, or mailbox passwords enter the API container. Bound names: OPENSHIP_ADMIN_EMAIL, OPENSHIP_ADMIN_PASSWORD, BETTER_AUTH_SECRET, INTERNAL_TOKEN, POSTGRES_PASSWORD, CLOUDFLARE_TUNNEL_TOKEN, PORKBUN_API_KEY / PORKBUN_SECRET_KEY, RESEND_API_KEY, OPENSHIP_MCP_TOKEN.


Environment variables

Secrets (store in the vault, never commit):

POSTGRES_PASSWORD=change-me
BETTER_AUTH_SECRET=change-me-32-plus-random-bytes
INTERNAL_TOKEN=change-me
OPENSHIP_ADMIN_PASSWORD=change-me
OPENSHIP_TOKEN=opsh_pat_xxxxxxxxxxxx
OPENSHIP_ENCRYPTION_KEY=change-me-32-plus-random-bytes

OPENSHIP_TOKEN is used by the SDK and CLI. OPENSHIP_ENCRYPTION_KEY is needed only for the native SDK (createShip), must be at least 32 bytes, and must persist.

Non-secret settings:

Variable Purpose
OPENSHIP_VERSION Pin a release for reproducible image pulls / installs (for example 0.9.3)
OPENSHIP_PUBLIC_URL Public origin. Without it, remote login is rejected
OPENSHIP_BIND_ADDR Interface published ports bind to (keep 127.0.0.1 behind a tunnel)
TRUST_PROXY true behind a reverse proxy / tunnel
OPENSHIP_TRUST_EDGE true delegates the pre-auth per-IP flood ceiling to the upstream proxy
OPENSHIP_EDGE_MODE Host OpenResty vs container edge (set by the CLI)
OPENSHIP_CLOUDFLARED_PATH Absolute path to cloudflared for Cloudflare Access SSH targets
OPENSHIP_VENDOR_NODE 1 / 0 to accept or decline the CLI's private Node 22 download non-interactively
OPENSHIP_URL, OPENSHIP_ORGANIZATION_ID SDK example inputs (API origin, workspace id)
API_PORT / DASHBOARD_PORT Defaults 4000 / 3001
GITHUB_CLIENT_ID Optional GitHub OAuth device flow on self-hosted

Breaking and behaviour changes since August (0.6.8 → 0.9.3)

Change Since Impact
Env vars, build args, and Compose/deploy snapshots encrypted at rest. Legacy plaintext is converted on start 0.8.0 One-way. Back up the DB + BETTER_AUTH_SECRET before upgrading. Moving config between instances with different keys needs Data Transfer with secrets
npm openship is now SDK + CLI (exports map: ., ./client, ./native; ESM + CJS) 0.8.0 No CLI break. Projects pinning <0.8.0 have no SDK entry points
Tokens and OAuth/MCP connections bound to one organization 0.8.x docs Scripts that switched orgs with one token need a token per org
Desktop 0.8.0/0.8.1 updater broken 0.8.2 Desktop users on those versions must manually install ≥0.8.2 once. Server/CLI is unaffected
GitHub deployment Checks on by default 0.9.0 New Checks appear on PRs. Disable them per project if unwanted. They need GitHub App Checks permission
Static sites default to Cloud Pages on Cloud 0.9.0 Choose "Managed server hosting" to keep an nginx container
Omitted CPU/RAM limits no longer become caps 0.9.2 Containers share full host capacity unless limits are set. Existing saved limits stay
Cloud plans repriced: Hobby $5 / Starter $20 / Pro $39 / Scale $99 per server per month 0.8.1 Cloud only. No per-project count limit on new offers
PORT stripped from worker/scheduler roles 0.9.2 Roles never publish ports

codeAmani notes


Troubleshooting

Issue Fix
openship open fails / API not responding openship up, then retry. openship doctor for a diagnosis
Updated but still on the old version The service keeps running the old build. Run openship up after openship update
Update stops naming POSTGRES_PASSWORD / BETTER_AUTH_SECRET Ran as a different user (for example sudo reads /root/.openship). Re-run as the install owner, or restore ~/.openship/compose/.env from .env.bak
Host operations hang (:80/:443 takeover, mail, host terminal) The container→host SSH channel is missing or blocked by ufw on filter/INPUT. See /docs/troubleshooting/host-channel
docker build exits 125 on a custom target Install docker-buildx-plugin (Openship passes --progress=plain)
SSL verify says "no certs" though the edge issued them certsExist() reads the target's filesystem, so bind-mount host /etc/letsencrypt
Agent unreachable after recreating the deploy target Stale API SSH pool. Fork: node scripts/fleet-reconcile.mjs
MCP tools/call returns 404 The resource is outside the token/OAuth grant (or another org). Re-authorize with it included
SDK call "hangs" on redirect / baseUrl rejected The client never follows redirects and refuses credentials or a query string in baseUrl. Use the final HTTPS origin
Desktop updater "Redirect was cancelled" Desktop 0.8.0/0.8.1 bug. Install ≥0.8.2 manually once
Windows installer URL does not resolve Use https://get.openship.io/windows, not the docs' git.openship.io/windows
npm i -g openship fails on Node version Node 22+ is needed. Use the install script, or OPENSHIP_VENDOR_NODE=1

Official docs: