What Offstack Is: A local & sovereign API and data-plane emulator (AWS, plus 15 multi-cloud gateways — Azure, GCP, Oracle Cloud OCI, and twelve sovereign/regional clouds including six OpenStack provider profiles) backed by real local engines, real Docker/Podman/QEMU compute across all clouds, and any SQL database (12 verified RDBMS backends) via SQLAlchemy Core, in a three-tier edition split (Free
sqlite:///:memory:only / Pro / Enterprise multi-host cluster). Unmodified AWS SDKs (boto3,@aws-sdk/*), Azure (SharedKey/SAS/Entra/ARM), GCP (REST/gRPC/GCE Metadata), and OCI (RSA-SHA256HTTP-Sig), Terraform/OpenTofu/Bicep/ARM, CDK/SAM, and native protocol clients run against shared local buckets, queues, secrets, and tables with zero cloud dependencies and strict honest refusal (UnsupportedOperation/503) for unbacked hardware or proprietary APIs.
Verified Surface Totals (measured against botocore & source):
- 96 AWS services across 7 domains (
4,885 / 6,818ops answered [71.6%],4,518 / 6,818acting on real state [66.3%],367explicit refusals;64services @100%answered,42@100%real-state; v13.0.0 DuckDB Parquet ins3tables, Track 1 real-state breadth across 26 deepened services + unified refusal accounting, SQLAlchemyScopedDatabasepersistence forsecurityhub/guardduty/inspector2,DocDB driver=docker|embedded|native,kubectldiscovery endpoints ineks, QEMU NoCloud seed generation, live EMR Docker S3 steps, and--fsx-wire-port/--sgw-wire-portONC-RPC NFSv3 / SMB2 / HTTP WebDAV wire gateways alongside v10–v12 compute/cost/storage services, Multi-Cloud Azure/GCP/OCI gateways [1,875SDK ops censused across 39 clients], Unified HTTP/HTTPS Gateway, Lambda/API Gateway trigger listener:13000, CloudFront Lambda@Edge:4638, IoT MQTT broker:18830, and Inspector UI/_offstack/) - 175
AWS::*CloudFormation & CloudControl resource types across 75 namespaces (addingAWS::EMR::Cluster,AWS::FSx::FileSystem,AWS::GuardDuty::{Detector,Filter},AWS::Inspector2::Filter,AWS::Lightsail::{Bucket,Database,Instance},AWS::SecurityHub::Hub, andAWS::StorageGateway::NFSFileSharein v13.0.0) - 12 live-verified RDBMS backends for SQL persistence (SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, Oracle, Firebird, CockroachDB, Dolt, DuckDB, IBM Db2 12.1.6, SAP HANA 2.0 SPS08)
- 15 multi-cloud gateways (Azure, GCP, OCI + twelve sovereign/regional clouds, including 6 OpenStack profiles:
generic/ovh/ntt/fujitsu/china-telecom/china-unicom), sharing object/queue/secret/key data planes - 8 data/SQL wire bridges (
:4703–:4710) (mongo-wire,snowflake,elasticsearch,pgwire,mysql-wire,mssql-tds,ords, and Oracle TNS:4710, withORACLE_TNS_ENABLED = Truein Pro/Enterprise; disabled/refused in Free) over a SQLAlchemy passthrough engine (--<bridge>-engine-url); embedded managed-DB wire endpoints (--no-rds-embedded-endpointsto disable) give RDS, Aurora DSQL, and OCI ADB instances real protocol sockets - Editions: Free (
sqlite:///:memory:only, 6 restricted subcommands, external drivers excluded) / Pro / Enterprise. Enterprise multi-host cluster:offstack cluster {blob-node|worker|status|preflight}+scripts/verify_multihost_cluster.pyand MULTIHOST_CLUSTER_TESTING.md — harness/runbook preparation for testing on physically separate hosts, not a claim that a physical multi-machine cluster has been run here.
Looking for the ultra-compact LLM reference? See
docs/OFFSTACK_AI_MANUAL.txt.
1. Quick Start
1.1 Running Offstack
Installed / Compiled build (recommended — zero source required):
# Windows (VibeInstaller nuitka_module Enterprise Setup: compiled .pyd + offstack.cmd)
offstack --unified-port 4566 --persist --state-file ./offstack.db
# Linux x86_64 release tarball / container
/opt/offstack/offstack --unified-port 4566 --persist --state-file ./offstack.db
From Python source:
python start.py --unified-port 4566 --persist --state-file ./offstack.db
Embedded / Subprocess Consumers (CES/DF3 & AIH):
- CES / DF3 (
darkfactory2/sim_host.py): ImportsDynamoDBServer(port, db_path)directly fromdynamodb.server(resolved viaDF2_SIM_TOOLKITor<harness>/../toolkits/offstack). WithDF2_FIRE_SIM=isolated(or1/on), CES/DF3 boots an isolated per-fireDynamoDBServeron an ephemeral port (0) backed by<workdir>/.df2_sim/*.dband exportsDYNAMODB_ENDPOINT_URL. - AIH (
ArtificialIntelligenceHarness/gateway/simulator_helper.py): Launches compiled simulator /start.pywith--persist --state-file <db> --dynamodb-port 13160 --s3-port 13161(and supports--<service>-port 0/--no-*flags), enforces single-owner ports on Windows, and verifies liveness via a real DynamoDBListTablesround-trip. - Every service supports
--<service>-port 0(OS-assigned ephemeral port);start.pyfails closed if any enabled listener fails its readiness probe or hits a port conflict on Windows (ExclusiveThreadingHTTPServer).
1.2 Startup Readiness & Banner
start.py prints Press Ctrl+C to stop. only after every enabled TCP listener passes its readiness check. On failure or held ports, it exits non-zero (1, or 2 on invalid args).
2. Unified Gateway, HTTPS/TLS & Client Configuration
2.1 Single-Port Gateway vs. Per-Service Ports
Offstack always binds each enabled service on its default per-service port (or custom --<service>-port) and can simultaneously multiplex all 96 AWS services on a single port via --unified-port:
offstack --unified-port 4566
Recommended client setup (AWS_ENDPOINT_URL):
export AWS_ENDPOINT_URL=http://127.0.0.1:4566
export AWS_REGION=us-east-1
export AWS_ACCESS_KEY_ID=local
export AWS_SECRET_ACCESS_KEY=local
Works with boto3, @aws-sdk/*, aws CLI v2, Terraform/OpenTofu, CDK, and SAM.
2.2 Per-Service AWS_ENDPOINT_URL_<SERVICE> Gotchas (Without --unified-port)
If connecting directly to per-service ports instead of --unified-port, each SDK client needs its own AWS_ENDPOINT_URL_<SERVICE> variable. A typo does not raise an error — botocore silently calls real AWS! Key mismatches:
boto3 Client | Correct Env Variable | Wrong Name (silently hits real AWS) |
|---|---|---|
events | AWS_ENDPOINT_URL_EVENTBRIDGE | AWS_ENDPOINT_URL_EVENTS |
logs | AWS_ENDPOINT_URL_CLOUDWATCH_LOGS | AWS_ENDPOINT_URL_LOGS |
cognito-idp | AWS_ENDPOINT_URL_COGNITO_IDENTITY_PROVIDER | AWS_ENDPOINT_URL_COGNITO_IDP |
dynamodbstreams | AWS_ENDPOINT_URL_DYNAMODB_STREAMS | AWS_ENDPOINT_URL_DYNAMODBSTREAMS |
stepfunctions | AWS_ENDPOINT_URL_SFN | AWS_ENDPOINT_URL_STEPFUNCTIONS |
secretsmanager | AWS_ENDPOINT_URL_SECRETS_MANAGER | AWS_ENDPOINT_URL_SECRETSMANAGER |
rds-data | AWS_ENDPOINT_URL_RDS_DATA | AWS_ENDPOINT_URL_RDSDATA |
apigateway | AWS_ENDPOINT_URL_API_GATEWAY | AWS_ENDPOINT_URL_APIGATEWAY |
2.3 Local HTTPS / TLS (--tls / --https-port)
offstack --unified-port 4566 --tls # Also listens HTTPS on :4567
offstack tls status # Inspect CA & leaf certs (~/.offstack/tls)
eval "$(offstack tls env --shell bash --https-port 4567)"
offstack tls trust --dry-run # Show OS trust-store command (add --apply to install)
offstack --print-ca-bundle # Print CA path & trust instructions, then exit
- Local CA SANs:
localhost,*.localhost,*.s3.localhost,*.execute-api.localhost,*.cloudfront.localhost,*.appsync-api.localhost,127.0.0.1,::1. - TLS Env Vars set by
tls env:AWS_CA_BUNDLE,REQUESTS_CA_BUNDLE,NODE_EXTRA_CA_CERTS.
2.4 Virtual-Hosted Routing & Native Protocol Endpoints
- S3 virtual hosts:
http://<bucket>.s3.localhost:<port>/...and path-stylehttp://127.0.0.1:<port>/<bucket>/...(with S3 Control on*.s3-control.localhost). - API Gateway v1/v2:
<id>.execute-api.localhost:<port>or/restapis/..., plus local route port:13000. - CloudFront:
<dist>.cloudfront.localhost:<port>, Lambda@Edge hook port:4638. - AppSync:
<id>.appsync-api.localhost:<port>including live RFC 6455/graphql/realtimeWebSockets. - Native TCP / Wire Protocols (not HTTP-only):
- CodeCommit: Real bare git repos (
--codecommit-repos-dir) addressable via HTTP(S) git transport on the gateway. - ElastiCache / MemoryDB: Live
fakeredisRESP2 TCP listeners allocated per cache cluster/replication group. - IoT Core (
--iot-mqtt-portdefault18830): Live MQTT TCP/WebSocket broker + Thing Shadows + SQL Rules Engine. - Transfer (
transfer): Local SFTP/FTPS/FTP server backed directly by local S3 buckets. - ECR (
ecr): OCI Registry v2 HTTP API (docker login/push/pull) backed by local S3. - CodeArtifact (
codeartifact): PyPI (pip/twine), npm, and Maven registries backed by local S3. - Amazon MQ (
mq) & MSK (kafka): Live local AMQP/STOMP and Kafka-wire listeners. - OpenSearch (
opensearch): Real local full-text search index HTTP endpoints.
3. Persistence, 12-RDBMS Backends & Developer Ergonomics
3.1 Ephemeral :memory: vs. --persist
Important Default: Without
--persist, Offstack defaults to SQLite:memory:(db_path == ":memory:") even if--state-fileorOFFSTACK_DATABASE_URLis set cleanly — state is discarded on exit unless--persistis passed. Always pass--persist --state-file <path-or-url>(or--persistwithOFFSTACK_DATABASE_URL) when persistence is required.
- DynamoDB & SQL schemas: Stored together cleanly in one database via SQLAlchemy Core (
_KEY_LEN=255, surrogatekey_hashon Db2-constrained composite keys, portable binary/blob helpers). - S3 Objects & Binary Assets: Stored on the local filesystem under
--s3-data-dir(DEFAULT_S3_DATA_DIR), or in SQL via--s3-backend db.
3.2 All 12 Live-Verified SQLAlchemy Backends
Pass any SQLAlchemy URL to --state-file (with --persist) or OFFSTACK_DATABASE_URL (see docs/DATABASES.md for full dialect notes):
| Engine | Tested Version | Example SQLAlchemy URL | Notes |
|---|---|---|---|
| SQLite (default) | Built-in | sqlite:///./offstack.db (or bare path ./offstack.db) | :memory: uses synchronous=OFF; file DBs use WAL + NORMAL |
| DuckDB | Embedded | duckdb:///./offstack.duckdb | In-process columnar/OLAP + SQL dialect |
| PostgreSQL | 16.15 | postgresql+psycopg://user:pass@127.0.0.1:5432/offstack | Also powers real --rds-server-url provisioning |
| MySQL | 8.4 | mysql+pymysql://user:pass@127.0.0.1:3306/offstack | Strict case-sensitivity + 255-char key indexes |
| MariaDB | 11.4 | mariadb+pymysql://user:pass@127.0.0.1:3306/offstack | Verified full dialect parity |
| Dolt | Latest | mysql+pymysql://root:pass@127.0.0.1:23306/offstack | Git-versioned MySQL-wire DB |
| CockroachDB | Latest | cockroachdb+psycopg://root@127.0.0.1:26257/defaultdb?sslmode=disable | Handles SQLSTATE 40001 retries |
| Firebird | 4.0 | firebird://sysdba:pass@127.0.0.1:3050/offstack16k.fdb | Requires 16 KB page size |
| SQL Server | MSSQL 2022 | mssql+pymssql://sa:pass@127.0.0.1:1433/offstack | Verified via pymssql and pyodbc |
| Oracle Free | 23 | oracle+oracledb://SYSTEM:pass@127.0.0.1:1521/?service_name=FREEPDB1 | Reserved keyword aliases avoided; transient listener/process retries |
| IBM Db2 | 12.1.6 | ibm_db_sa://db2inst1:pass@127.0.0.1:50000/offstack?AUTHENTICATION=SERVER | SYSCAT.TABLESPACES key-budget preflight; CLOB/UPPER folding (docs/DATABASES.md §15) |
| SAP HANA | 2.0 SPS08 | hana://SYSTEM:pass@127.0.0.1:39041 | Native UPSERT ... WITH PRIMARY KEY; FROM DUMMY probe; ADD (...) DDL (docs/DATABASES.md §15) |
3.3 Snapshots, Inspector UI (/_offstack/) & Reaper
When --unified-port is enabled, Offstack serves a local web dashboard, JSON API, and <1s snapshot engine on /_offstack/:
- CLI helpers (identical on source
python start.py ...and compiledoffstack ...): offstack inspect status|s3 [bucket]|ddb [table]|sqs|logs [group]|cloudtrail|cost|ecr|codeartifact|cicd|backup|iot|opensearch|organizationsoffstack snapshot save <name> | restore <name> | list | delete <name> | reset [--keep-metering]- HTTP Inspector Endpoints:
/_offstack/api/health,/_offstack/api/reset,/_offstack/api/snapshots{,/save,/restore},/_offstack/api/dynamodb/{tables,items},/_offstack/api/s3/{buckets,objects},/_offstack/api/sqs/queues,/_offstack/api/logs/{groups,events},/_offstack/api/cloudtrail/events,/_offstack/api/cost,/_offstack/api/ecr/repositories,/_offstack/api/codeartifact/domains,/_offstack/api/cicd/summary,/_offstack/api/backup/vaults,/_offstack/api/iot/summary,/_offstack/api/opensearch/domains,/_offstack/api/organizations/tree. - Lifecycle Reaper (
lifecycle_reaper.py): Background thread running every--reaper-intervalseconds (default5.0, disable with--no-reaper) that enforces DynamoDB TTL expiration (emitting realREMOVErecords to DynamoDB Streams), S3 bucket lifecycle expiration, and SQS message retention expiry.
4. Auth, Multi-Tenancy, IAM & Quotas
- Multi-Tenancy (
(account_id, region)): Every stateful store isolates resources by(account_id, region). Resolve order:
- Explicit
X-Offstack-Account-Id/X-Offstack-Regionheaders - SigV4
Credential=<ak>/<date>/<region>/<service>/aws4_requestscope (or STS session fromAssumeRole/AssumeRoleWithWebIdentity) - Default scope:
000000000000/us-east-1, overridable via--default-account&--default-region.
- SigV4 Signature Verification (
--verify-sigv4): Off by default; when enabled, cryptographically verifies S3 header and presigned URL signatures (tampered/expired signatures fail with403). - Runtime IAM Policy Enforcement (
--iam off|soft|strict): off(default): Allows all calls without evaluating policies.soft: Evaluates IAM policies (and automatically evaluates Organizations SCPs for member accounts when enabled on the Organizations root) and logs denials without blocking.strict: Rejects unauthorized or explicitly denied calls with AWSAccessDenied/ClientErrorshapes.- Runtime Service Quotas (
--enforce-quotas): Off by default; enforces applied Service Quotas on S3 buckets, DynamoDB tables, SQS queues, and IAM roles.
5. Complete AWS Service Reference (All 96 Services)
Columns: Answered = operations routed; Real State = operations executing on local state (Answered - Refused); Refused = operations returning explicit UnsupportedOperation (never faked). Note: 64 of 96 services answer 100% of their botocore model (42 at 100% real state, 22 with internal refusal tables); 4,885 / 6,818 (71.6%) answered and 4,518 / 6,818 (66.3%) real state overall (367 explicit refusals).
5.1 Storage, Databases & Analytics (18 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
dynamodb | 13160 | json/1.0 | 57 / 57 | SQLAlchemy -> 12 RDBMS; TTL reaper, Streams, GSI lag (--simulate-gsi-lag), Backup, Global Tables CRR | None |
dynamodbstreams | 4603 | json/1.0 | 4 / 4 | SQLAlchemy change log; event-source bridge -> Lambda | None |
s3 | 13161 | rest-xml | 110 / 110 | Filesystem (--s3-data-dir); presigned URLs, multipart TTL, CRR, EventBridge & Lambda ObjectCreated bridge | None |
s3control | 4649 | rest-xml | 62 / 97 (97/97 answered, 35 refused) | Access Points (+ scope), MRAP, Object Lambda AP, Batch Ops jobs (+ tagging), PublicAccessBlock, Storage Lens Groups & Tagging, Access Grants | Refuses Outposts CreateBucket / GetBucket |
s3tables | 4622 | rest-json | 49 / 49 | Table buckets, namespaces, Iceberg catalog metadata + DuckDB .parquet row writer/reader | None |
s3vectors | 4647 | rest-json | 19 / 19 | Vector buckets, NumPy/cosine/Euclidean ANN vector indexes + metadata filters | None |
rds | 4607 | query | 142 / 163 (21 refused) | SQLAlchemy + real PG/MySQL via --rds-server-url (or embedded SQLite unless --strict-rds) + DocDB TCP BSON & Neptune HTTP/WS engines | Refuses ShardGroups, Blue/Green/Global failover, ActivityStreams, CEVs, Reserved offerings |
rds-data | 4608 | rest-json | 6 / 6 | Executes real SQL statements/transactions against --rds-server-url / SQLite & AppSync RDS resolvers | None |
dsql | 4648 | rest-json | 12 / 12 | Aurora DSQL cluster control plane backed by SQLite / PG wire | None |
redshift-data | 4646 | json/1.1 | 11 / 11 | Async DuckDB SQL execution & statement result pagination | None (cluster infra control plane not modeled) |
elasticache | 4625 | query | 42 / 75 (75/75 answered, 33 refused) | Real fakeredis + live RESP2 TCP sockets per cluster/replication group | Refuses Serverless caches, GlobalReplicationGroups, ReservedNodes, UpdateActions |
memorydb | 4626 | json/1.1 | 31 / 45 (45/45 answered, 14 refused) | Real fakeredis + ACLs/users/clusters/snapshots | Refuses MultiRegionClusters, MultiRegionParameters, Reserved* |
timestream-write | 4620 | json/1.0 | 19 / 19 | SQLAlchemy time-series database/table/record ingestion | None |
timestream-query | 4621 | json/1.0 | 13 / 15 (2 refused) | SQL time-series query evaluation against ingested records | Refuses CancelQuery, PrepareQuery |
athena | 4634 | json/1.1 | 37 / 70 (33 refused) | Embedded DuckDB SQL query execution over S3/Glue/S3Tables + prepared statements | Refuses CapacityReservations, Spark/Notebooks, CalculationSessions |
glue | 4633 | json/1.1 | 222 / 259 (37 refused) | Catalog (DBs/tables/partitions), crawlers, triggers, local pythonshell/glueetl script runner | Refuses ML transforms/labels, Zero-ETL Integrations, IdentityCenter, Unfiltered metadata |
opensearch | 4663 | rest-json | 36 / 82 (74/82 answered, 38 refused) | Local full-text search domain endpoints, packages & history/scope, maintenance, instance type details, default app setting | Refuses Inbound/Outbound Connections, DataSources, Applications, Upgrade actions |
backup | 4650 | rest-json/1.1 | 80 / 108 (108/108 answered, 28 refused) | Vaults (+ notifications/access policy/lock), plans/selections/versions/templates, restore testing, region settings, summaries | Refuses Tiering, AirGapped vaults, MpaApprovalTeams |
5.2 Compute, APIs, Edge & Networking (9 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
lambda | 4595 | rest-json | 85 / 85 | Python in-process, Node.js .mjs workers (:13000), provided.al2/al2023, dotnet8, --lambda-docker images, Function URLs, Layers, Event Source Mappings | None |
apigateway | 4610 | rest-json | 124 / 124 | REST APIs, resources, methods, authorizers, stages, deployments; live HTTP proxy -> Lambda & WAFv2 | None |
apigatewayv2 | 4611 | rest-json/1.1 | 103 / 103 | HTTP + WebSocket APIs, routes, integrations, stages, custom domains; live proxy -> Lambda & WAFv2 | None |
appsync | 4635 | rest-json/1.1 | 60 / 74 (64/74 answered, 4 refused in ops) | GraphQL schema/types, resolvers (DynamoDB, RELATIONAL_DATABASE/RDS Data, HTTP, None), API keys, live RFC 6455 /graphql/realtime subscriptions | Refuses Merged APIs, ApiCache, SourceApiAssociations |
cloudfront | 4637 | rest-xml | 96 / 167 (11 in _REFUSED) | Distributions, Cache/OriginRequest/ResponseHeaders Policies, KeyValueStores, RealtimeLogConfigs, ContinuousDeployment, OAC/OAI, Functions, KeyGroups, local HTTP edge + Lambda@Edge (:4638) | Refuses StreamingDistributions, VpcOrigins, FieldLevelEncryption, GetManagedCertificateDetails |
wafv2 | 4639 | json/1.1 | 41 / 54 (42/54 answered, 1 refused in ops) | WebACLs, IPSets, RegexPatternSets, RuleGroups; inline evaluation on API Gateway v1/v2 -> Firehose WAF logs | Refuses ManagedRuleProducts, MobileSDK, FirewallManager |
route53 | 4623 | rest-xml | 53 / 71 (71/71 answered, 18 refused) | Hosted zones, ResourceRecordSets, health checks, CIDR collections, local DNS responder (--dns) | Refuses DNSSEC/KeySigningKey, TrafficPolicy* |
route53resolver | 4653 | json/1.1 | 54 / 68 (68/68 answered, 14 refused) | Resolver endpoints/rules, DNS Firewall DomainLists & RuleGroups wired into local DNS | Refuses OutpostResolvers, FirewallConfig, DnssecConfig, QueryLogConfigPolicy |
servicediscovery | 4654 | json/1.1 | 30 / 30 | AWS Cloud Map HTTP/DNS namespaces, services, instance registration/discovery -> local DNS | None |
5.3 Messaging, Events, Streaming & Workflow (13 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
sqs | 4596 | json/1.0 | 23 / 23 | Standard & FIFO queues, visibility timeouts, DLQs, retention reaper, EventBridge/SNS/Pipes & Lambda EventSourceMapping bridge | None |
sns | 4601 | query | 42 / 42 | Topics (incl. FIFO), filter policies; in-process fan-out -> SQS, Lambda, HTTP(S) | None |
events | 4600 | json/1.1 | 57 / 57 | EventBuses, Rules (pattern & cron/rate), Archives/Replays; in-process fan-out -> SQS, SNS, Lambda, SFN, Kinesis, cross-account buses | None |
scheduler | 4612 | rest-json/1.1 | 12 / 12 | Schedules & ScheduleGroups -> targets | None |
pipes | 4613 | rest-json | 10 / 10 | EventBridge Pipes polling SQS/Kinesis/DynamoDBStreams -> enrichment/targets | None |
schemas | 4609 | rest-json/1.1 | 31 / 31 | EventBridge Schemas registries, schemas, versions, discoverers | None |
kinesis | 4605 | json/1.1 | 39 / 39 | Streams/shards/records; EventSourceMapping bridge -> Lambda (LATEST / TRIM_HORIZON) | None |
firehose | 4632 | json/1.1 | 12 / 12 | DeliveryStreams -> S3 buckets (incl. WAFv2 JSON logs) | None |
stepfunctions | 4606 | json/1.0 | 37 / 37 | Real ASL state-machine interpreter (Task/Choice/Parallel/Map/Wait/Pass/Fail/Succeed); calls Lambda, DynamoDB, SQS, SNS; --sfn-real-wait opt-in | None |
mq | 4664 | rest-json/1.1 | 24 / 24 | Brokers, configurations, users + live local AMQP/STOMP broker | None |
kafka | 4665 | rest-json/1.1 | 48 / 56 (56/56 answered, 8 refused) | MSK cluster/config metadata + live local Kafka-wire broker | Refuses Replicators, ClientVpcConnections, UpdateRebalancing/ReplicationInfo |
ses | 4614 | query | 70 / 71 (1 refused) | Identities, verification, templates, local SMTP intake (--ses-smtp-port); emails stored & never sent externally | Refuses SendCustomVerificationEmail |
sesv2 | 4615 | rest-json/1.1 | 75 / 109 (34 refused) | Email identities, templates, config sets, local message capture (never sent externally) | Refuses DedicatedIPs, DeliverabilityDashboard/Tests, BlacklistReports, ReputationEntities, MultiRegionEndpoints, Tenants |
5.4 Identity, Security, Governance & Secrets (14 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
iam | 4602 | query | 176 / 176 | Users, roles, groups, policies, instance profiles; policy engine evaluated when `--iam soft | strict` |
sts | 14592 | query | 11 / 11 | Caller identity + scoped AssumeRole / AssumeRoleWithWebIdentity / GetSessionToken | None |
kms | 4616 | json/1.1 | 47 / 53 (6 refused) | Real cryptography AES/RSA/ECC encrypt/decrypt/sign/verify/HMAC, aliases, multi-region (mrk-*) replicate | Refuses CustomKeyStore family (6 CloudHSM/XKS ops) |
acm | 4617 | json/1.1 | 15 / 16 (1 refused) | X.509 cert issuance/import signed by local CA (acm/local_ca.py) or acm-pca | Refuses UpdateCertificateOptions |
acm-pca | 4651 | json/1.1 | 23 / 23 | Multi-tier X.509 Private CA root/subordinate hierarchy, CRLs, OCSP responder wired to acm | None |
cognito-idp | 4599 | json/1.1 | 119 / 119 | User pools, app clients, auth flows, real RS256 JWT tokens + JWKS endpoints | None |
cognito-identity | 4618 | json/1.1 | 18 / 23 (23/23 answered, 5 refused) | Identity pools, identity IDs, OIDC/STS credential exchange | Refuses DeleteIdentities, LookupDeveloperIdentity, MergeDeveloperIdentities, UnlinkDeveloperIdentity, UnlinkIdentity |
organizations | 4642 | json/1.1 | 52 / 63 (11 unmodeled) | Orgs, roots, OUs, accounts, Service Control Policies (automatically enforced on member accounts under `--iam soft | strict` when enabled) |
identitystore | 4643 | json/1.1 | 19 / 19 | IAM Identity Center users, groups, group memberships | None |
sso-admin | 4644 | json/1.1 | 75 / 75 | Instances (+ ABAC), PermissionSets, AccountAssignments vending STS SSO credentials, Applications (+ Assignments/Scopes/Grants/AuthMethods), TrustedTokenIssuers | None |
verifiedpermissions | 4636 | json/1.0 | 29 / 30 (1 refused) | PolicyStores, schemas, Cedar policy evaluation (IsAuthorized, BatchIsAuthorized) | Refuses BatchIsAuthorizedWithToken |
secretsmanager | 4594 | json/1.1 | 23 / 23 | Secret versions, AWSCURRENT/AWSPENDING staging, rotation triggers -> Lambda | None |
ssm | 4593 | json/1.1 | 146 / 146 | Parameter Store (String, StringList, SecureString via KMS), hierarchies, labels | None |
signer | 4652 | rest-json/1.1 | 19 / 19 | Cryptographic code/ZIP/container signing profiles & verification jobs | None |
5.5 Observability, Config, IaC & App Governance (12 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
logs | 4597 | json/1.1 | 103 / 103 | LogGroups, LogStreams, LogEvents (receives Lambda output), MetricFilters (-> CloudWatch), SubscriptionFilters (-> Lambda/Firehose/Kinesis), Logs Insights queries | None |
cloudwatch | 4598 | query / json/1.0 / rpc-v2-cbor | 39 / 39 | Metrics, dimensions, statistics, Alarms + alarm actions (-> SNS / AutoScaling); Query/XML + AWS JSON 1.0 + Smithy RPC v2 CBOR | None |
xray | 4619 | rest-json | 30 / 38 (8 refused) | Trace segments, groups, sampling rules, service graph | Refuses Insights*, IndexingRules, PutTelemetryRecords, CancelTraceRetrieval |
cloudtrail | 4631 | json/1.1 | 42 / 60 (43/60 answered, 1 refused in ops) | Trails, event recording across Offstack services (LookupEvents), event selectors, S3 log delivery | Refuses Lake Dashboards, Imports, Federation, Query generation, OrganizationDelegatedAdmin |
config | 4629 | json/1.1 | 73 / 97 (22 in _REFUSED) | Recorders, Channels, Rules, Evaluations, Remediation, ConformancePacks, StoredQueries, Retention, Aggregators & Auth, ResourceEvaluations | Refuses OrgConfigRule, OrgConformancePack, ServiceLinkedRecorders |
cloudformation | 4604 | query | 90 / 90 | YAML/JSON template parser, Stacks, ChangeSets, Drift detection, Outputs; provisions 175 live AWS::* types across 75 namespaces | None |
cloudcontrol | 4630 | json/1.0 | 8 / 8 | Uniform CRUDL (Create/Get/Update/Delete/ListResource) delegating to CloudFormation's 175 resource providers | None |
appconfig | 4640 | rest-json/1.1 | 44 / 45 (1 refused) | Applications, environments, profiles, hosted config versions, deployments | Refuses legacy GetConfiguration (use appconfigdata) |
appconfigdata | 4641 | rest-json/1.0 | 2 / 2 | StartConfigurationSession & GetLatestConfiguration (live feature flags/config polling) | None |
resourcegroupstaggingapi | 4627 | json/1.1 | 9 / 9 | Cross-service GetResources / TagResources / UntagResources | None |
resource-groups | 4628 | rest-json | 19 / 23 (4 refused) | Tag-based & CFN-stack resource groups | Refuses TagSyncTasks (Start/Get/List/CancelTagSyncTask) |
service-quotas | 4645 | json/1.1 | 12 / 24 (12 refused) | Service & quota lookup, quota increase requests, runtime enforcement via --enforce-quotas | Refuses AutoManagement, ServiceQuotaTemplates, SupportCases |
5.6 CI/CD, Containers, Artifacts, IoT & File Transfer (9 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
codecommit | 4624 | json/1.1 | 71 / 79 (79/79 answered, 8 refused) | Real local bare git repos (--codecommit-repos-dir), branches, commits, PRs, ApprovalRuleTemplates, git HTTP clone/push | Refuses PR approval rule ops (7), UpdateRepositoryEncryptionKey |
codeartifact | 4656 | rest-json/1.1 | 45 / 48 (3 refused) | Domains, repos, live PyPI/npm/Maven HTTP registries backed by S3 | Refuses ExternalConnections (upstream public internet fetch), ListPackageVersionDependencies |
codebuild | 4657 | json/1.1 | 33 / 59 (59/59 answered, 26 refused) | Projects, local buildspec.yml execution runner -> CloudWatch Logs & S3 artifacts | Refuses BuildBatches, Sandboxes, Compute Fleets, SharedProjects, CodeCoverages/TestCases |
codepipeline | 4658 | json/1.1 | 39 / 44 (5 refused) | Multi-stage pipelines orchestrating CodeCommit/S3 -> CodeBuild -> CFN/S3 deploy | Refuses ThirdParty Webhooks, Custom ActionTypes, ListDeployActionExecutionTargets, ListRuleExecutions |
ecr | 4655 | json/1.1 | 50 / 58 (58/58 answered, 8 refused) | Repos, auth tokens, OCI Registry v2 HTTP push/pull (docker/skopeo) backed by S3, RepositoryCreationTemplates | Refuses SigningConfigurations, PullTimeUpdateExclusions, DescribeImageSigningStatus, UpdateImageStorageClass |
batch | 4659 | rest-json/1.1 | 31 / 39 (8 refused) | ComputeEnvironments, JobQueues, JobDefinitions, ConsumableResources, local DAG job runner | Refuses ServiceEnvironments, ServiceJobs |
iot | 4660 | rest-json | 99 / 272 (108/272 answered, 9 refused in ops) | Things, ThingGroups (+ Dynamic), ThingTypes, Policies, X.509 Certs, RoleAliases, CustomMetrics, Dimensions, JobTemplates, Packages/Versions, MitigationActions, Authorizers, TopicRules | Refuses BillingGroups, Jobs, AuditTasks, SecurityProfiles, OTA updates |
iot-data | 4661 | rest-json | 8 / 8 | Publish, Retained messages, Classic & Named Thing Shadows + live MQTT :18830 | None |
transfer | 4662 | json/1.1 | 47 / 71 (71/71 answered, 24 refused) | Servers, SSH users, Workflows/Connectors, live local SFTP/FTPS/FTP server backed directly by local S3 | Refuses AS2 Agreements, Certificates, Profiles, WebApps |
5.7 AI, Compute, Cost & Sovereign Local Emulators (21 Services)
Service (boto3) | Port | Protocol | Real State / Modeled | Engine & Cross-Service Links | Refused / Missing Scope |
|---|---|---|---|---|---|
bedrock | 4678 | rest-json | 21 / 98 (22/98 answered, 1 refused) | Foundation models, guardrails, prompt routers, inference profiles, custom models, logging & tags | Refuses model customization jobs (400 UnsupportedOperation) |
bedrock-runtime | 4666 | rest-json | 5 / 10 | Air-gapped deterministic engine + OpenAI/vLLM/Ollama upstream, EventStream, Guardrails -> s3vectors, CloudTrail | Streaming/async/RAG core subset |
bedrock-agent-runtime | 4667 | rest-json | 12 / 31 | Retrieve, RetrieveAndGenerate, Sessions, Invocations & AgentMemory -> s3vectors + s3 | RAG + sessions core subset |
sagemaker | 4679 | json/1.1 | 56 / 379 | Models, Endpoints, real Docker /opt/ml Training/Processing/Transform jobs, Pipelines, FeatureGroups, Experiments, Trials, Domains, Notebooks | Control-plane + ML jobs subset |
sagemaker-runtime | 4668 | rest-json | 2 / 3 | InvokeEndpoint, InvokeEndpointWithResponseStream, InvokeEndpointAsync -> S3/CloudTrail | Core inference subset |
ecs | 4669 | json/1.1 | 40 / 64 | SQLAlchemy + Docker/Podman/SandboxContainerDriver -> ELBv2/ECR (incl. CapacityProviders, TaskSets, AccountSettings, Attributes, Tags) | Clusters, tasks, services & capacity providers |
elbv2 | 4670 | query | 38 / 51 | SQLAlchemy + live L7 HTTP ALB proxy (WAFv2 hook, listener rules, round-robin) + TrustStores, Certs, Attributes, SSLPolicies, Tags -> ECS/EC2 | LoadBalancers, TargetGroups, Listeners, Rules & TrustStores |
ec2 | 4673 | ec2-xml | 121 / 749 | SQLAlchemy + Docker/Podman/QEMU/Firecracker + IMDSv2 (:4674), VPC/Subnet/SG/IGW/Route/DHCP/VPCE/FlowLogs/PrefixLists/KeyPair/EBS/AMI/RunInstances + NoCloud | Refuses Dedicated Hosts, PlacementGroups, TGW, *.metal/GPU, Spot |
autoscaling | 4675 | query | 42 / 66 | SQLAlchemy + EC2 + ELBv2 + CloudWatch Alarm scaling triggers, ScheduledActions, Notifications, LifecycleHooks | ASG lifecycle, scaling & schedule subset |
efs | 4676 | rest-json | 31 / 31 | Host POSIX dirs (/mnt/efs/{fs_id}) + SQLAlchemy -> EC2 & DataSync | None |
eks | 4677 | rest-json | 29 / 64 | SQLAlchemy + Docker pods K8s API (kubectl discovery, Deployments, ConfigMaps, Secrets) / Nodegroups, Addons, Fargate, AccessPolicies, PodIdentity, Updates | Refuses 503 without local K8s/Docker driver |
ce | 4680 | json/1.1 | 32 / 47 | Live service usage metering + AWS pricing classification, AnomalyMonitors/Subscriptions, CostCategories, AllocationTags, Coverage/Utilization | Cost analytics & anomaly monitors subset |
budgets | 4681 | json/1.1 | 26 / 26 | SQLAlchemy + Cost Explorer evaluation + SNS breach alerts, Notifications, Subscribers & BudgetActions | None |
datasync | 4682 | json/1.1 | 53 / 53 | SQLAlchemy + real POSIX/EFS/FSx <-> S3 byte sync (Includes/Excludes, SHA-256 skip), Agents & SMB/Azure/HDFS/ObjectStorage locations | None |
fsx | 4683 | json/1.1 | 33 / 48 | Local POSIX/Samba dir + SQLAlchemy + optional wire GW (--fsx-wire-port) + SVMs, Volumes, Snapshots, DRAs, Aliases, Tags | Hardware appliance storage ops omitted |
emr | 4684 | json/1.1 | 33 / 60 | Real local Spark/Docker cluster & step execution reading/writing S3 + InstanceGroups/Fleets, SecurityConfigs, AutoTermination, ManagedScaling, Tags | RunJobFlow/Steps (503 without runtime) + control plane |
lightsail | 4685 | json/1.1 | 58 / 161 | Docker/QEMU instances & containers + RDS/Buckets + StaticIPs, KeyPairs, Disks, Snapshots, Domains, LoadBalancers, Tags | Instances, Containers, Databases & Networking |
storagegateway | 4686 | json/1.1 | 36 / 96 | Local file/volume cache -> S3 + NFS/SMB shares, Cached/Stored iSCSI Volumes, TapePools, Tapes, wire GW (--sgw-wire-port) | Gateways, FileShares, Volumes, Tapes |
securityhub | 4687 | rest-json | 41 / 107 | SQLAlchemy ScopedDatabase evaluator inspecting IAM/S3/EC2/CloudTrail findings + Insights, ActionTargets, Standards, Members, Aggregators, AutomationRules | Core hub, evaluator & rules surface |
guardduty | 4688 | rest-json | 38 / 87 | SQLAlchemy ScopedDatabase anomaly scanner + IPSets, ThreatIntelSets, PublishingDestinations, Members, Coverage, Filters | Detectors, Findings, Lists & Filters |
inspector2 | 4689 | rest-json | 27 / 75 | SQLAlchemy ScopedDatabase scanner + Coverage/Findings, Config, Reports, SBOM exports, CIS ScanConfigs, Members, Filters | Core scanner, reporting & CIS surface |
6. Supported CloudFormation & CloudControl Resource Types (175)
Both cloudformation (CreateStack/UpdateStack/DeleteStack/Drift) and cloudcontrol (CreateResource/GetResource/UpdateResource/DeleteResource/ListResources) share 175 live providers across 75 AWS::* namespaces (adding EMR::Cluster, FSx::FileSystem, GuardDuty::{Detector,Filter}, Inspector2::Filter, Lightsail::{Bucket,Database,Instance}, SecurityHub::Hub, and StorageGateway::NFSFileShare in v13.0.0):
- ACMPCA:
Certificate,CertificateAuthority,CertificateAuthorityActivation - AmazonMQ:
Broker,Configuration - ApiGateway:
Authorizer,BasePathMapping,Deployment,DomainName,Method,Resource,RestApi,Stage - ApiGatewayV2:
Api,ApiMapping,Deployment,DomainName,Integration,IntegrationResponse,Route,RouteResponse,Stage - AppConfig:
Application,ConfigurationProfile,Deployment,DeploymentStrategy,Environment,HostedConfigurationVersion - AppSync:
ApiKey,DataSource,GraphQLApi,Resolver - Athena:
NamedQuery,WorkGroup - AutoScaling:
AutoScalingGroup - Backup:
BackupPlan,BackupSelection,BackupVault - Batch:
ComputeEnvironment,JobDefinition,JobQueue - Budgets:
Budget - CertificateManager:
Certificate - CloudFront:
CachePolicy,Distribution,OriginAccessControl - CloudTrail:
Trail - CloudWatch:
Alarm - CodeArtifact:
Domain,Repository - CodeBuild:
Project - CodeCommit:
Repository - CodePipeline:
Pipeline - Cognito:
IdentityPool,UserPool,UserPoolClient - Config:
ConfigRule,ConfigurationRecorder,DeliveryChannel - DSQL:
Cluster - DataSync:
LocationS3,Task - DocDB:
DBCluster - DynamoDB:
Table - EC2:
InternetGateway,Instance,LaunchTemplate,NatGateway,NetworkAcl,RouteTable,SecurityGroup,Subnet,VPC,VPCPeeringConnection,Volume - ECR:
Repository - EFS:
FileSystem - EKS:
Cluster - EMR:
Cluster - ElastiCache:
CacheCluster,SubnetGroup - EventSchemas:
Discoverer,Registry,Schema - Events:
EventBus,Rule - FSx:
FileSystem - Glue:
Crawler,Database,Job,Table - GuardDuty:
Detector,Filter - IAM:
ManagedPolicy,Policy,Role - IdentityStore:
Group,GroupMembership - Inspector2:
Filter - IoT:
Policy,Thing,ThingGroup,ThingType,TopicRule - KMS:
Alias,Key - Kinesis:
Stream - KinesisFirehose:
DeliveryStream,DeliveryStreamV2 - Lambda:
EventSourceMapping,Function,LayerVersion,Permission,Url - Lightsail:
Bucket,Database,Instance - Logs:
LogGroup,MetricFilter,SubscriptionFilter - MSK:
Cluster,Configuration - MemoryDB:
Cluster - Neptune:
DBCluster - OpenSearchService:
Domain - Organizations:
Account,OrganizationalUnit,Policy - Pipes:
Pipe - RDS:
DBCluster,DBInstance - ResourceGroups:
Group - Route53:
HostedZone,RecordSet - Route53Resolver:
FirewallDomainList,FirewallRuleGroup,ResolverEndpoint,ResolverRule - S3:
AccessPoint,Bucket,MultiRegionAccessPoint - S3Tables:
Namespace,Table,TableBucket - S3Vectors:
Index,VectorBucket - SES:
ConfigurationSet,EmailIdentity - SNS:
Subscription,Topic - SQS:
Queue - SSM:
Parameter - SSO:
Assignment,PermissionSet - Scheduler:
Schedule - SecretsManager:
Secret - SecurityHub:
Hub - ServiceDiscovery:
HttpNamespace,PrivateDnsNamespace,Service - Signer:
SigningProfile - StepFunctions:
StateMachine - StorageGateway:
NFSFileShare - Timestream:
Database,Table - Transfer:
Server,User - VerifiedPermissions:
Policy,PolicyStore,PolicyTemplate - WAFv2:
IPSet,WebACL,WebACLAssociation - XRay:
Group,SamplingRule
7. Explicit Boundaries: What Offstack Does NOT Support
- Proprietary Managed AI / Support APIs Not Implemented (Honest Local Boundaries):
- ML / AI / Media Services:
rekognition,comprehend,textract,polly,transcribe,translate,mediaconvert. - Support / Console:
support. (Note: Offstack'sinspector/package is its local/_offstack/developer UI, whereas AWSinspector2is served at:4689evaluating local ECR/Lambda/EC2 state;bedrockrefuses customization jobs with400 UnsupportedOperationandeks/emr/ec2refuse unbacked drivers with503/UnsupportedOperation.)
- Intentional Zero-Simulator Refusals Inside Implemented Services (
367explicit refusals across 28 services perdocs/CAPABILITY.md):
- No external real email delivery (
ses/sesv2capture locally only). - No AWS-managed Edge/Fleet control planes (
s3controlOutposts/AccessGrants/ObjectLambda,batchServiceJobs,rdsShardGroups/GlobalFailover,kmsCloudHSM CustomKeyStore,elasticacheServerless/GlobalReplication,backupLegalHolds/AirGapped/Frameworks,codebuildSandboxes/Batches,transferAS2/Connectors). - No public internet upstream package proxies (
codeartifactExternalConnections). rdswithout--rds-server-url: falls back to embedded SQLite backing by default; pass--strict-rdsto refuse non-metadata operations unless a real PostgreSQL/MySQL server URL is supplied, or--rds-require-backingto fail boot if the backing DB is unreachable. In embedded mode every instance/cluster also gets a real wire endpoint (Stage 65 / F3) served by the matching SQL bridge over its own SQLite file — so apsycopg/pymysql/pymssql/ORDS-compatible HTTP client and the Data API read and write the same rows.postgres/aurora-postgresql→ PGWire,mysql/mariadb/aurora→ MySQL wire,sqlserver-*→ MS-TDS,oracle-*→ the ORDS-compatible REST endpoint (dialect over HTTP, never Oracle TNS). Ports are ephemeral and reported inEndpoint.Port; delete/stop close them, start/reboot/reopen a fresh one, and--persistre-opens them on restart. Login asMasterUsernamewithMasterUserPassword. Endpoints are on by default in Pro/Enterprise, refused in Free (the file still works via the Data API), and turned off with--no-rds-embedded-endpoints. Aurora DSQL metadata-only clusters likewise expose a PgWire endpoint (useradmin, the cluster'sDbConnectAdmin-shaped auth token); OCI Autonomous Databases expose a per-ADB ORDS endpoint (ADMIN+adminPassword, advertised inconnectionUrls.sqlDevWebUrl/ordsUrl).
8. CLI Reference & Environment Variables
8.1 Subcommands (offstack <cmd> or python start.py <cmd>)
tls trust-info | env [--shell auto|bash|pwsh|cmd] [--https-port 4567] | trust [--dry-run|--apply] | status [--json]snapshot save <name> | restore <name> | list | delete <name> | reset [--keep-metering](talks to--url, defaulthttp://127.0.0.1:4566)inspect status|s3 [bucket]|ddb [table]|sqs|logs [group]|cloudtrail|cost|ecr|codeartifact|cicd|backup|iot|opensearch|organizations [--json]cost diff <base.json> <head.json> [--monthly-multiplier N] [--fail-over-pct P] [--fail-over-usd D] [--markdown|--json] [--out FILE](exits0pass,3budget breached,2invalid input) |cost snapshot [--url URL] [--out FILE]|cost summary <file.json> [--markdown|--json]import-aws [--iam] [--orgs] [--cfn] [--waf] [--cedar] [--all] [--source-endpoint URL] [--source-region R] [--target-url URL] [--from-snapshot FILE] [--out-snapshot FILE] [--dry-run] [--apply-cfn] [--waf-scope REGIONAL|CLOUDFRONT] [--json]audit export [--url URL] [--events-file FILE] [--format sarif|json|md|signed] [--priv-key PEM] [--out FILE] [--limit N]|audit verify <bundle.json> [--pubkey PEM] [--json]simulate <scenarios.yml> [--url URL] [--snapshot-before NAME] [--format text|json|md|sarif|signed] [--priv-key PEM] [--out FILE] [--fail-fast](declaratively runs IAM/SCP, WAFv2, and CTF cyber-range assertions against <1s snapshots; starter packs indeploy/scenarios/)mcp [--transport stdio|http] [--host 127.0.0.1] [--port 8765](exposes Offstack lifecycle, snapshot, inspector, cost-diff, IAM audit, AWS-import, chaos fault injection, trace replay, and cloud-exit migration MCP tools plusoffstack://docs/ai-manual)appliance list | devcloud-init --url URL | edge-init --url URL | edge-sync-status --state-file DB [--json]chaos list | add --service S --fault throttle|error|latency|corrupt_body|blackout | remove <id> | clear | stats | preset <name> [--url URL] [--json]iac env [--aws-url URL] [--gcp-url URL] [--azure-url URL] [--shell bash|pwsh|json]|iac override [--fmt json|hcl]|iac verify <dir> [--tool auto|terraform|tofu|cfn] [--scenario FILE] [--base-cost FILE] [--out-json FILE] [--out-md FILE] [--out-sarif FILE]migrate pull|push|verify --source-url URL --target-url URL [--services s3,dynamodb,secretsmanager,ssm,sqs,sns] [--dry-run] [--no-verify] [--out-json FILE] [--out-md FILE] [--json]record status|start|stop|export [--url URL] [--file PATH] [--out FILE] [--json]|replay <trace.jsonl> --url URL [--fail-on-diff] [--out-json FILE] [--out-md FILE] [--json]exec [flags] -- <cmd>(zero-code drop-in runner setting endpoints & TLS CA env vars) |tls-auto status|ca-path|test-sni|shadow [--primary URL --shadow URL](live HTTP diff proxy) |ai record|eval|ingest|cost-diffruntime status|ps|logs|stop|hub serve|env|snapshot|dashboard|dr backup|restore|drill|cassettes scrub|from-trace|replay|verify|matrixcompany-cloud ...(Cloud-in-a-Box appliance config render, backup units & all-in-one boot) |cluster blob-node|worker|status|preflight(Enterprise multi-host fabric)license status [--license-file PATH] [--json]|license verify <token_or_file> [--pubkey PEM] [--json]|license keygen --out-priv PRIV --out-pub PUB|license issue --priv-key PRIV --customer NAME --tier community|pro|enterprise [--days N] [--max-nodes N] [--out FILE]- (Note: Free edition restricts
snapshot,inspect,dr,migrate,cluster, andcompany-cloudat startup, exiting2.)
8.2 Key Server Flags (start.py)
- Gateway & TLS:
--unified-port <port>,--host <ip>,--tls,--tls-auto,--https-port <port>(default4567),--tls-dir <dir>,--print-ca-bundle,--record-trace <jsonl>,--no-apigw-data-plane(disables API Gateway:13000route proxy; otherwise enabled automatically wheneverlambdais active without needinglambda_routes.json) - Sovereign AI (
bedrock/sagemaker):--bedrock-runtime-port <port>,--bedrock-agent-runtime-port <port>,--bedrock-upstream-url <url>(OpenAI/vLLM/Ollama compatible; empty = deterministic air-gapped engine +s3vectorsRAG),--sagemaker-runtime-port <port>,--sagemaker-upstream-url <url>,--no-bedrock,--no-sagemaker - Multi-Cloud Gateways (All 15 Clouds = AWS + 14 Non-AWS Clouds):
- Core clouds:
--gcp-port <port>(4696; +--gcp-grpc-port 4672),--azure-port <port>(4697),--oci-port <port>(4671;--oci-auth off|soft|strict,--oci-namespace <ns>),--multicloud-auth off|soft|strict,--multicloud-jwt-secret <secret> - Regional & sovereign clouds (
:4690–4695,:4698–4702):--alibaba-port(4690),--cloudflare-port(4691, plus--cloudflare-workers-exec/--cloudflare-workers-timeout),--scaleway-port(4692),--digitalocean-port(4693),--ibm-port(4694),--huawei-port(4695),--linode-port(4698),--hetzner-port(4699),--tencent-port(4700),--openstack-port(4701,--openstack-profile generic|ovh|ntt|fujitsu|china-telecom|china-unicom),--baidu-port(4702), each with--<cloud>-auth off|soft|strict. Select via--cloud aws,azure,gcp,oci,...or--cloud all; an unknown--cloudname exits2. Cloudflare Worker execution is opt-in, refused in auth modeoff, and runs in a separate process (not a security sandbox). Compute/VM records (Droplets, ECS, IKS, CCE, Scaleway Instances) stay per-cloud control-plane/container records, while object/secret/KMS/queue stores are shared. - Verified Data Services / All 8 SQL Wire Bridges (
:4703–:4710):--mongo-wire-port(4703,--mongo-wire-auth),--snowflake-port(4704,--snowflake-auth),--elasticsearch-port(4705,--elasticsearch-auth),--pgwire-port(4706,--pgwire-auth),--mysql-wire-port(4707,--mysql-wire-auth),--mssql-tds-port(4708,--mssql-tds-auth),--ords-port(4709,--ords-auth), and--oracle-tns-port(4710,--oracle-tns-auth). Each starts when its--*-portis set;--bridgesstarts all 8 on their default ports (4703–4710, becauseORACLE_TNS_ENABLED = Truein Pro/Enterprise source; disabled when flippedFalseor excluded in Free builds). Bridge state passes throughpersistence_runtime.resolve_bridge_state_dir— durable under--persist,":memory:"in Free. Unmodifiedpymysql/psycopg/pymongo/Snowflake/elasticsearch-py/pymssql/FreeTDS/oracledbthin clients speak directly to them. Note that ORDS (:4709) is an Oracle-compatible SQL dialect & ORDS-compatible REST endpoint (POST /ords/<schema>/_/sql), whereas Oracle TNS (:4710) implements thin-modeoracledbO5LOGON + TNS SQL over SQLite/PG/DuckDB/passthrough (bounded scope: no PL/SQL blocks, AQ, DB links, or DRCP).
- Passthrough execution engine (Pro/Enterprise): by default the SQL bridges (
pgwire,mysql-wire,mssql-tds,ords,oracle-tns) execute on the embedded engine (duckdb/sqlite). Point any of them at a real database instead with a SQLAlchemy URL:--pgwire-engine-url,--mysql-wire-engine-url,--mssql-tds-engine-url,--ords-engine-url,--oracle-tns-engine-url.start.pyacceptssqlite(file URLs are first-class),postgresql,mysql/mariadb,mssql, andoracle(other CLI schemes exit2before a port binds; the underlyingemulated_services/sql_engine_sqlalchemy.pyengine also mapscockroachdb,duckdb,db2/ibm_db_sa,hana, andfirebird). The bridge keeps speaking its own wire protocol — only the execution target changes — so you can run the MS-TDS front-end over PostgreSQL:
offstack --mssql-tds-port 4708 \
--mssql-tds-engine-url 'postgresql+psycopg://user:pw@db.example:5432/app'
or the PostgreSQL wire front-end over MySQL:
offstack --pgwire-port 4706 \
--pgwire-engine-url 'mysql+pymysql://user:pw@db.example:3306/app'
or ORDS over a real Oracle database:
offstack --ords-port 4709 \
--ords-engine-url 'oracle+oracledb://user:pw@db.example:1521/?service_name=ORCL'
or MS-TDS over a SQLite file (e.g. an offline migration dry-run):
offstack --mssql-tds-port 4708 \
--mssql-tds-engine-url 'sqlite:///./app.db'
An engine URL only takes effect when its bridge actually starts, so give it the matching --*-port (or --bridges); a URL with no bridge running exits 2. Giving an engine URL that resolves to the same file as --state-file is refused (2) so the bridge never writes into OffStack's own state DB. Credentials are never logged — URLs are rendered with the password hidden. In Free this flag is a Pro upgrade gate: any non-empty engine URL exits 2 with the upgrade message. Snowflake, MongoDB and Elasticsearch bridges stay on their embedded/OpenSearch engines.
Privileges and isolation. A passthrough client executes with the privileges of the database account in the engine URL — there is no separate per-role sandbox in front of the real database. Use a least-privilege account (a dedicated role that owns only the schema the migration needs, with no superuser, no CREATEDB/SUPERUSER, no FILE/SUPER privilege on MySQL, no filesystem packages on Oracle). OffStack still refuses the engine-level escapes at the protocol layer regardless of dialect — ATTACH/DETACH, PRAGMA, COPY … TO/FROM a file or PROGRAM, VACUUM INTO, load_extension, and the server-side file/OS primitives (pg_read_file/pg_ls_dir/lo_import, LOAD_FILE/INTO OUTFILE/LOAD DATA, xp_cmdshell/BULK INSERT/OPENROWSET, UTL_FILE/DBMS_SCHEDULER) — and, on SQLite, a driver-level authorizer backs that up so a statement that slipped a higher gate still cannot write a file. Every bridge session owns a fresh connection that is truly closed at session end (no pooling reuse), so one client's temporary tables and session variables are never visible to the next.
The "switch or combine stacks mid-way" principle
OffStack's product principle is that you can start on one cloud and move — or run several at once — without rewriting anything:
- Shared across every cloud API (write through one, read through another): objects (
S3/OSS/R2/COS/OBS/BOS/Spaces/Swift/ Linode + Hetzner object storage), queues & topics, secrets, KMS keys, and DynamoDB-style data all resolve to the same underlying stores. APUTto S3 is readable through Tencent/cos, OpenStack Swift/object/v1/AUTH_<proj>, Baidu/bos, Linode/objects, and Hetzner/objects— and the reverse. - Not shared (isolated per provider, exactly like real clouds): infrastructure records — VPCs, VMs, clusters, load balancers — stay per-cloud. A Droplet is a Droplet; it is not an EC2 instance.
- Fast-Boot Profiles:
--services <s1,s2,...>,--profile ci-core|serverless|data|security|brokers|devcloud|edge-iot|ai|full - Persistence, HA & Edge Sync:
--persist,--state-file <path_or_url>,--s3-data-dir <dir>,--s3-backend fs|db(dbuses shared SQLoffstack_s3_blobs),--snapshot-dir <dir>,--ha-node-id <id>(DB leader election inoffstack_ha_leases),--edge-upstream-url <url>(store-and-forward edge outbox replay),--rds-server-url <url>,--rds-require-backing,--strict-rds,--no-rds-embedded-endpoints - Tenancy, Security & Licensing:
--default-account <12digits>,--default-region <region>,--credentials-role-arn <arn>,--verify-sigv4,--require-sigv4(gateway-wide SigV4 across all 96 services, 900s clock skew window,/healthz//readyz//metricsexempt),--iam off|soft|strict,--enforce-quotas,--master-key-env <VAR>(AES-256-GCM envelope encryption at rest),--enforce-license,--license-file <path> - Operations & Runtime Daemons:
--log-format text|json,--drain-timeout <sec>(default10.0),--warm-lambdas,--docker,--lambda-docker,--layers-dir <dir>,--timeout <sec>,--reaper-interval <sec>,--no-reaper,--sfn-real-wait,--simulate-gsi-lag,--gsi-lag-ms <ms>,--ses-smtp-port <port>,--dns,--dns-addr <ip>,--dns-upstream <ip>,--codecommit-repos-dir <dir>,--stack-file <path>,--dashboard-config <path>,--env-file <path>,--lambda-config <path>,--thread-pool-size <n>,--mpu-ttl-hours <h>,--eks-driver docker|kind|k3s|strict,--ec2-driver auto|docker|podman|qemu|firecracker|strict,--fsx-wire-port <port>,--sgw-wire-port <port> - Disable Heavy Brokers:
--no-iot,--no-transfer,--no-opensearch,--no-mq,--no-kafka,--no-ecr,--no-codeartifact,--no-codebuild,--no-codepipeline,--no-batch, plus per-service--<service>-port <port>(0for ephemeral OS port).
8.3 Pro & Enterprise Capabilities (v4.0.0 – v15.0.0)
- CI/CD Ephemeral Cloud Twin & Cost Gate: Turnkey templates ship under
deploy/ci/gitlab-ci-offstack.yml,deploy/ci/github-action/action.yml, anddeploy/ci/Dockerfile.pro. Pair--profile ci-core --unified-port 4566withoffstack cost snapshotandoffstack cost diffto fail PRs on unexpected AWS spend growth. - Compliance, IAM/SCP & Audit Replay: Use
offstack import-aws(online read-only or offline--out-snapshot->--from-snapshotfor air-gapped SCIFs) to clone IAM policies, Organizations SCPs, CloudFormation templates, WAFv2 WebACLs, and Cedar schemas; export CloudTrail findings as SARIF 2.1.0, Markdown, or Ed25519-signed bundles withoffstack audit export|verify. - Encryption at Rest (
crypto_seal): Setting--master-key-env <VAR>(orOFFSTACK_MASTER_KEY, acceptinghex:,base64:/b64:,raw:32-byte keys or PBKDF2 passphrases) seals Secrets Manager secret values (ENC:v1:), SSMSecureStringparameters, KMS key material, Cognito RSA private keys, and S3 object payloads (OFFSTACK_ENC_V1:) using AES-256-GCM before persisting to disk/SQL. - Observability, Sovereign Deploy & Soak Benchmark:
GET /healthz-> JSON liveness (status,version,uptime_s,services_enabled).GET /readyz-> JSON readiness running realSELECT 1/FROM DUMMYSQL probes (503while draining or DB down).GET /metrics-> Prometheus 0.0.4 exposition (offstack_http_requests_total,offstack_http_errors_total,offstack_http_request_duration_seconds,offstack_http_inflight_requests,offstack_draining,offstack_db_pool_*).- Enterprise Inspector & Multi-RDBMS Matrix:
/_offstack/ships 24 offline web tabs (14core +10enterprise) backed by/_offstack/api/enterprise/{metrics,security,ha,compliance,cost-diff,tco,runtime,clouds}and/_offstack/api/cost/diff; runpython scripts/benchmark_matrix.pyacross live RDBMS targets to generate a reproducible HTML/Markdown sign-off report. - MCP Server, Policy Simulator, Multi-Cloud wave (v5.0–v8.4): Editor configs under
deploy/mcp/(18 MCP tools + resources), declarative compliance scenarios underdeploy/scenarios/, Helm/systemd appliances underdeploy/appliances/, sovereign AI (bedrock+sagemaker), live Chaos, IaC verify gate, data-plane migrator, zero-codeoffstack exec+--tls-auto,offstack shadow,offstack runtime,offstack hub,offstack cost compare,offstack dr, and multi-cloud parity across AWS/Azure/GCP/OCI. - 15-Cloud Sovereign OS Wave (v9.0–v15.0.0): Adds
ec2(Docker/Podman/QEMU/Firecracker + IMDSv2),autoscaling,efs,eks(kubectldiscovery),ce/budgets,datasync,fsx/storagegateway(--fsx-wire-port/--sgw-wire-portNFSv3/SMB2/WebDAV),emr,lightsail,securityhub/guardduty/inspector2, 175 CFN/CloudControl types, 15 clouds (:4690–4702), all 8 SQL/data wire bridges (:4703–4710incl. Oracle TNS:4710) withsqlglotpassthrough, embedded RDS/DSQL/OCI ADB wire endpoints, 12 live-verified RDBMS backends (adding IBM Db2 12.1.6 & SAP HANA 2.0 SPS08),clustermulti-host fabric +company-cloudappliance, and VibeInstallernuitka_modulepackaging (0non-runtime.py, bundledOffstack.DotnetHost.*for.NET 8Lambdas). - Sovereign packaging:
deploy/systemd/offstack.service, Helm chartdeploy/helm/offstack/, Linux release builderscripts/package_linux_release.sh(.tar.gz/.deb/.rpm), Windows Authenticode signerscripts/sign_windows_release.ps1, and load/soak benchmarkerscripts/benchmark_soak.py.
8.4 Key Environment Variables
OFFSTACK_DATABASE_URL— SQLAlchemy backend URL across all 12 verified RDBMS engines (PostgreSQL, MySQL, MariaDB, Dolt, CockroachDB, DuckDB, Oracle, MSSQL, Firebird, IBM Db2, SAP HANA, SQLite)OFFSTACK_MASTER_KEY— 256-bit AES-GCM key/passphrase when--master-key-envis not overriddenOFFSTACK_LICENSE_KEY/OFFSTACK_LICENSE_FILE/OFFSTACK_LICENSE_ENFORCE/OFFSTACK_LICENSE_PUBKEY_PEM— offline Ed25519 licensing controlsOFFSTACK_HOST— bind address override (0.0.0.0in containers; default127.0.0.1)OFFSTACK_SFN_REAL_WAIT—1/trueto spend real wall-clock time on Step FunctionsWaitstatesOFFSTACK_LAMBDA_DOCKER—1to runPackageType=ImageLambdas via local DockerOFFSTACK_PORT_REGISTRY— path for port registry metadataAWS_ENDPOINT_URL(with--unified-port) orAWS_ENDPOINT_URL_<SERVICE>(direct ports)AWS_CA_BUNDLE,REQUESTS_CA_BUNDLE,NODE_EXTRA_CA_CERTS(for--tls)DF2_FIRE_SIM(isolated/1/<port>) &DF2_SIM_TOOLKIT(CES/DF3 per-fire DynamoDB isolation viadarkfactory2/sim_host.py)
Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.