TheDocumentation Index
Fetch the complete documentation index at: https://docs.prflght.xyz/llms.txt
Use this file to discover all available pages before exploring further.
@prflght/sak-plugin package adds Prflght transaction firewall protection to any agent built with Solana Agent Kit. After a one-line setup call, every SAK action that produces a transaction is automatically intercepted and checked against your Prflght policy before it reaches the chain.
What the plugin does
SAK actions — swaps, transfers, liquidity provision, and anything else in the SAK toolkit — all go through a shared transaction submission path. ThePrfghtPlugin hooks into that path at the SAK level, so you get full firewall coverage across every action without touching individual action code.
Installation
Setup
Create your SolanaAgentKit instance
Set up
SolanaAgentKit as you normally would, providing your private key, RPC URL, and any required API keys:Register the Prflght plugin
Call
agent.use() with a new PrfghtPlugin instance, passing your Prflght API URL:Full example
No other code changes are required. The plugin intercepts at the SAK level, so every action — including ones you add later — is covered automatically.
Comparing the plugin to the raw SDK
@prflght/sak-plugin | @prflght/sdk | |
|---|---|---|
| Setup | One agent.use() call | Manual firewall.check() before each transaction |
| Coverage | All SAK actions automatically | Only where you explicitly call check() |
| Control | Zero-config | Full control over serialization, error handling, and instruction placement |
| Best for | SAK-based agents where you want drop-in protection | Custom agents or non-SAK frameworks |
