← Offstack All Offstack Docs Primary User Guides & AI Reference v15.0.0 · ~16 KB

Offstack Overview & Quickstart

v15.0.0 entry point covering 96 AWS services, 15 clouds, 12 verified SQL databases, 8 connection bridges, Free/Pro/Enterprise editions, and the 24-tab inspector.

A sovereign, local & multi-cloud API and data-plane emulator backed by any SQL database (12 live-verified RDBMS backends) via SQLAlchemy Core. Unmodified AWS SDKs (boto3, @aws-sdk/*, .NET, Java, Go), AWS CLI, Terraform/OpenTofu, CDK, SAM, Bicep/ARM, Azure/GCP/OCI SDKs, and native database/protocol clients run locally on 127.0.0.1 with zero cloud accounts required.

Primary Manuals: - Human User Manual: docs/USER_MANUAL.md — installation, unified gateway & TLS, 12 verified RDBMS backends, 96 AWS services, 175 CloudFormation types, 15 multi-cloud gateways, 8 wire bridges (:4703–4710), and complete CLI/flag reference. - AI / LLM Context Reference: docs/OFFSTACK_AI_MANUAL.txt — compact pipe-delimited capability spec served over MCP (offstack://docs/ai-manual). - Auto-Generated Coverage Ledgers: docs/CAPABILITY.md (AWS ops) and docs/MULTICLOUD_PARITY_CENSUS.md (15 clouds).

Spend $0.00 locally before deploying to AWS. The $100k CloudWatch–Lambda infinite loop, the $47k leaked-key weekend, the $9,700 missing-VPC-endpoint NAT bill — all real public postmortems. Run the same workloads against 127.0.0.1 for $0.00, and use offstack cost diff --fail-over-usd in CI to catch cost regressions before deploy. See docs/ZERO_BILL_CASE_STUDIES.md and examples/ten_thousand_dollar_mistake.py (--fast for a ~20 s preview).


Verified Capabilities (v15.0.0)


Quick Start

1. From Compiled Windows Enterprise Install (VibeInstaller) or Source

# Installed Enterprise build (offstack.cmd launcher, 0 non-runtime .py shipped)
offstack --unified-port 4566

# Or from a source checkout
pip install -e .                        # pulls sqlalchemy, cryptography, PyJWT, botocore>=1.42.1, duckdb, sqlglot, etc.
python start.py --unified-port 4566

Point any unmodified SDK or CLI at the unified gateway:

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

2. Selective Fast Boot & API Gateway Options

# Boot only CI core services (or explicit comma-separated list)
python start.py --profile ci-core --unified-port 4566

# Explicit service subset + omit API Gateway :13000 data plane
python start.py --services dynamodb,s3,sqs,sns,lambda --no-apigw-data-plane --unified-port 4566

# Boot with all 15 cloud gateways and all 8 wire bridges
python start.py --unified-port 4566 --cloud all --bridges

Available profiles: ci-core, serverless, data, security, brokers, devcloud, edge-iot, ai, full (profiles.py). Every listener also accepts --<service>-port 0 for OS-assigned ephemeral ports, fails closed on Windows if a port is already held (server_base.ExclusiveThreadingHTTPServer), and prints Press Ctrl+C to stop. only after every started listener passes readiness checks (docs/STARTUP_CONTRACT.md).

3. Persist State on Any of the 12 RDBMS Backends

Without --persist, Offstack defaults to in-memory SQLite (:memory:), discarding state on exit.

# Local SQLite WAL file
python start.py --unified-port 4566 --persist --state-file ./offstack.db

# PostgreSQL / MySQL / MariaDB / CockroachDB / Firebird / MSSQL / Oracle / Db2 / SAP HANA / DuckDB / Dolt
export OFFSTACK_DATABASE_URL="postgresql+psycopg://user:pass@127.0.0.1:5432/offstack"
python start.py --unified-port 4566 --persist

--persist is always required so a forgotten OFFSTACK_DATABASE_URL env var never writes to an external database by accident. Install matching extras (e.g. pip install ".[postgresql]", [mysql], [oracle], [mssql], [firebird], [cockroachdb], [duckdb], [db2], [hana]). See docs/DATABASES.md for per-dialect notes (including Db2 AUTHENTICATION=SERVER & key page-size budgets, and SAP HANA FROM DUMMY / UPSERT).


Fidelity & Refusal Charter


Editions (Free / Pro / Enterprise)

FeatureFree (editions/free)Pro / Enterprise
Core 96 AWS services + 15 multi-cloud gatewaysYes (sqlite:///:memory: only)Yes (durable persistence + all 12 RDBMS backends)
Persistence (--persist, --state-file, --s3-backend db, --snapshot-dir, --ha-node-id)Refused (upgrade gate)Supported (SQLite, PostgreSQL, MySQL, Oracle, MSSQL, Db2, HANA, etc.)
SQL / Data Wire Bridges (:4703–4710)In-memory bridges only (--<bridge>-engine-url refused; Oracle TNS disabled)All 8 bridges incl. Oracle TNS (:4710), passthrough --<bridge>-engine-url, embedded RDS/DSQL/ADB wire endpoints
Subcommands restricted in Free (snapshot, inspect, dr, migrate, cluster, company-cloud)Refused at startup (exit 2)All 25 subcommands unlocked (Enterprise Inspector 24 tabs, DR, Migrate, Cluster fabric, Company Cloud)

Configuration & Legacy App Integration

ItemPurpose
env.jsonDefault environment variables injected into Lambda invocations
lambda_routes.jsonAPI Gateway HTTP fallback route map when no control-plane routes exist
table_schemas/*.jsonDynamoDB table definitions for local_deploy.py
installer_config.jsonVibeInstaller nuitka_module packaging manifest
requirements-enterprise.txtExact pinned core + all RDBMS drivers for Enterprise builds
OFFSTACK_DEBUG=1Enables /_profile, /_ui, /auth/* diagnostic routes

local_deploy.py and seed_demo.py remain available for provisioning DynamoDB tables, S3 buckets, and Lambda routes from serverless-toolkit-aws configs (python local_deploy.py --app demo --source /path/to/app --dry-run).


Packaging & Distribution

Offstack distributes in three forms (see docs/PACKAGING.md):

  1. Windows Enterprise Installer (VibeInstaller nuitka_module): Configured via installer_config.json, compiled into native .pyd extensions (0 non-runtime .py shipped), launched via offstack.cmd (Offstack-Enterprise-Setup-15.0.0), bundling requirements-enterprise.txt, Offstack.DotnetHost.* for .NET 8 Lambdas, and docs/OFFSTACK_AI_MANUAL.txt. Audited cleanly (dep-audit + 21/21 install-verify).
  2. Local Python Wheel (pyproject.toml): Builds importable service/library packages (pip wheel --no-deps .); start.py stays a repository/installer entry script.
  3. Linux x86_64 & Container: scripts/package_linux_release.sh builds .tar.gz/.deb/RPM spec from dist-linux/offstack, and deploy/ci/Dockerfile.pro packages the non-root appliance container exposing :4566 / :4567.

Testing & Differential Oracle Pyramid

tests/conftest.py defaults --compare-peer to aws-emulator (AWS's official CC0 1.0 local emulator), alongside moto, ministack, fakecloud, aws-recorded (zero-spend cassette replay in config/aws_cassettes/), aws (manual pre-release adjudication), and none:

Tier / CheckCommandPurpose
Core / targeted suitepython -m pytest tests/<suite>.py --compare-peer=moto -qFast local verification against moto or none
Two-oracle reportpython tests/oracle_report.pyCompares Offstack against independent local oracles
AWS op census CI gatepython scripts/capability_statement.py --checkFails if docs/CAPABILITY.md drifts from live code
Multi-cloud census gatepython scripts/multicloud_spec_census.py --checkVerifies 15-cloud parity census (docs/MULTICLOUD_PARITY_CENSUS.md)
Offline static docs sitepython scripts/build_docs_site.py --checkBuilds & link-checks searchable offline HTML docs (_docs_site/); tested in tests/test_docs_site.py
RDBMS portability matrixpython -m pytest tests/test_width_rdbms_matrix.py tests/test_stage58_db2_hana_backends.pyVerifies SQL dialect parity across live RDBMS targets
Packaged E2E verificationpython scripts/verify_packaged_lambda.py <exe_or_cmd>Exercises S3, DynamoDB, STS, Lambda & API GW from a source-free cwd

Documentation Index

Offstack is an independent simulator of publicly documented cloud APIs. It is not affiliated with, endorsed by, or sponsored by Amazon.com, Inc. or any cloud/database vendor referenced herein; trademarks are used descriptively to state API and protocol compatibility.


Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.