Custody Integration
RebelFi is non-custodial — we never hold your keys or funds. Instead, we integrate with your existing custody solution through a Custody Adapter.How It Works
- RebelFi generates operations — supply, unwind, rebalance
- The Agent polls for pending transactions — a lightweight service you deploy
- The Custody Adapter signs transactions — interfaces with your custody provider (Fireblocks, Anchorage, etc.)
- Transactions are submitted on-chain — either by the adapter or returned to RebelFi
The Agent
The Agent is a service that runs in your infrastructure and handles communication between RebelFi and your custody solution. What it does:- Polls RebelFi for pending transactions and actions
- Passes signing requests to your Custody Adapter
- Reports results back to RebelFi
Agent API Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/agent/transactions/poll | Poll for pending transactions to sign |
POST | /api/agent/transactions/report | Report transaction execution result |
POST | /api/agent/actions/poll | Poll for pending custody actions |
POST | /api/agent/actions/report | Report action outcome |
Agent Polling Flow
Custody Adapters
A Custody Adapter is the integration layer between the Agent and your specific custody provider. We build adapters for you. Tell us which custody provider you use, and we’ll create the adapter as part of your onboarding.Supported Providers
Contact us to discuss integration with:- Fireblocks
- BitGo
- Anchorage
- Copper
- Tatum
- Privy
- Custom/in-house custody
Integration Options
- RebelFi Managed Agent
- Your Own Agent
Simplest Option: RebelFi runs the agent infrastructure for you.
- No deployment or maintenance required
- RebelFi manages polling, retries, and error handling
- You provide custody credentials securely
- Monitor activity via dashboard
- Automatic updates and scaling
Comparison Table
| Feature | RebelFi Managed Agent | Your Own Agent |
|---|---|---|
| Infrastructure | RebelFi hosts | You host |
| Setup Time | 5 minutes | 1-2 days |
| Custody Integration | Provide credentials | Build adapter |
| Monitoring | RebelFi dashboard | Your systems |
| Customization | Limited | Full control |
| Updates | Automatic | You manage |
Security Model
Agent Security
API Key Security
API Key Security
- Store API keys in secure secrets management
- Rotate API keys periodically (recommended: every 90 days)
- Use different API keys for dev/staging/production
- Never log API keys in plain text
Network Security
Network Security
- Run agent in a private network segment
- Restrict outbound traffic to only RebelFi API and blockchain RPC endpoints
- Use TLS for all API communications
- Consider using a VPN or private link for additional security
Custody Credentials
Custody Credentials
- Store custody credentials (Fireblocks keys, etc.) encrypted at rest
- Use hardware security modules (HSM) where possible
- Implement least-privilege access for agent service accounts
- Audit all signing operations
Transaction Safety
RebelFi operations include safety mechanisms:- Lease-based claiming: Transactions are leased to prevent duplicate execution
- Timeout handling: Expired leases release transactions for retry
- Idempotency: Operations can be safely retried without duplicate effects
- Audit trail: All transactions and reports are logged
Getting Started
- Tell us your custody provider — during onboarding
- We configure your adapter — typically 1-2 days
- Choose agent option — managed or self-hosted
- Configure credentials — connect to your custody provider
- Start earning yield — operations flow automatically
Ready to integrate?
Contact us to discuss your custody setup
Troubleshooting
Agent not polling
Agent not polling
Symptoms: No logs showing poll attemptsCheck:
- Agent process is running
- Network connectivity to
midas.rebelfi.io - API key is valid
- Environment variables are loaded
Transactions not executing
Transactions not executing
Symptoms: Transactions appear in queue but never executeCheck:
- Agent is successfully polling
- Custody provider credentials are valid
- Operation is not
PENDING_APPROVAL(approve it first) - Agent has access to custody signing APIs
Lease expiry issues
Lease expiry issues
Symptoms: Transactions repeatedly claimed but never completedCheck:
leaseDurationMsis sufficient for signing + submission- Network latency to custody provider
- Custody provider response times