Documentation
Learn how to use Guardrail to manage permissions for your AI agents.
Getting Started
Set up Guardrail in 5 minutes
Connect Your Wallet
Click "Connect Wallet" and select your preferred wallet (MetaMask, WalletConnect, etc.). Then sign a message to authenticate securely using Sign-In with Ethereum (SIWE).
Register an Agent
Go to the Agents page and click “Register Agent”. Choose Guardrail Secure Account (recommended) for guaranteed on-chain enforcement. Then choose a signer source: Connected Wallet to use your MetaMask wallet, or Generate Bot Signer to create a dedicated keypair for your bot. The generated key is shown once after deployment — download the .env file and give it to your bot. Your personal wallet stays completely separate.
Create a Policy
Navigate to Policies and click "Create Policy". Define what actions are allowed (swap, transfer, etc.), set constraints like maximum transaction value and daily limits, then activate the policy.
Grant Permission
Go to Permissions and click "Grant Permission". Select your agent and the policy you want to assign. This links the agent to the policy, allowing it to perform actions within the defined constraints.
Integrate & Validate
Use the validation API in your agent's code. Before executing any action, call the validate endpoint to check if the action is allowed. Create an API key in Settings for programmatic access.