Dashboard authentication
- Go to app.prflght.xyz.
- Click Connect wallet and select Phantom or Solflare.
- Approve the connection in your wallet extension.
- Sign the authentication message when prompted. The message is plain text — it does not authorize any transaction or transfer of funds.
API key
Your API key is generated automatically when you first authenticate. Find it in the API Keys section of the dashboard. Use the API key alongside your agent’s wallet public key when you initialize theFirewall client:
agentId field must match the agent wallet you registered in the policy editor. Prflght uses this value to look up the correct policy and to verify that requests are coming from the expected agent.
Environment variables
Store your credentials in environment variables rather than hardcoding them:Authentication errors
If theagentId in your SDK config does not match the wallet you registered, or if your API key is invalid or revoked, Prflght blocks the transaction and throws a FirewallDenyError with a descriptive reason. Check the err.reason field to distinguish an authentication failure from a policy violation:
