Cloudflare Computer is a virtual filesystem whose state is stored in SQLite inside a Durable Object and exposed through selectable execution backends. It lets coding agents work with files, shell commands, JavaScript modules, containers, and networked Linux environments.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cloudflare/computer --skill execgit clone --depth 1 https://github.com/cloudflare/computerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cloudflare/computer/exec)<a href="https://agentmods.dev/skills/cloudflare/computer/exec"><img src="https://agentmods.dev/badge/skills/cloudflare/computer/exec/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cloudflare/computer/exec"><img src="https://agentmods.dev/badge/skills/cloudflare/computer/exec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.00707 |
| Opus 5.5 | $0.00023 | $0.00283 |
| Sonnet 5.5 | $0.00012 | $0.00141 |
| Haiku 4.5 | $0.00006 | $0.00071 |
Grade A, and why
exec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Running code
Every exec call takes JavaScript module source, not a shell
command. The durable object builds a module graph from it, starts a
fresh Dynamic Worker, and evaluates the module there. Nothing is shared
between calls.
The shape of a module
Put the work inside the default export, and return what you want back:
import { readdir, readFile } from "node:fs/promises";
export default async function (input) {
const names = await readdir(input.dir);
const first = await readFile(`${input.dir}/${names[0]}`, "utf8");
return { count: names.length, first };
}
- The default export gets the call's
inputvalue. - Its return value comes back as the result's
value. It must be JSON-compatible. console.logandconsole.infogo to standard output.console.warnandconsole.errorgo to standard error.- A thrown error ends the run with a non-zero exit code and the message
on standard error. So does a promise that rejects with nothing
handling it, so
awaiteverything you start. - Code at the top level runs before the call is set up. A file read or a
fetchthere fails withDisallowed operation called within global scope. Imports at the top are fine.
What code can import
node:fs/promises(alsonode:fs): the workspace's files. The supported calls arereadFile,writeFile,mkdir,rm,readdir,stat,lstat,readlink,symlink,chmodandaccess. All of them are async.- Node.js built-ins such as
node:path,node:crypto,node:zlibandnode:buffer, with subpaths likenode:stream/promises. Bare names such aspathwork too. - Relative imports resolve from
cwdin the workspace, so you can write a helper module with one call and import it in the next. - There is no
node_moduleslookup and no npm. Beyond the modules above, only the ones the host configures are available.
Limits
- No direct network access.
fetchto the internet fails. - Each run has a time limit: one minute by default, three at most.
- Source,
inputand the returned value are capped at 1 MiB each.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 24d ago Changed · +21 lines · -2 tokens per session 568f8bf2d3e9
- 1mo ago First seen · 47 lines · 60 tokens per session scan A 14deb5fc419c
exec is a skill published in the GitHub repository cloudflare/computer (9,980 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 707 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.
exec compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| execcloudflare/computer | Skill | 10.0k | 3d ago | MIT | A | 58 | Claude Code, Codex |
| deploy-docker-composeomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarization | Skill | 2.0k | yesterday | Apache-2.0 | A | 117 | Cursor |
| securing-kubernetes-on-cloudxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 80 | Claude Code, Codex |
| detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 40 | Claude Code, Codex |
| docker-socket-mountPurpleAILAB/Decepticon | Skill | 6.9k | 10d ago | Apache-2.0 | B | 67 | Claude Code |
| polar-local-environmentfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 22 | Claude Code |