Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Stogas SDK

Verify a Stogas confidential gateway before you send it credentials or prompts. One Rust core serves the CLI and the SDKs for Rust, Python, JavaScript, Go, C, Java, .NET, Ruby, and Swift.

Documentation · Examples · Security

Use the CLI

Install the CLI. Each command installs a release archive after it checks the SHA-256:

curl -fsSL https://raw.githubusercontent.com/StogasAI/stogas/main/install.sh | sh   # macOS and Linux
irm https://raw.githubusercontent.com/StogasAI/stogas/main/install.ps1 | iex       # Windows PowerShell
brew install stogasai/tap/stogas                                                    # Homebrew

Then start a local endpoint:

stogas serve --security tls

stogas serve checks the gateway's hardware attestation and build, and then prints a URL. Use the URL as the base URL of your OpenAI-compatible client, and keep the URL private. --security e2ee encrypts end to end over HTTPS instead.

The CLI guide lists every command and the other ways to install, such as Scoop, pipx, cargo-binstall, and Docker. cargo install stogas-cli --locked and nix run github:StogasAI/stogas build the CLI from source.

Use an SDK

Choose a language guide or a runnable example. The SDK gives your OpenAI-compatible client or HTTP library a transport that verifies the gateway. It also verifies signed receipts and saved evidence offline.

The project is pre-1.0, so APIs can change. Some package managers install a pre-release only when you ask:

pip install --pre stogas
gem install stogas --pre
dotnet add package Stogas --prerelease
cargo add stogas@<version>
npm install stogas@<version>

Maven and Swift also take the exact version.

Standalone verifiers

Two parts of the core also work without Stogas, as crates and as WebAssembly packages for browsers, Node, Bun, Deno, and Workers:

Verifies Rust npm
AMD SEV-SNP attestation reports stogas-sev-snp @stogas/sev-snp
GitHub and GitLab build attestations stogas-sigstore @stogas/sigstore

Verify a release

Every file of a release has a GitHub build attestation, and so does the container image, as oci://ghcr.io/stogasai/stogas:<version>:

gh attestation verify <file> --repo StogasAI/stogas --signer-workflow StogasAI/stogas/.github/workflows/release.yml --source-ref refs/tags/v<version> --deny-self-hosted-runners

From 0.1.0-alpha.6 on, GitLab.com's hosted runners also rebuild each release from the same tag, and gitlab-attestation.jsonl covers every file they built. Only Apple hardware runs Xcode, so GitLab packages the macOS and iOS compiler outputs of GitHub's build:

cosign verify-blob-attestation <file> --bundle gitlab-attestation.jsonl --type https://slsa.dev/provenance/v1 --certificate-oidc-issuer https://gitlab.com --certificate-identity https://gitlab.com/stogasai/stogas//.gitlab-ci.yml@refs/tags/v<version>

Develop

Rust 1.94.1 or later builds the workspace:

cargo test --locked --workspace --all-targets

CI tests the core, the transports, and every language binding on each push. A nightly fuzz campaign covers the parsers and the verification code.

License

Apache-2.0.

Metadata

Release files for stogas 0.1.0a6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for stogas 0.1.0a6
File Actions
stogas-0.1.0a6-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for stogas-0.1.0a6-cp310-abi3-win_arm64.whl
stogas-0.1.0a6-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for stogas-0.1.0a6-cp310-abi3-win_amd64.whl
stogas-0.1.0a6-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for stogas-0.1.0a6-cp310-abi3-musllinux_1_2_x86_64.whl
stogas-0.1.0a6-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for stogas-0.1.0a6-cp310-abi3-musllinux_1_2_aarch64.whl
stogas-0.1.0a6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for stogas-0.1.0a6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
stogas-0.1.0a6-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for stogas-0.1.0a6-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
stogas-0.1.0a6-cp310-abi3-macosx_13_0_x86_64.whl CPython 3.10 abi3 macOS 13.0+ x86-64 Details for stogas-0.1.0a6-cp310-abi3-macosx_13_0_x86_64.whl
stogas-0.1.0a6-cp310-abi3-macosx_13_0_arm64.whl CPython 3.10 abi3 macOS 13.0+ ARM64 Details for stogas-0.1.0a6-cp310-abi3-macosx_13_0_arm64.whl

Total release size: 145.5 MB

Release files / stogas-0.1.0a6-cp310-abi3-win_arm64.whl

Download URL stogas-0.1.0a6-cp310-abi3-win_arm64.whl
Size 16.7 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
8f323af96e395e4fa0fe4c474e6875e58a04c849d54f4eca12bb2b8316526b7e
BLAKE2b-256 checksum
How to use checksums
14f13cfab398ecf9a3fcf56ffc78deca630ca0e7692ca4897ddf5d2b31090b9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-win_amd64.whl

Download URL stogas-0.1.0a6-cp310-abi3-win_amd64.whl
Size 17.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f616834acf4da8124d7b02c70671bd53dbb45822dbe3126d2fc30fce414adde9
BLAKE2b-256 checksum
How to use checksums
3cc6ae9fc56b9fa34d660821f54ba9efa6bd6f3aed8d64b2775bc2285fc6932a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL stogas-0.1.0a6-cp310-abi3-musllinux_1_2_x86_64.whl
Size 18.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
0e0ac1d8ab6ac0c376009882c21352f7bb84c8da5e575f6f5fdf05a8f9045500
BLAKE2b-256 checksum
How to use checksums
59a19baa9a7114a8db0e676bb96fe948008627abd46b0c905554748c2af65173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL stogas-0.1.0a6-cp310-abi3-musllinux_1_2_aarch64.whl
Size 18.3 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
0171cb8938503885d5fb228b2183c452e31985c204d58ad03c68baef5fed5a82
BLAKE2b-256 checksum
How to use checksums
5e42c433ea9451599876b2c40df38e4c2ae317fa8cb6a5c5760c05b74eef4e72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL stogas-0.1.0a6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 18.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
76ab018b9d836672f6aa803832d08b6918eb0e7e0e814c2d5d7f8e4c92a7f9eb
BLAKE2b-256 checksum
How to use checksums
fa1b17ff1314a5b7b5f020f69f61c2e2592e2f6d3eb6020997d907d4bedc93ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL stogas-0.1.0a6-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 18.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f6937ba15e0fd9420fce51c42e3c61dda80ccff306247dec89d78495f457ef99
BLAKE2b-256 checksum
How to use checksums
526f4c250176689a239c096a6de1d09f18b9a45b4958abb81d58f89fb443df07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-macosx_13_0_x86_64.whl

Download URL stogas-0.1.0a6-cp310-abi3-macosx_13_0_x86_64.whl
Size 19.4 MB
Tags CPython 3.10 abi3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
939b8dbfede664aebd56e94df9c3c03a8094180592cb2afa4d0155643707bd7b
BLAKE2b-256 checksum
How to use checksums
a6da285bba8d7ac5630c6e040611292dc983d90e2fb16418d76db7a246501773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / stogas-0.1.0a6-cp310-abi3-macosx_13_0_arm64.whl

Download URL stogas-0.1.0a6-cp310-abi3-macosx_13_0_arm64.whl
Size 17.5 MB
Tags CPython 3.10 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
52c0b993298646a63d900bfde445dad31565a05a93cd48dc456a8f756d864109
BLAKE2b-256 checksum
How to use checksums
4ee0fb3816dcb8d48f914edd7d7f52dbfc093a1da860b085a7aae87580a5b313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for stogas 0.1.0a6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for stogas-0.1.0a6-cp310-abi3-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page