Step 1 of 4
Let's connect your first agent to Reins
Under 2 minutes. You'll set a spend policy, connect your agent via SDK, and verify the integration is working.
01
Set a spend policy
Define daily limits so your agents can't overspend.
02
Connect your agent
Drop in the SDK or hit our REST API directly.
03
Verify the connection
A quick test to confirm everything's wired up correctly.
Step 2 of 4
Create your first spend policy
A simple daily cap to protect against runaway costs. You can refine this later.
Live preview
{
"name": "Daily spend cap",
"rule_type": "daily_cap",
"limit_amount": 50,
"action": "block",
"enabled": true
}
Step 3 of 4
Connect your agent
Install the SDK and instrument your agent's API calls. First, generate an API key.
// 1. Install npm install @reins/sdk // 2. Initialize const Reins = require('@reins/sdk'); const reins = new Reins({ apiKey: 'YOUR_API_KEY' }); // 3. Log a transaction await reins.logTransaction({ agent: 'my-agent', vendor: 'openai', amount: 0.50, model: 'gpt-4' });
Step 4 of 4
Verify connection
We'll send a test transaction and confirm your agent is connected.
✓
You're all set
Reins is now monitoring your agent spend. Head to the dashboard to see it live.