AUTONOMOUS ON-CHAIN AI AGENTS WITH GUARDED SESSION KEYS
Give your autonomous AI agents on-chain execution powers without risking the treasury. Scoped ERC-4337 session keys, contract allowlists, daily spend limits, and instant human kill-switches.

ERC-4337 Session Key Policy Simulator
Agent Allowed Target Allowlist
{
"account": "0x49a2...71e4",
"sessionKey": "0x81b4...99a0",
"validUntil": 1793156800,
"dailySpendCap": "500.00 USD",
"allowedContracts": [
"0x13f4ea83d0bd40e75c8222255bc855a974568dd4 (PancakeSwap V3)",
"0x8b7e028546950c122026a9b61b50000000000000 (RareChars)"
],
"enforcement": "On-Chain Smart Contract"
}RareAgent Deployment Packages
- ✓ERC-4337 smart account & session key module
- ✓Scoped contract & function selector allowlists
- ✓Daily & per-tx spend quota enforcement
- ✓Read-only MCP server integration
- ✓Safe multisig human master owner setup
- ✓Autonomous liquidity rebalancing or game agent
- ✓Pre-flight simulation engine before broadcasting
- ✓Emergency automated kill-switch & alerting
- ✓Dedicated bundler & Paymaster sponsorship
- ✓Full operational monitoring & weekly reports
- ✓Multi-agent collaborative fleet architecture
- ✓Cross-chain execution (BSC + opBNB + Arbitrum)
- ✓Bespoke zero-knowledge or cryptographic verifiers
- ✓Formal security hardening & pen-test triage
- ✓Dedicated 24/7 incident response runbook
ERC-4337 Security Questions
What is an ERC-4337 smart account with session keys?
Unlike traditional EOA wallets where an agent holds the master private key, an ERC-4337 smart account separates execution from ownership. The AI agent holds a temporary "session key" that can only execute pre-approved functions (e.g. swap on PancakeSwap) up to a strict daily spend limit. Your human Gnosis Safe remains the ultimate master owner.
How does RareAgent protect against prompt injection and malicious AI behavior?
Even if an LLM is hijacked or hallucinates an instruction to send funds to an attacker, the on-chain session key validator contract rejects the transaction because the attacker’s address is not on the immutable contract allowlist. The guardrails exist at the smart contract level, not in the prompt.
Can the human owner revoke the agent’s permissions immediately?
Yes. The human master owner (Gnosis Safe) can call revokeSessionKey() at any time. We also provide an automated watchdog that freezes the session key instantly if anomaly thresholds are tripped.
Does RareAgent support gas sponsorship (Paymasters)?
Yes. RareAgent integrates ERC-4337 Paymasters on BSC and opBNB, allowing your dApp or treasury to sponsor gas in native BNB or permit the agent to pay gas in stablecoins (USDT).
Can RareAgent inspect on-chain state without gas costs?
Yes. RareAgent includes a read-only Model Context Protocol (MCP) server that provides agents with zero-gas tool access to balances, logs, contract reads, and calldata decoding on BSC (56/97) and opBNB (204/5611).
