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:
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.