Skip to main content
Watch: Stop Building Apps. Build Tools for AI Agents

Built-in tool - verified

Anthropic code execution tool (Claude API)

Anthropic code execution tool (Claude API) is a model-provider built-in tool from Anthropic, read from its own pages on October 18, 2026. Isolation: Linux-based container, isolated from host and other containers. Status: GA (inferred). 1 price row, each in Anthropic code execution tool (Claude API)'s own unit.

Vendor: Anthropic. Docs: platform.claude.com. Compare every agent sandbox

Price rows
1
Vendor claims
0
Not stated
4
Verified quotes
14

Pricing

In the provider's own unit, verbatim. Nothing is converted; the directory compares a price only with others in the same unit.

Anthropic code execution tool (Claude API) prices, each in the provider's own unit
PriceUnit, as statedQuote and sourceNotes
$0.05per hour per container (beyond free hours)Directory block: Per hour per container
“Additional usage beyond 1,550 hours is billed at $0.05 USD per hour, per container”
platform.claude.com

Execution time has a 5-minute minimum.

Free tier or credits

1,550 free hours per organization per month

“Each organization receives 1,550 free hours of usage per month”
platform.claude.com

Limits, lifecycle and isolation

Max session duration

Containers expire 30 days after creation

“Containers expire 30 days after creation.”
platform.claude.com
Idle timeout and auto-pause

Checkpointed after about 5 minutes of inactivity; restorable within 30 days

“After about 5 minutes of inactivity a container is checkpointed, and sending a request with its ID inside the 30-day window restores it.”
platform.claude.com
Persistence and snapshots

Container reuse across requests by passing container ID

“Each request runs in a new container unless you pass an earlier response's container ID back”
platform.claude.com
Isolation

Linux-based container, isolated from host and other containers

“Sandbox isolation: Full isolation from host system and other containers”
platform.claude.com
CPU and memory limits

1 CPU

“CPU: 1 CPU”
platform.claude.com

5 GiB RAM

“Memory: 5 GiB RAM”
platform.claude.com

5 GiB disk

“Disk space: 5 GiB workspace storage”
platform.claude.com
GPU
Not stated

Note: Not stated.

Egress controls

No internet access

“Internet access: Completely disabled for security”
platform.claude.com
SDKs and languages

Bash and file operations; Python 3.11 pre-installed

“The code execution tool allows Claude to run Bash commands and manipulate files”
platform.claude.com
Regions
Not stated

Note: Not stated in checked page.

Open source
Not stated

Note: Not applicable.

Self-host or BYOC
Not stated

Note: Not applicable.

Status

GA (inferred: no beta header required)inferred

“None of the three tool versions requires an anthropic-beta header.”
Status inferred from - platform.claude.com

Other facts

Research notes

Pricing scope
A separate free-usage condition tied to other Anthropic tools exists on the page; it is not recorded here.

FAQ

How much does Anthropic code execution tool (Claude API) cost?

$0.05 per hour per container (beyond free hours). Prices are in the provider's own units as of October 18, 2026. Free tier: 1,550 free hours per organization per month.

What isolation does Anthropic code execution tool (Claude API) use?

Linux-based container, isolated from host and other containers.

How long can a session run on Anthropic code execution tool (Claude API)?

Containers expire 30 days after creation. Idle behavior: Checkpointed after about 5 minutes of inactivity; restorable within 30 days.

Does Anthropic code execution tool (Claude API) restrict outbound network access?

No internet access.

Sources

Last verified from each provider's own docs, pricing pages and repositories; every quote was string-matched against the page that day. Not a benchmark: prices are in the provider's own unit and change without notice, so check the linked source before you commit.

Newsletter

Know when agent infrastructure changes

One email per week. New model releases, agent tooling and what they mean for what you build.