environments changedmanaged-agents/environments
Nearest release: v2.1.336, published an hour 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+51added
Lines−0removed
From line
172
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits34to this page, all time
The whole hunk
from line 172, old and new numbered
/
from line 172
172172
173173 puts "Environment ID: #{environment.id}"
174174 ```
175
176 ```hcl Terraform
177 resource "anthropic_beta_environment" "python_dev" {
178 name = "python-dev"
179 config = {
180 cloud = {
181 networking = {
182 limited = {
183 allow_package_managers = true
184 }
185 }
186 }
187 }
188 }
189 ```
175190</CodeGroup>
176191
177192Use a unique, descriptive `name` (csharp, go: `Name`) so you can tell environments apart. This example uses `limited` [networking](https://platform.claude.com/docs/en/managed-agents/environments#networking) with package managers allowed, so the sandbox can reach the package registries and code hosts. To let it reach other hosts, add them to `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`).
from line 435
420435 }
421436 )
422437 ```
438
439 ```hcl Terraform
440 resource "anthropic_beta_environment" "data_analysis" {
441 name = "data-analysis"
442 config = {
443 cloud = {
444 packages = {
445 pip = ["pandas", "numpy", "scikit-learn"]
446 npm = ["express"]
447 }
448 networking = {
449 limited = {
450 allow_package_managers = true
451 }
452 }
453 }
454 }
455 }
456 ```
423457</CodeGroup>
424458
425459Supported package managers:
from line 638
604638 }
605639 }
606640 )
641 ```
642
643 ```hcl Terraform
644 resource "anthropic_beta_environment" "api_access" {
645 name = "api-access"
646 config = {
647 cloud = {
648 networking = {
649 limited = {
650 allowed_hosts = ["api.example.com"]
651 allow_mcp_servers = true
652 allow_package_managers = true
653 }
654 }
655 }
656 }
657 }
607658 ```
608659</CodeGroup>
609660
No line in this hunk matches that.