stoactl is a command-line interface for STOA Platform — The European Agent Gateway. It provides a declarative, kubectl-like experience for managing APIs, subscriptions, and other STOA resources through infrastructure-as-code patterns.
- GitOps-native: Declarative resource management with
applyanddelete - Multi-context: Manage multiple STOA environments (dev, staging, prod)
- OAuth2/OIDC: Secure authentication via Keycloak
- Familiar UX: kubectl-style commands for a seamless developer experience
brew install stoa-platform/tap/stoactlcurl -sfL https://get.gostoa.dev/stoactl | shdocker run ghcr.io/stoa-platform/stoactl:latest versiongo install github.com/stoa-platform/stoactl/cmd/stoactl@lateststoactl config set-context prod \
--server=https://api.gostoa.dev \
--tenant=acmestoactl config use-context prodstoactl auth loginstoactl get apis
stoactl get subscriptions# api.yaml
apiVersion: stoa.dev/v1
kind: API
metadata:
name: payment-api
tenant: acme
spec:
upstream: https://api.payments.example.com
path: /payments
version: v1stoactl apply -f api.yaml| Command | Description |
|---|---|
stoactl config set-context |
Create or update a context |
stoactl config use-context |
Switch to a context |
stoactl config get-contexts |
List all contexts |
stoactl auth login |
Authenticate with STOA |
stoactl auth status |
Show authentication status |
stoactl get <resource> |
List resources |
stoactl apply -f <file> |
Create or update resources |
stoactl delete <resource> <name> |
Delete a resource |
stoactl version |
Print version information |
stoactl stores configuration in ~/.stoactl/config.yaml:
current-context: prod
contexts:
prod:
server: https://api.gostoa.dev
tenant: acme
dev:
server: https://api.dev.gostoa.dev
tenant: acme-dev| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Command misuse |
| 3 | Authentication failed |
| 4 | Resource not found |
| 5 | Conflict |
| 6 | Validation error |
| Repository | Description |
|---|---|
| stoa | Main platform monorepo |
| stoa-docs | Documentation |
| stoa-helm | Helm charts |
Contributions are welcome! Please read our Contributing Guide before submitting a Pull Request.
Apache License 2.0 - see LICENSE for details.
Part of the STOA Platform project
🇪🇺 Built in Europe for European sovereignty