Browser runs and sandboxes for agents
Agents on Clonvo can now run code in Linux sandboxes, keep a sandbox with a preview link, and send a browser agent through a site to reach a goal.
14 November 2026. Product, Sandboxes, Browser.
Agents on Clonvo could already search and read the web. Starting today they can run code and work through websites as well: code_run for one-off snippets, five sandbox tools for work that takes more than one step, and browser_task on Browser Use's cloud agent. They sit in a new Sandboxes and browsers group on the Tools page, on the same API key and credits as everything else.
Run a snippet with code_run
code_run starts a fresh Linux sandbox, runs Python, JavaScript, TypeScript or bash in it, and returns what the code printed, its exit code and any files you ask for. The sandbox is deleted when the code finishes. Agents use it to calculate, test code, run shell commands and reshape data.
curl https://api.clonvo.com/v1/tools/code_run \
-H "Authorization: Bearer $CLONVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"arguments": {
"code": "import statistics\nprices = [19.5, 22.0, 18.75, 25.1]\nprint(round(statistics.mean(prices), 2))",
"timeout_seconds": 20
}
}'
The answer comes back with "output": "21.34\n", "exit_code": 0 and a cost of $0.0000555. Each sandbox has 1 vCPU, 1 GiB of memory and 3 GiB of disk, with Python (numpy and pandas included), Node.js, git and curl. files writes text files in before the code runs, and return_files reads files back afterwards, including charts saved with savefig. See code_run.
Keep a sandbox with the sandbox_ tools
Some work needs more than one call: install packages once, build and test a project, or run a web server and look at it. sandbox_create makes a sandbox that lasts ttl_minutes (5 to 60, 15 by default) and returns a sandbox_id. The other four tools act on it:
| Tool | What it does |
|---|---|
sandbox_run |
Runs code or shell commands. Files, installed packages and processes stay between calls. With background: true, a server keeps running and the call returns at once. |
sandbox_files |
Writes, reads and lists files without running code. |
sandbox_preview |
Returns an https link to a port in the sandbox, so you or your user can open what it serves in a browser. |
sandbox_delete |
Deletes the sandbox before it expires. |
A typical run: create a sandbox with an index.html in it, start python3 -m http.server 3000 in the background with sandbox_run, then ask sandbox_preview for port 3000 and open the link. Sandboxes on Clonvo credits can reach PyPI, npm and GitHub, and an organization can have three at a time. See Sandboxes.
Send a browser agent with browser_task
browser_task has an agent open a page and work through it toward a goal you describe in words: click through listings, fill in a search form, collect what a page only shows after interaction. Give it an output_schema and the answer comes back as data in that shape.
curl https://api.clonvo.com/v1/tools/browser_task \
-H "Authorization: Bearer $CLONVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"arguments": {
"url": "https://news.ycombinator.com",
"goal": "Open the first story’s comments and return its title and the number of comments.",
"output_schema": {
"type": "object",
"properties": { "title": { "type": "string" }, "comments": { "type": "integer" } }
},
"max_steps": 10
}
}'
A browser run takes anywhere from seconds to minutes, so it runs as a job: the call answers 202 and you check on it with GET /v1/tools/jobs/{id}. max_steps is a hard limit. If the agent reaches it without finishing, Clonvo stops the run, and you pay for what it used up to then.
Browser runs now go to Browser Use's cloud agent as well as TinyFish. A run on Browser Use is billed for its model tokens, its browser time by the minute (including the two minutes the browser stays open afterwards) and its page traffic. On TinyFish it's billed per step. See browser_task.
What it costs
On Clonvo credits, Clonvo charges the provider’s rate plus 2%:
code_runis billed per second for the time its sandbox existed. Before the code runs, Clonvo holds enough fortimeout_secondsplus start-up and returns what wasn't used.sandbox_createis charged once for the wholettl_minutesplus a minute.sandbox_run,sandbox_files,sandbox_previewandsandbox_deleteare free.browser_taskholds the mostmax_stepscan cost and charges what the run used.
Your own keys go first. Add a Daytona, Browser Use or TinyFish key under Provider keys → Tools, and calls run on your account, with the first $25,000 of list-price usage each month free of Clonvo's fee. See Tool billing.
Keep secrets out
Code in a sandbox and the browser agent can both reach the network, and anyone with a preview link can open it until it expires. Don't put passwords, API keys or personal data in code, files or goals. MCP clients that approve read-only tools on their own still ask before they call code_run or browser_task. Clonvo never stores code, files or goals as web tool queries, and it removes email addresses and phone numbers from what the browser agent returns.
Create an API key, or connect your MCP client to https://api.clonvo.com/mcp and ask your agent to run something.
Read next
- The Clonvo CLI: every tool as a terminal command: Install @clonvo/cli, sign in with your browser, and call any of Clonvo's 22 tools from a terminal, with JSON output for jq, scripts and agents.
- Images, rerank and audio output are now on Clonvo: Images from 13 models, reranking, and spoken or musical answers, on the same API key your agents use for models and tools.