Stigg Product Updates logo

Product Updates

Back to Homepage Subscribe to Updates

Labels

  • All Posts

Jump to Month

  • December 2026
  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
today

Reserve & settle support in the Agent SDK

Reserve and settle is now built into the Agent SDK. Add a reserve option when you wrap your model client. The SDK then holds credits for the whole workflow and deducts only what the workflow actually used.

🆕 What's new?

  • One reservation per workflow: The first model call places a hold for the amount you set. Later calls spend directly from that hold.
  • Settle on close: When you call close(), the SDK deducts what the workflow used and returns the rest to the customer's balance in one step.
  • Refuse before the first call: If the balance can't cover the hold, the workflow is refused before any AI call is made.
  • Automatic expiry: If a workflow is abandoned, its credits are automatically returned when the hold expires (by default after 1 hour, configurable up to 24 hours using the ttlSeconds parameter).

💡 Why it matters

  • No double spending: Agents that run in parallel can't draw on the same credits, because each workflow's hold leaves the available balance as soon as it's placed.
  • Deduct only real usage: Usage is deducted once, at settle. Failed calls cost nothing, and unused credits go back to the customer.
  • Built into the calls you already make: Reservations, settlements and expiry all run through the wrapped client, so you don't need to build or maintain your own hold-and-release logic.

⚒️ Get started

  1. Set the hold: Add reserve with the most the workflow can cost and, if needed, how long it can run.
  2. Run the workflow: Make model calls through the wrapped client as usual.
  3. Settle: Call close() when the workflow ends.

See Reserving credits for a task and Reserve and settle for how reservations, expiry and the credit ledger work.

📦 Availability

Reserve & settle support is available in the Stigg Agent SDK v0.7.24 or later.

Avatar of authorOr Arnon