SAGE Gateway Software
SAGE (Supplier-Aware Gateway Engine) is an open-source Go gateway for Pocket Network Shannon. A client sends an ordinary RPC request (an eth_blockNumber, a CometBFT /status, a Solana call); SAGE picks a healthy supplier endpoint, signs and sends the relay, grades the response, and feeds the result back into reputation so the next request routes better.
SAGE is the successor to PATH and the gateway PNF runs on mainnet. It loads a PATH config unmodified, and it tells you at startup about every PATH key it does not act on. See Migrating from PATH.
- Source: github.com/pokt-network/sage
- Releases (binaries and container image): github.com/pokt-network/sage/releases
Who SAGE Is For
- Gateway operators running RPC access on Pocket, for themselves or for customers
- Chain foundations running a dedicated endpoint for their ecosystem
- Developers who need their own access point rather than a public endpoint
- Core developers extending routing, QoS or response analysis
How It Works
Every relay passes through a chain of small middleware, each with one concern. The order comes from config, and startup refuses an order that breaks a rule such as “endpoint selection runs inside retry”:
Client request
→ parse (service, RPC type, QoS plugin)
→ cache / batch / coalescing
→ retry → hedge
→ circuit breaker → endpoint selection
→ sign and send the relay → grade the response
Client response ←──────────────────────────────┘Each response gets a verdict and an attribution: supplier, blockchain, client or unknown. A chain’s own answer, such as a reverted call or a missing block, is delivered to the client and does not count against the supplier that relayed it.
QoS Plugins
| Plugin | Chains | What it adds |
|---|---|---|
| EVM | Ethereum, Base, Arbitrum, Polygon, BSC, … | Block height tracking, archival routing, JSON-RPC and WebSocket |
| Cosmos | Pocket, Osmosis, Celestia, sei, … | REST, CometBFT and JSON-RPC, including a chain’s EVM face |
| Solana | Solana | Slot tracking, JSON-RPC |
| TRON | TRON | Both TRON request framings |
| JSON-height | NEAR, Sui, and similar | Height tracking from a declaration: what to ask, and where the answer is |
| Passthrough | Any other service | Relays and scores, without understanding the payload |
Transports
JSON-RPC, REST, CometBFT (by path or by JSON-RPC method), WebSocket with subscriptions, and gRPC (native, with a gRPC-Web fallback).
SAGE authenticates no clients and rate-limits nothing. Every relay it accepts is signed with your gateway key and paid for by your staked applications. Put port 3069 behind an authenticating, rate-limiting proxy; never expose it to the internet directly.
What’s in This Section
- Quickstart — run SAGE and serve a relay
- Installation — release binaries, container image, building from source
- Configuration — what a config needs, and where the full key reference lives
- Architecture — the middleware chain, QoS, response grading, reputation, WebSocket
- Operating — ports, Kubernetes probes, Redis, metrics, the admin API
- Migrating from PATH — what carries over unchanged, and what differs
- Developing — adding a middleware or a chain
In this section
Developing with SAGE
Extend SAGE: add a middleware or a chain, run the tests, and the conventions the codebase enforces.
Learn more →Migrating from PATH to SAGE
Move a PATH gateway to SAGE: the config loads unmodified, what the startup report tells you, and where clients and operators will see a difference.
Learn more →Operating SAGE in Production
Ports and exposure, Kubernetes probes, running several replicas with Redis, degraded modes, metrics and the admin API.
Learn more →SAGE Architecture
How SAGE routes a request: the middleware chain, QoS plugins, response grading and attribution, reputation, sessions and WebSocket.
Learn more →SAGE Configuration
What a SAGE config needs, the blocks most operators set, how secrets and feature flags work, and where the complete key reference lives.
Learn more →SAGE Installation
Install SAGE from a release binary, the container image, or source.
Learn more →SAGE Quickstart
Run SAGE locally: first with no network at all on the mock backend, then against Pocket mainnet.
Learn more →