# gatekeeper solana

> Non-custodial pre-flight firewall that prevents failed Solana swaps and optimizes gas fees for AI agents.

gatekeeper solana is a free AI agent skill on Agensi by Hypnotist, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Hypnotist](https://www.agensi.io/creators/hypnotist)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Uses: 1
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gatekeeper-solana
- Tags: trading, solana, python, api, automation

## About this skill

Autonomous trading agents often burn gas on failed Solana transactions due to slippage reverts or expired blockhashes. GateKeeper solves this by acting as a non-custodial pre-flight execution firewall that intercepts swap intents before they reach the blockchain. It simulates transactions off-chain against real-time cluster state to ensure execution success.

### What it does
- **Pre-flight simulation** evaluates swap intents off-chain in under 80ms to predict success or failure.
- **Zero-gas revert protection** blocks trades that would trigger 0x1771 errors, preventing wasted lamports.
- **Dynamic CU clamping** measures exact Compute Unit requirements and limits the budget to minimize priority fee burn.
- **Anti-hallucination guards** validate mint addresses and slippage parameters to ensure the agent logic is sound.
- **Non-custodial architecture** operates on unsigned transaction intents, ensuring private keys never leave your local environment.

### How it works
1. **Intercept intent** by passing the planned swap parameters to the GateKeeper validator instead of the wallet signer.
2. **Execute simulation** via the Python SDK, CLI script, or REST API to check current pool liquidity and contention.
3. **Analyze verdict** to receive either an `APPROVED` status with optimized CU limits or a `HARD_ABORT` with a specific rejection reason.
4. **Broadcast safely** by applying the recommended Compute Budget limits to the final transaction for on-chain execution.

### Frameworks & tools
Built for Solana agents using Python, Node.js, or shell scripts. Supports integrations with ElizaOS, Solana Agent Kit (SendAI), Jupiter, Raydium, and Orca.

### Why this beats prompting it yourself
LLMs cannot predict real-time pool slippage or calculate precise Compute Unit requirements through text alone. This skill provides deterministic protection that stops an agent from repeatedly retrying a failing trade and draining its wallet on fees.

### Use cases
- Prevent gas drain on high-frequency trading bots during volatile market conditions.
- Optimize transaction landing rates for autonomous agents using Jupiter or Raydium.
- Audit agent-generated swap intents for invalid mints or extreme price impact.
- Reduce overhead costs by clamping Compute Units for every broadcasted transaction.

### Known limitations
Requires an active API key for the remote gateway and does not support private key management or direct transaction signing.

## Requires

100% non-custodial: Works strictly on unsigned intents without wallet private keys. Includes 10,000 free simulations per month.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the gatekeeper solana skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does GateKeeper prevent 'gas drain' on my Solana agent's wallet?

GateKeeper prevents AI agents from wasting SOL on failed transaction fees by simulating swaps off-chain and blocking intents that would revert due to slippage, expired blockhashes, or liquidity issues before they reach the network.

### Does this skill require access to my agent's private keys?

No, the skill is non-custodial and operates only on unsigned transaction intents; your private keys remain in your local environment, and GateKeeper simply provides the 'Approved' or 'Abort' logic.

### Which AI agent frameworks and libraries are compatible with this skill?

GateKeeper is built for cross-framework compatibility, offering native support for ElizaOS and Solana Agent Kit (SendAI), as well as any agent using Python or Node.js via REST API.

### Will using this pre-flight firewall significantly slow down my agent's execution speed?

The simulation process is highly optimized, returning a success prediction and optimized Compute Unit (CU) limits in under 80ms, ensuring your agent maintains its speed in volatile markets.

### What assets are included in the purchase of the gatekeeper solana skill?

You receive the full SDK (Python/Node.js), a CLI tool for manual auditing, integration documentation for major DEXs like Jupiter and Raydium, and access to the gateway API for real-time simulations.

### How does the 'Dynamic CU Clamping' feature reduce my transaction costs?

GateKeeper uses dynamic CU clamping to measure the exact compute units a transaction needs, allowing your agent to set a precise budget and avoid overpaying on priority fees for simple swaps.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
