| name | salesforce-cost-tuning |
| description | Optimize Salesforce costs through API call reduction, edition selection, and license management.
Use when analyzing Salesforce costs, reducing API consumption,
or choosing the right Salesforce edition for your integration needs.
Trigger with phrases like "salesforce cost", "salesforce pricing",
"reduce salesforce costs", "salesforce license", "salesforce API usage", "salesforce budget".
|
| allowed-tools | Read, Grep |
| version | 1.7.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","crm","salesforce"] |
| compatibility | Designed for Claude Code |
Salesforce Cost Tuning
Overview
Optimize Salesforce costs by reducing API call consumption, choosing the right edition, and monitoring API usage budgets. Salesforce charges per-user licenses (not per-API-call), but API limits are tied to edition + license count.
Prerequisites
- Access to Salesforce Setup > Company Information
- Understanding of current API usage patterns
- Access to contract/license details
Instructions
Step 1: Understand Salesforce Pricing Model
| Edition | Per-User/Month | API Calls/Day (Base) | Per-User API Calls |
|---|
| Developer | Free | 15,000 | N/A (1 user) |
| Essentials | ~$25 | 15,000 | +1,000/user |
| Professional | ~$80 | 15,000 | +1,000/user |
| Enterprise | ~$165 | 100,000 | +1,000/user |
| Unlimited | ~$330 | 100,000 | +5,000/user |
| API Add-on Pack | Varies | +200K-10M/day | Per org |
Key insight: API calls are per-org, not per-user. A 50-user Enterprise org gets 100,000 + (50 * 1,000) = 150,000 daily API calls. All integrations share this pool.
Step 2: Monitor Current Usage
const conn = await getConnection();
const limits = await conn.request('/services/data/v59.0/limits/');
const apiUsage = {
daily: {
used: limits.DailyApiRequests.Max - limits.DailyApiRequests.Remaining,
remaining: limits.DailyApiRequests.Remaining,
max: limits.DailyApiRequests.,
: ((limits.. - limits..) / limits.. * ).(),
},
: {
: limits.,
: limits.,
},
: {
: ,
: ,
},
};
.(, .(apiUsage, , ));