You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently no way to programmatically read an account's credit balance or token usage from Skyvern Cloud. The information exists - I can see it in the dashboard at https://app.skyvern.com/billing - but it's not reachable from a script with my API key.
This matters when you're running large batches and want to:
detect "running low on balance" before the next batch dispatches and silently fails
track per-run cost so internal dashboards can show "this county costs us $X" over time
alert when daily usage spikes past a threshold
Right now the workaround is: a human opens the web dashboard. For an automation product, that's a rough corner.
Current state (as far as I can tell from the public repo)
x-fern-ignore: true removes them from the generated public SDK, and the FAQ (docs/developers/debugging/faq.mdx) just points users to the dashboard. The recent persistence work in #5656 also notes "public API unchanged - placeholder preserved", which suggests this is a deliberate hold rather than a missing implementation.
Asks (in order of preference)
Public read-only endpoint for balance + recent usage. e.g.
Existing API key, read-only - no checkout/portal/tier-change exposure.
Or: a UI toggle / API-key permission to "allow programmatic billing reads". Off by default, opt-in per org. That way you don't have to expose it to every account, but power users who want it can flip it on.
Any of the three would unblock the use case. (3) feels lowest-risk because it's additive on an existing response shape.
Why not just scrape the dashboard?
It's an automation product specifically designed to avoid needing humans (or scripts) to drive a web UI for read access. Asking customers to write a Skyvern workflow that scrapes Skyvern's own dashboard to read their balance feels like exactly the loop you'd want to short-circuit.
Happy to help test any of these or open a PR for (3) if there's interest.
Problem
There's currently no way to programmatically read an account's credit balance or token usage from Skyvern Cloud. The information exists - I can see it in the dashboard at https://app.skyvern.com/billing - but it's not reachable from a script with my API key.
This matters when you're running large batches and want to:
Right now the workaround is: a human opens the web dashboard. For an automation product, that's a rough corner.
Current state (as far as I can tell from the public repo)
The endpoints exist server-side:
x-fern-ignore: trueremoves them from the generated public SDK, and the FAQ (docs/developers/debugging/faq.mdx) just points users to the dashboard. The recent persistence work in #5656 also notes "public API unchanged - placeholder preserved", which suggests this is a deliberate hold rather than a missing implementation.Asks (in order of preference)
Public read-only endpoint for balance + recent usage. e.g.
Existing API key, read-only - no checkout/portal/tier-change exposure.
Or: a UI toggle / API-key permission to "allow programmatic billing reads". Off by default, opt-in per org. That way you don't have to expose it to every account, but power users who want it can flip it on.
Or even just: surface
total_cost_usd(and ideallyllm_tokens_in/out) on the existingGET /v1/runs/{run_id}response. That would at least let us roll up per-run cost client-side without a separate endpoint. Per-run cost is already persisted to the DB per feat: persist real LLM cost to DB + block-level attribution (public API unchanged — placeholder preserved) #5656.Any of the three would unblock the use case. (3) feels lowest-risk because it's additive on an existing response shape.
Why not just scrape the dashboard?
It's an automation product specifically designed to avoid needing humans (or scripts) to drive a web UI for read access. Asking customers to write a Skyvern workflow that scrapes Skyvern's own dashboard to read their balance feels like exactly the loop you'd want to short-circuit.
Happy to help test any of these or open a PR for (3) if there's interest.