BETA

B2B SaaS Agent Architecture · 1 Key = 1 Tenant VM + 1 Ledger

Isolate every customer’s AI computer and cap their margin—with zero custom billing code.

Shipping autonomous coding, data-import, or report-generation features inside a B2B SaaS product? Issue one prepaid tesi_ak_... key ($10–$100 USD) per customer workspace to get strict Linux VM isolation (ws_...), zero cross-tenant file leakage, and itemized agc_... charge reconciliation.

1. Per-tenant margin & charge reconciliation in 6 lines

Query exact settled pico-credits (10^12 pico = $1.00 USD) and itemized agc_... charges per tenant key at zero cost:

from tesi_sdk import TesiAgentClient

tenant_tesi = TesiAgentClient(api_key=tenant_secret_key)
window = tenant_tesi.usage(window_hours=24)     # exact 24h debitPico & chargeCount
ledger = tenant_tesi.usage(limit=25)            # itemized agc_... settled charges + balance
if int(ledger["balance"]["availableCents"]) < 200:
    topup = tenant_tesi.topup(amount_cents=2500)  # same key & persistent ws_... preserved!
Fund $25 pack →

Questions

Multi-tenant SaaS FAQ.

Does each tesi_ak_... bearer key get its own isolated filesystem and Linux workspace?

Yes. Every issued bearer key maps 1-to-1 to a dedicated workspaceId (ws_...) and isolated TESI Linux computer (1 vCPU, 2 GB RAM, 4 GB disk). Tenant A's code, CSV exports, and files are never visible to Tenant B.

How do we reconcile exact token spend per tenant for customer billing or margin tracking?

Call GET /api/v1/agents/usage (or tesi.usage(window_hours=24) in the SDK) using that tenant's key. TESI returns exact pico-credit debits, UTC settlement timestamps, and stable HMAC-derived agc_... charge IDs.

Can one heavy tenant drain our shared credit pool?

Not when you assign one prepaid key per tenant. A tenant with a $10 or $25 USD key can never spend a cent of another tenant's balance, and you can top up active tenants in place via POST /api/v1/agents/topup.

Launch multi-tenant agents