Welcome to Payloop!
Cost Visibility for AI Agents
Payloop is a lightweight infrastructure layer that gives AI teams real-time visibility into the true costs of deploying agents - across tasks, workflows, and customers. Most teams today can’t see what it actually costs to deploy their agents, making it nearly impossible to manage gross margins or price with confidence.
With just a single line of code, Payloop delivers:
- Cost tracking across OpenAI, Anthropic, Gemini, and more in one place
- Breakdowns by task, agent, and customer in real time
- Confidence to deploy the right pricing model (cost-plus, token-based, outcome-based, etc.) while preserving gross margins
Watch a short demo video: Payloop Walkthrough Video
By surfacing exactly what’s driving cost and value, Payloop becomes the source of truth for agent economics - helping founders and operators scale their agents with confidence.
Sign up here: trypayloop.com
Installation
gem install payloop
Documentation
Our SDK reference provides documentation for:
- Understanding how Payloop works
- Demonstrating how to integrate Payloop into your product
- Code samples to illustrate our SDK and API
Check it out here: developers.trypayloop.com
Releasing a New Version
To release a new version of the Payloop Ruby gem (e.g., version 0.0.2):
Update the version number in lib/payloop/version.rb:
VERSION = "0.2.0"Update the CHANGELOG in CHANGELOG.md:
- Add a new section for the version with today's date
- Document all changes under appropriate categories (Added, Changed, Fixed, etc.)
- Follow the Keep a Changelog format
Commit your changes:
git add lib/payloop/version.rb CHANGELOG.md git commit -m "Bump version to 0.0.2"Run tests and linting to ensure everything passes:
bundle exec rakeCreate a git tag for the release:
git tag -a v0.0.2 -m "Release version 0.0.2"Push changes and tags to GitHub:
git push origin main git push origin v0.0.2Build and release the gem to RubyGems:
bundle exec rake build bundle exec rake release
Note: You'll need RubyGems credentials configured. The rake release task will:
- Build the gem
- Push it to RubyGems.org
- Create a GitHub release (if configured)
- Verify the release:
- Check rubygems.org/gems/payloop to confirm the new version is published
- Test installation:
gem install payloop -v 0.0.2