Compute for agents and AI.
Serverless functions, edge workers, sandboxes and desktops for agents. Pay per second, nothing for idle. One platform instead of Lambda, Cloudflare Workers and a fleet of VMs for your agents.
import tensorbase as tb
app = tb.App("research")
image = tb.Image(python_packages=["httpx", "trafilatura"])
@app.endpoint(cpu=1, image=image, min_containers=0)
def fetch(url: str) -> str:
import httpx, trafilatura
return trafilatura.extract(httpx.get(url).text)
@app.function(cpu=2, retries=2)
def digest(urls: list[str]) -> list[str]:
return list(fetch.map(urls)) $ tb deploy app.py image img_7c1e0b8a (cached) ✓ research/fetch fetch-acme.tensorbase.run ✓ research/digest function · 2 vCPU deployed in 2.8 s · scales to zero when idle $
- V8 isolates edge
- gVisor containers
- Firecracker microVMs
Six building blocks. One bill.
From a 5 ms edge response to a desktop your agent keeps for weeks. Same SDK, same CLI, same console, same per-second meter.
Edge Workers
JavaScript, TypeScript and WASM request handlers running in V8 isolates on workerd. Route them to your own domain, keep state in volumes and call your functions and endpoints without leaving our network.
- Runtime
- V8 isolates
- Cold start target
- < 10 ms
- Billing
- Per request
export default {
async fetch(req, env) {
const url = new URL(req.url);
if (url.pathname === "/og") return renderCard(url);
return Response.json({ hello: "from Europe" });
},
};
// tb deploy worker.js --route api.example.com/* Functions
Decorate a Python function and call it from anywhere, one call or a thousand in parallel. Any OCI image, any pip package, up to 24 hours per call, isolated with gVisor.
- Runtime
- gVisor containers
- Cold start target
- < 1 s (warm image)
- Billing
- Per second
import tensorbase as tb
app = tb.App("pipeline")
@app.function(cpu=2, memory="4Gi", retries=2)
def embed(doc: str) -> list[float]:
return model.encode(doc)
vectors = list(embed.map(documents)) # fans out across containers Endpoints
Serve a FastAPI app or a single handler at an HTTPS URL. Set concurrency per container and a keep-warm window; with min_containers=0 it scales to zero and wakes on the next request.
- Runtime
- gVisor containers
- Cold start target
- < 1 s
- Scale
- 0 → N on demand
from fastapi import FastAPI
import tensorbase as tb
app = tb.App("api")
web = FastAPI()
@web.get("/hello")
def hello(name: str = "world"):
return {"hello": name}
@app.asgi(min_containers=0, concurrency=32, keep_warm_seconds=120)
def serve():
return web Task Queues
Enqueue work from your app or agent, let containers scale with queue depth, retry on failure and fetch results later. Schedules turn any function into a cron job.
- Scale on
- Queue depth
- Retries
- Per task
- Schedules
- Cron, UTC
@app.task_queue(cpu=2, memory="4Gi", max_containers=20, retries=2)
def browse(url: str) -> dict:
return run_browser_agent(url)
task = browse.spawn("https://news.ycombinator.com")
print(task.result(timeout=300))
@app.schedule(cron="0 6 * * *")
def nightly_report(): ... Sandboxes
Every sandbox is a Firecracker microVM with its own kernel. Exec commands, read and write files, expose a port as a preview URL, pause it with a memory snapshot and fork new ones from that snapshot.
- Runtime
- Firecracker
- Start target
- ~0.5 s
- Network
- Open, allowlist or none
sbx = tb.Sandbox.create(image="tensorbase/sandbox:python3.12", egress="none")
sbx.files.write("/work/solution.py", generated_code)
result = sbx.exec("python /work/solution.py", timeout=30)
print(result.exit_code, result.stdout)
snap = sbx.snapshot(name="after-install") # start the next one warm Desktops
A Linux desktop with Chrome, a terminal and a persistent home folder. Drive it with the computer-use API, watch it live, take control when it gets stuck. It sleeps when idle and wakes in about a second.
- Runtime
- Firecracker
- Wake target
- ~1 s
- View
- noVNC, view-only by default
desk = tb.Desktop.create(name="research",
look={"display_name": "Research agent", "color": "#7c5cff"})
desk.act([
{"type": "browser_open", "url": "https://arxiv.org/list/cs.AI/recent"},
{"type": "click", "x": 412, "y": 338},
{"type": "key", "key": "ctrl+l"},
])
png = desk.screenshot() Built to start before your user notices.
Each primitive uses the lightest isolation that is still safe, and keeps images and memory snapshots close to the CPU that needs them.
- Opened arxiv.org/list/cs.AInow
- Scrolled down 54s
- Clicked “Test-time compute…”7s
- Took a screenshot12s
- Woke from sleep in 0.9 s47m
Give every agent its own computer.
- A real desk. Debian with Chrome, a terminal, Node.js and OpenCode. Each desk gets its own name and colour, so you can tell your agents apart at a glance.
- Watch live, take over. View-only by default, enforced by the relay. Take control when the agent gets stuck; it pauses until you hand it back.
- Sleeps when idle. Memory is snapshotted, billing stops, and the next API call wakes it in about a second with everything still open.
- Computer-use API. Screenshot, click, type, scroll, key, exec and Chrome DevTools, from Python, TypeScript or plain HTTP.
Per second. Nothing for idle. Nothing for egress.
You pay while code runs, a sandbox is up or a desktop is awake. Scaled-to-zero endpoints and sleeping desktops cost nothing, and neither does moving data out of the platform.
CPU and memory
Functions, endpoints, task queues.
| per vCPU | $0.000012/s |
| Memory, per GiB | $0.0000025/s |
A 1 vCPU, 2 GiB container: $0.061 per hour.
Sandboxes and desktops
Firecracker microVMs. Paused and sleeping cost storage only.
| Sandbox 2 vCPU, 4 GiB | $0.135/h |
| Desktop 2 vCPU, 4 GiB | $0.135/h |
Edge workers
V8 isolates, billed per request.
Storage and egress
Volumes, images and snapshots.
| Volume storage | $0.073 per GB-month |
| Snapshot storage | $0.037 per GB-month |
| Internet egress | Free |
Prices in USD, excluding VAT. Usage is charged against your TensorId credits.
Dedicated servers in Europe.
We run every workload on dedicated servers we operate, not on someone else's serverless platform. That is how idle time ends up costing you nothing.
Functions and edge workers
Functions, endpoints, task queues and edge workers share a fleet of dedicated servers, with images cached next to the CPU that runs them.
Sandboxes and desktops
Firecracker microVMs with their own kernel, memory snapshots for pause and sleep, and a persistent home folder for every desktop.
Volumes and snapshots
Code bundles, images, volumes and snapshots are stored in Europe, with hard spend caps per workspace so a runaway job cannot run away with your budget.
How it lines up.
Tensorbase covers what you would otherwise stitch together from a functions service and an edge runtime, plus sandboxes and desktops for agents.
| Feature | Tensorbase | AWS Lambda | Cloudflare Workers | beam.cloud |
|---|---|---|---|---|
| Billing | Per second; idle is free | Per millisecond (yes) | Per request and CPU time (yes) | Per second (yes) |
| V8 isolate edge workers | Yes | Lambda@Edge and CloudFront Functions (partly) | Yes (yes) | No (no) |
| Any OCI image | Yes | Yes, up to 10 GB (yes) | Containers product (partly) | Yes (yes) |
| Sandboxes for untrusted code | Firecracker microVMs | Not as a product (no) | Sandbox SDK (partly) | Yes (yes) |
| Desktops for agents | Live view, take control, sleep | No (no) | Headless browser rendering (partly) | VMs (partly) |
| Longest single call | Up to 24 hours | 15 minutes (partly) | Short CPU limits per request (partly) | Long-running (yes) |
| Where it runs | Dedicated servers in Europe | AWS regions (yes) | Global edge (yes) | Cloud regions (yes) |
Based on each provider's public documentation as of November 2026. Products change; check their sites for current details.
What does “scale to zero” mean?
When an endpoint or task queue has had no work for its keep-warm window, its last container stops and billing stops with it. The next request starts a new container from the cached image. Keep min_containers above zero if you need instant responses.
How do you bill?
Per second of container, sandbox or awake-desktop time, per million edge requests and per GB stored. There are no egress fees. Usage is charged against your TensorId credits, the same balance Tensor AI uses.
Are the cold-start numbers measured?
Not yet. They are the targets the platform is designed for: V8 isolates for edge workers, gVisor with cached images for functions, and Firecracker memory snapshots for sandboxes and desktops. We will publish measured benchmarks with the method once the public beta runs on production hardware.
Is it safe to run code my agent wrote?
That is what sandboxes are for. Each one is a Firecracker microVM with its own kernel, its own tap device and an egress policy of open, allowlist or none. Workloads never get a route to private networks, cloud metadata or our worker agents.
Where is my data?
Functions, sandboxes, desktops and storage run on dedicated servers we operate in Europe. Code bundles, images, volumes and snapshots are stored in Europe too.
Do you have GPUs?
Not yet. GPU functions and endpoints are on the roadmap; everything else is available today.
Can I watch and control a desktop?
Yes. The console shows a live view over noVNC that is view-only by default; Take control lets you click and type while the agent pauses. Every action, from the agent or a person, is in the activity log.
Do I need a new account?
No. Sign in with your TensorId account. Programs use workspace API keys (tbk_…) that you create in the console.
Can I move from Lambda or Cloudflare Workers?
Python handlers move with a decorator; anything that runs in a container runs here with your own image. Edge workers use the standard fetch handler API, so most Workers code runs unchanged.
Ship the agent.
We’ll run the computers.
Sign in with TensorId, deploy your first function in a minute, and give your agent a desktop of its own.