satgate
Official Python SDK for SatGate: the Economic Firewall for AI agents.
Install
pip install satgate
Build agents with issue/pay/verify
The public package installs today. The issue/pay/verify API namespace is in private beta, so calls without beta access raise a structured error instead of returning mocked receipts.
import os
from satgate import SatGate
satgate = SatGate(api_key=os.getenv("SATGATE_API_KEY"))
capability = satgate.issue(
task="research market prices",
agent="research-agent",
allow=["mcp:web.search", "api:prices.read"],
budget_usd=25,
expires_in="1h",
)
receipt = satgate.pay(
upstream="https://api.example.com/search",
capability=capability,
max_usd=4.20,
)
verified = satgate.verify(receipt)
print(verified.decision, verified.evidence_pack_id)
Without private-beta access:
SatGateAuthError: This API namespace requires private beta access. Visit cloud.satgate.io/docs to request access.
Works with: MCP · OpenAI tools · Anthropic tools · LangChain · CrewAI · Raw HTTP
OSS Gateway client
The package also includes lower-level OSS gateway clients:
from satgate import SatGateClient, SatGateAgentClient
admin = SatGateClient(
base_url="http://localhost:8080",
admin_token="your-admin-token",
)
token = admin.tokens.mint(scope="api:read", duration="1h")
valid = admin.tokens.validate(token.token)
agent = SatGateAgentClient(
gateway_url="http://localhost:8080",
token=token.token,
)
response = agent.get("/api/data")
print(valid["valid"], response.status_code)
Docs
- Developer docs: https://cloud.satgate.io/docs
- Build page: https://satgate.io/build
- Repository: https://github.com/SatGate-io/satgate
Metadata
Release files for satgate 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| satgate-0.3.2.tar.gz | 18.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| satgate-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.4 kB
Release files / satgate-0.3.2.tar.gz
| Download URL | satgate-0.3.2.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dd5330f6b62978ac88f7d85663a32473fb767e1014980a52f503b0fb6396512
|
|
BLAKE2b-256 checksum How to use checksums |
2dfe39ee3443a3d39a0ab1befc20ef4653ddf0d1da7226fbbae0bdb76989d9d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / satgate-0.3.2-py3-none-any.whl
| Download URL | satgate-0.3.2-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8dba81eab78147f31d9fe2a42fb061b15785540e6112760d3ebb289001ca5b4
|
|
BLAKE2b-256 checksum How to use checksums |
c0ea803e38b2d44a38f2477573e2c6c3ec6d3abaf908fae6d7098c72255469f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|