Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

environments changedmanaged-agents/environments

Nearest release: v2.1.301, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+23added
Lines−29removed
From line 12 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits20to this page, all time

The whole hunk

from line 12, old and new numbered
/
lines
from line 12
1212 
1313Environments define the sandbox configuration where your agent runs. You create an environment once, then reference its ID each time you start a session. Multiple sessions can share the same environment, but each session gets its own isolated sandbox (a fresh Linux container).
1414 
15This page covers `type: cloud` environments. To run sandboxes on your own infrastructure, see [Self-hosted sandboxes](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes).
15This page covers `type: cloud` environments. To run sandboxes on your own infrastructure, see [Self-hosted sandboxes](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes). To choose between the two, see [Choosing an agent environment](https://platform.claude.com/docs/en/managed-agents/choosing-an-environment).
1616 
1717## Create an environment
1818 
from line 23
2323 -H "anthropic-version: 2023-06-01" \
2424 -H "anthropic-beta: managed-agents-2026-04-01" \
2525 -H "content-type: application/json" \
26 --data @- <<'EOF'
27 {
28 "name": "python-dev",
29 "config": {
30 "type": "cloud",
31 "networking": {"type": "limited", "allow_package_managers": true}
32 }
33 }
34 EOF
26 --data '{
27 "name": "python-dev",
28 "config": {
29 "type": "cloud",
30 "networking": {"type": "limited", "allow_package_managers": true}
31 }
32 }'
3533 ```
3634 
3735 <CodeGroupItem>
from line 161
163161 -H "anthropic-version: 2023-06-01" \
164162 -H "anthropic-beta: managed-agents-2026-04-01" \
165163 -H "content-type: application/json" \
166 --data @- <<EOF
167 {
168 "agent": "$AGENT_ID",
169 "environment_id": "$ENVIRONMENT_ID"
170 }
171 EOF
164 --data '{
165 "agent": "'"$AGENT_ID"'",
166 "environment_id": "'"$ENVIRONMENT_ID"'"
167 }'
172168 ```
173169 
174170 ```bash CLI
from line 240
244240 -H "anthropic-version: 2023-06-01" \
245241 -H "anthropic-beta: managed-agents-2026-04-01" \
246242 -H "content-type: application/json" \
247 --data @- <<'EOF'
248 {
249 "name": "data-analysis",
250 "config": {
251 "type": "cloud",
252 "packages": {
253 "pip": ["pandas", "numpy", "scikit-learn"],
254 "npm": ["express"]
255 },
256 "networking": {"type": "limited", "allow_package_managers": true}
257 }
258 }
259 EOF
243 --data '{
244 "name": "data-analysis",
245 "config": {
246 "type": "cloud",
247 "packages": {
248 "pip": ["pandas", "numpy", "scikit-learn"],
249 "npm": ["express"]
250 },
251 "networking": {"type": "limited", "allow_package_managers": true}
252 }
253 }'
260254 ```
261255 
262256 <CodeGroupItem>
Feedback