Use Cases
Discover how STOA Platform solves real challenges for enterprises adopting AI and managing APIs at scale.
π€ Use Case 1: AI Agent API Gatewayβ
Challenge: Your AI agents (Claude, GPT, custom LLMs) need to call internal APIs, but you lack governance, audit trails, and access control.
Solution: STOA's MCP Gateway provides a unified entry point for all AI-to-API interactions.
Benefitsβ
| Without STOA | With STOA |
|---|---|
| Direct API access, no governance | Centralized policy enforcement |
| No visibility on AI calls | Full audit trail per agent |
| Manual API key management | Auto-discovery via MCP |
| Scattered rate limiting | Unified quotas per tenant |
Quick Implementationβ
# 1. Bridge your OpenAPI spec to MCP Tool manifests and apply via stoactl
stoactl bridge ./billing-openapi.yaml --namespace default --output ./tools/
for f in tools/*.yaml; do stoactl apply -f "$f"; done
# 2. AI agent discovers registered tools over MCP (Streamable HTTP / SSE)
# Client calls JSON-RPC tools/list and tools/call on POST /mcp with Bearer JWT
π Use Case 2: AI Cost Management & Token Meteringβ
Challenge: Multiple teams use LLMs, but you have no visibility on token consumption, costs spiral, and there's no chargeback mechanism.
Solution: STOA's AI Gateway tracks every token, provides real-time dashboards, and enables per-team quotas.
Benefitsβ
| Metric | Before STOA | After STOA |
|---|---|---|
| Cost visibility | None | Real-time per team |
| Token waste | Redundant LLM calls | Reduced with semantic cache* |
| Budget control | Monthly surprise bills | Automatic quota enforcement |
| Provider lock-in | Single provider | Multi-provider failover |
Semantic caching can significantly reduce redundant LLM calls. Actual savings vary based on query patterns and use case.
Dashboard Previewβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Token Usage by Team (January 2026) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Engineering ββββββββββββββββββββββββ 2.4M tokens β
β Marketing ββββββββββββββββββββββββ 800K tokens β
β Support ββββββββββββββββββββββββ 1.2M tokens β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Total Cost: β¬1,240 | Cache Savings: β¬520 (30%) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π’ Use Case 3: Multi-Tenant API Platformβ
Challenge: You're an ESN/ISV exposing APIs to multiple clients. You need isolation, per-client quotas, billing, and compliance (NIS2/DORA).
Solution: STOA provides native multi-tenancy with complete isolation and European sovereignty.
Tenant Isolation Architectureβ
| Aspect | Implementation |
|---|---|
| Auth | Single Keycloak realm (stoa), one Keycloak group per tenant, and verified tenant_id JWT claim (ADR-074) |
| Data | Shared PostgreSQL schema logically scoped by tenant_id |
| Tool Policies | Fail-closed, Control Plane-signed per-tenant tool policies (ADR-070) |
| Secrets | Tenant-scoped Vault / OpenBao paths (ADR-075) |
| Quotas | Independent per-tenant and per-consumer rate limits and token budgets |
Compliance Featuresβ
- NIS2 β Security incident reporting, access controls
- DORA β ICT risk management, resilience testing
- GDPR β Data residency in EU, audit trails
- European Hosting β EU data residency option available*
Legal jurisdiction depends on multiple factors. Consult your legal counsel for compliance advice.
Getting Startedβ
Ready to evaluate or deploy these use cases? STOA Platform is open source (Apache 2.0) at stoa-platform/stoa; hosted access is available on request at sales@gostoa.dev.
- π³ Local Evaluation (Compose)
- βΈοΈ Self-Hosted Gateway (Helm)
Follow stoa/quickstart/README.md and export all five required variables (POSTGRES_PASSWORD, KC_BOOTSTRAP_ADMIN_PASSWORD, KEYCLOAK_CLIENT_SECRET, KEYCLOAK_ADMIN_CLIENT_SECRET, and STOA_ADMIN_API_TOKEN) before starting the 5-container R1 verifier:
# Minimal 5-container R1 access verifier (401/401/200 proof via POST /admin/contracts)
git clone https://github.com/stoa-platform/stoa.git
cd stoa/quickstart
export POSTGRES_PASSWORD="<set-me>" \
KC_BOOTSTRAP_ADMIN_PASSWORD="<set-me>" \
KEYCLOAK_CLIENT_SECRET="<set-me>" \
KEYCLOAK_ADMIN_CLIENT_SECRET="<set-me>" \
STOA_ADMIN_API_TOKEN="<set-me>"
perl -e 'alarm shift; exec @ARGV' 300 docker compose up --wait
./verify.sh
For the 19-service local stack with Console, Portal, and Observability (deploy/docker-compose), validate your .env statically with docker compose -p stoa-local-check -f docker-compose.yml config --quiet first, then start the explicit 5-target shortcut documented in the Quickstart Guide.
First prepare my-values.yaml (stoaGateway.image.{repository,digest}, stoaGateway.policyBootTenants), separately deployed Control Plane / Keycloak endpoints, and your executable post-renderer (./site-post-render.sh, or a Kustomize/GitOps Deployment overlay step applied before checking Ready) mounting the private_key_jwt Secret volume as documented in the Installation Guide:
# Install the gateway-scoped Helm chart from a repository checkout (no charts.gostoa.dev repo)
git clone https://github.com/stoa-platform/stoa.git
cd stoa
git checkout 639e8b9a2217695cfc2f590e246ed9d4ce4d4913
# ./site-post-render.sh mounts the private_key_jwt signing-key Secret volume required before 1/1 Ready
helm upgrade --install stoa-platform ./charts/stoa-platform \
-n stoa-system --create-namespace \
-f my-values.yaml \
--post-renderer ./site-post-render.sh
Need Help?β
- π Quick Start Guide
- π¬ Discord Community
- π§ Contact Sales for enterprise use cases
Claude is a trademark of Anthropic, PBC. GPT-4 and Azure OpenAI are trademarks of OpenAI/Microsoft. All other product names are trademarks of their respective owners.