exec

exec is a skill for Claude Code, Codex from cloudflare/computer. It costs 58 tokens per session (707 once invoked), scanned A, original, MIT.

A guide to running shell commands in a Linux container connected to the workspace. It explains the available tools, network access, file syncing, and which files persist after the container stops.

In plain words
What is it for?
Use it before installing packages, running Git or Node commands, inspecting files, or debugging code in the container.
Why use it?
It prevents confusion about where commands run, which changes are saved, and why files outside the workspace or bundled skill directory may disappear.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it before installing packages, running Git or Node commands, inspecting files, or debugging code in the container.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cloudflare/computer/exec
About the project

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.

cloudflare/computer · 9,980 stars · on GitHub

Install

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.

Any agent
npx skills add cloudflare/computer --skill exec
Clone the repo
git clone --depth 1 https://github.com/cloudflare/computer

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for exec

README.md
[![agentmods](https://agentmods.dev/badge/skills/cloudflare/computer/exec/github.svg)](https://agentmods.dev/skills/cloudflare/computer/exec)
Your own site
<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.

agentmods 80×15 button for exec

Your own site · 80×15
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 24d ago against content hash 568f8bf2d3e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

examples/codemode/src/skills/exec/SKILL.md · 68 lines

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 input value.
  • Its return value comes back as the result's value. It must be JSON-compatible.
  • console.log and console.info go to standard output. console.warn and console.error go 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 await everything you start.
  • Code at the top level runs before the call is set up. A file read or a fetch there fails with Disallowed operation called within global scope. Imports at the top are fine.

What code can import

  • node:fs/promises (also node:fs): the workspace's files. The supported calls are readFile, writeFile, mkdir, rm, readdir, stat, lstat, readlink, symlink, chmod and access. All of them are async.
  • Node.js built-ins such as node:path, node:crypto, node:zlib and node:buffer, with subpaths like node:stream/promises. Bare names such as path work too.
  • Relative imports resolve from cwd in the workspace, so you can write a helper module with one call and import it in the next.
  • There is no node_modules lookup and no npm. Beyond the modules above, only the ones the host configures are available.

Limits

  • No direct network access. fetch to the internet fails.
  • Each run has a time limit: one minute by default, three at most.
  • Source, input and the returned value are capped at 1 MiB each.

Read the full file on GitHub · 68 lines

Changes

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.

  1. 24d ago Changed · +21 lines · -2 tokens per session 568f8bf2d3e9
  2. 1mo ago First seen · 47 lines · 60 tokens per session scan A 14deb5fc419c

Subscribe to this mod's changes

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.

Related

exec compared with skills from other repositories

exec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
execcloudflare/computerSkill10.0k3d agoMITA58Claude Code, Codex
deploy-docker-composeomnigent-ai/omnigentSkill12ktodayApache-2.0A84Claude Code, Codex
bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0kyesterdayApache-2.0A117Cursor
securing-kubernetes-on-cloudxalgorix/xalgorixSkill1.5ktodayApache-2.0A80Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.5ktodayApache-2.0A40Claude Code, Codex
docker-socket-mountPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0B67Claude Code
polar-local-environmentfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A22Claude Code