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) anddocs/MULTICLOUD_PARITY_CENSUS.md(15 clouds).
Spend
$0.00locally before deploying to AWS. The$100kCloudWatch–Lambda infinite loop, the$47kleaked-key weekend, the$9,700missing-VPC-endpoint NAT bill — all real public postmortems. Run the same workloads against127.0.0.1for $0.00, and useoffstack cost diff --fail-over-usdin CI to catch cost regressions before deploy. Seedocs/ZERO_BILL_CASE_STUDIES.mdandexamples/ten_thousand_dollar_mistake.py(--fastfor a ~20 s preview).
Verified Capabilities (v15.0.0)
- 96 AWS Services (
4,885 / 6,818ops answered [71.6%],4,518acting on real state [66.3%],367explicitUnsupportedOperationrefusals across 28 services): measured directly againstbotocore 1.42.6byscripts/capability_statement.py --check.64services answer100%of their botocore model (42at100%real state). - 175
AWS::*CloudFormation & CloudControl Resource Types across 75 namespaces. - 15 Multi-Cloud Gateways (
7,966canonical ops /5,591real-state): AWS (--unified-port 4566+ per-service ports), OCI (:4671), GCP (:4696+ gRPC:4672), Azure (:4697), Alibaba (:4690), Cloudflare (:4691), Scaleway (:4692), DigitalOcean (:4693), IBM Cloud (:4694), Huawei (:4695), Linode (:4698), Hetzner (:4699), Tencent (:4700), OpenStack/OVH (:4701, 6 provider profiles), and Baidu (:4702) — sharing object, queue/topic, secret, KMS, and KV data planes while keeping provider-specific infrastructure records isolated. - 12 Live-Verified RDBMS Backends: SQLite (default
:memory:or WAL file), DuckDB, PostgreSQL 16.15, MySQL 8.4, MariaDB 11.4, Dolt, CockroachDB, Firebird 4.0, SQL Server (MSSQL 2022 viapymssql/pyodbc), Oracle Free 23, IBM Db2 12.1.6, and SAP HANA 2.0 SPS08 (plusdatabricksdialect support inpyproject.toml). Seedocs/DATABASES.md. - 8 Native Data / SQL Wire Bridges (
:4703–4710,--bridges): - MongoDB BSON wire (
:4703), Snowflake SQL (:4704), Elasticsearch HTTP (:4705), PostgreSQL PGWire (:4706), MySQL Wire (:4707), MSSQL TDS (:4708), ORDS-compatible REST (:4709), and Oracle TNS (:4710) (enabled by default in Pro/Enterprise viaORACLE_TNS_ENABLED = Trueinemulated_services/oracle_tns.py; thin-modeoracledbO5LOGON + real SQL, bounded without PL/SQL/AQ/DRCP). - Cross-dialect SQL passthrough (
--pgwire-engine-url,--mysql-wire-engine-url,--mssql-tds-engine-url,--ords-engine-url,--oracle-tns-engine-url) translates and executes client SQL viasqlglot(start.pyacceptssqlite,postgresql,mysql/mariadb,mssql, andoracle, whileemulated_services/sql_engine_sqlalchemy.pyalso mapscockroachdb,duckdb,db2/ibm_db_sa,hana, andfirebird). - Real Runtimes & Live Embedded Managed DB Wire Endpoints:
- In-process Python, warm/cold Node.js
.mjsworkers (:13000API GW proxy +:4638CloudFront Lambda@Edge),provided.al2/al2023,.NET 8(via bundledOffstack.DotnetHost.*in Enterprise installs), and Docker (--lambda-docker). - Implemented Event Delivery & Triggers: DynamoDB Streams, Kinesis (
LATEST/TRIM_HORIZON), SQS event-source mappings (at-least-once delete +ReportBatchItemFailurespartial-batch failures), S3ObjectCreated&ObjectRemovednotifications (fanning out to Lambda, SQS, SNS, and EventBridge), EventBridge rules/archives, Step Functions ASL state machines, Durable Execution (Invokeenvelope, checkpoints, callbacks), and Lifecycle TTL/retention reaping. - Native Protocol Services: Real bare-git CodeCommit repos,
fakeredisRESP2 sockets for ElastiCache & MemoryDB, IoT MQTT:18830, SFTP/FTPS/FTP Transfer backed by S3, OCI v2 Registry (ecr), PyPI/npm/Maven (codeartifact), AMQP/STOMP (mq), Kafka wire (kafka), NFSv3/SMB2/WebDAV file gateways (--fsx-wire-port,--sgw-wire-port), EC2/ECS/EKS Docker/Podman/QEMU/Firecracker runners, DocumentDB BSON TCP, Neptune Gremlin/openCypher HTTP/WS, and embedded SQLite + live wire endpoints forrds,dsql, and OCI AutonomousDB (--no-rds-embedded-endpointsto disable;--strict-rdsfor external PostgreSQL/MySQL only). - 24-Tab Offline Inspector UI (
/_offstack/):14core tabs +10enterprise tabs (Metrics,Security,HA,Compliance,CostDiff,Chaos,Recorder,TCO,Runtime,Four-Cloud), snapshots, Prometheus/metrics,/healthz,/readyz, and MCP server (offstack mcpwith 18 tools).
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
- Need HTTPS/TLS? Add
--tls(listens on:4567, local CA SANs forlocalhost,*.s3.localhost,*.execute-api.localhost,*.cloudfront.localhost,*.appsync-api.localhost) or use zero-code injection:offstack exec --tls -- pytest. - Connecting directly to per-service ports without
--unified-port? Use per-serviceAWS_ENDPOINT_URL_<SERVICE>variables — seedocs/EMBEDDING.md§5 for service-ID traps (events→EVENTBRIDGE,stepfunctions→SFN,logs→CLOUDWATCH_LOGS). botocore& CloudWatch protocol support:cloudwatch(cloudwatch/metrics_server.py+gateway/smithy_cbor.py) serves Query/XML, AWS JSON 1.0, andsmithy-rpc-v2-cbor, andgateway/server.pybridges all 7 other CBOR-capable services;pyproject.tomldeclaresbotocore>=1.42.1(the<1.42.7ceiling is lifted and verified live againstboto3==1.44.17), whilerequirements-enterprise.txtstill pinsbotocore==1.42.6for reproducible local oracle/census denominators.
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
- Real AWS error codes & limits:
NoSuchBucket,NoSuchKey,ParameterNotFound,ValidationException,ResourceNotFoundException,InvalidPart; DynamoDB 400 KB items, 1 MB query pages, evaluated vs filteredLimitaccounting, 25/100 batch caps; 5 MB S3 multipart minimums; SigV4 & IAM/SCP enforcement (--verify-sigv4,--require-sigv4,--iam off|soft|strict). - Explicit honest boundaries: Offstack never invents fake success for unbacked proprietary/AI services (
rekognition,comprehend,textract,polly,transcribe,translate,mediaconvert,support) or out-of-scope operations (367explicitUnsupportedOperationrefusals across 28 services;503when an external compute runtime like Docker/QEMU is required and absent). - Zero-code CLI subcommands (
25):tls,tls-auto,exec,shadow,ai,runtime,hub,dr,cassettes,snapshot,inspect,cost,import-aws,audit,simulate,mcp,appliance,chaos,iac,migrate,record,replay,cluster,company-cloud,license. Seedocs/USER_MANUAL.md§8.
Editions (Free / Pro / Enterprise)
| Feature | Free (editions/free) | Pro / Enterprise |
|---|---|---|
| Core 96 AWS services + 15 multi-cloud gateways | Yes (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
| Item | Purpose |
|---|---|
env.json | Default environment variables injected into Lambda invocations |
lambda_routes.json | API Gateway HTTP fallback route map when no control-plane routes exist |
table_schemas/*.json | DynamoDB table definitions for local_deploy.py |
installer_config.json | VibeInstaller nuitka_module packaging manifest |
requirements-enterprise.txt | Exact pinned core + all RDBMS drivers for Enterprise builds |
OFFSTACK_DEBUG=1 | Enables /_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):
- Windows Enterprise Installer (VibeInstaller
nuitka_module): Configured viainstaller_config.json, compiled into native.pydextensions (0non-runtime.pyshipped), launched viaoffstack.cmd(Offstack-Enterprise-Setup-15.0.0), bundlingrequirements-enterprise.txt,Offstack.DotnetHost.*for.NET 8Lambdas, anddocs/OFFSTACK_AI_MANUAL.txt. Audited cleanly (dep-audit+21/21install-verify). - Local Python Wheel (
pyproject.toml): Builds importable service/library packages (pip wheel --no-deps .);start.pystays a repository/installer entry script. - Linux
x86_64& Container:scripts/package_linux_release.shbuilds.tar.gz/.deb/RPM spec fromdist-linux/offstack, anddeploy/ci/Dockerfile.propackages 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 / Check | Command | Purpose |
|---|---|---|
| Core / targeted suite | python -m pytest tests/<suite>.py --compare-peer=moto -q | Fast local verification against moto or none |
| Two-oracle report | python tests/oracle_report.py | Compares Offstack against independent local oracles |
| AWS op census CI gate | python scripts/capability_statement.py --check | Fails if docs/CAPABILITY.md drifts from live code |
| Multi-cloud census gate | python scripts/multicloud_spec_census.py --check | Verifies 15-cloud parity census (docs/MULTICLOUD_PARITY_CENSUS.md) |
| Offline static docs site | python scripts/build_docs_site.py --check | Builds & link-checks searchable offline HTML docs (_docs_site/); tested in tests/test_docs_site.py |
| RDBMS portability matrix | python -m pytest tests/test_width_rdbms_matrix.py tests/test_stage58_db2_hana_backends.py | Verifies SQL dialect parity across live RDBMS targets |
| Packaged E2E verification | python scripts/verify_packaged_lambda.py <exe_or_cmd> | Exercises S3, DynamoDB, STS, Lambda & API GW from a source-free cwd |
Documentation Index
- User Guides:
docs/USER_MANUAL.md·docs/EMBEDDING.md·docs/OFFSTACK_AI_MANUAL.txt·deploy/mcp/README.md - Databases & Wire Bridges:
docs/DATABASES.md·docs/RDS.md·docs/SQLALCHEMY_BACKEND.md - Capability & Parity Reports:
docs/CAPABILITY.md·docs/MULTICLOUD_PARITY_CENSUS.md·docs/OP_RELEVANCE.md·docs/REFERENCE_SAMPLES.md - Packaging, Startup & Operations:
docs/PACKAGING.md·docs/STARTUP_CONTRACT.md·docs/MULTIHOST_CLUSTER_TESTING.md·docs/SMOKE_PROBE_SPEC.md - Cost Analysis & Case Studies:
docs/COST_REPORT.md·docs/ZERO_BILL_CASE_STUDIES.md·docs/TRANSPORT_COST.md - Scope, History & Migration:
docs/DURABLE_EXECUTION_SCOPE.md·docs/AWS_CASSETTES.md·docs/REPLACING_V1.md·docs/CROSS_CLOUD_FACADE.md·docs/V1_FINDINGS.md
Legal
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.