quickstart changedmanaged-agents/quickstart
Nearest release: v2.1.286, published 2 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+22added
Lines−11removed
From line
304
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits15to this page, all time
The whole hunk
from line 304, old and new numbered
/
from line 304
304304 import com.anthropic.models.beta.agents.BetaManagedAgentsAgentToolset20260401Params;
305305 import com.anthropic.models.beta.agents.BetaManagedAgentsModel;
306306 import com.anthropic.models.beta.environments.BetaCloudConfigParams;
307 import com.anthropic.models.beta.environments.BetaUnrestrictedNetwork;
307 import com.anthropic.models.beta.environments.BetaLimitedNetworkParams;
308308 import com.anthropic.models.beta.environments.EnvironmentCreateParams;
309309 import com.anthropic.models.beta.sessions.SessionCreateParams;
310310 import com.anthropic.models.beta.sessions.events.BetaManagedAgentsStreamSessionEvents;
from line 374
374374 </Step>
375375
376376 <Step title="Create an environment">
377 An environment defines the sandbox where your agent runs.
377 An environment defines the sandbox where your agent runs. This one uses `limited` [networking](https://platform.claude.com/docs/en/managed-agents/environments#networking) with package managers allowed, so code running in the sandbox can reach public [package registries and code hosts](https://platform.claude.com/docs/en/managed-agents/environments#package-manager-hosts) and no other sites. Web search and web fetch run outside the sandbox and are not affected.
378378
379379 <CodeGroup defaultLanguage="CLI">
380380 <CodeGroupItem>
from line 390
390390 "name": "quickstart-env",
391391 "config": {
392392 "type": "cloud",
393 "networking": {"type": "unrestricted"}
393 "networking": {"type": "limited", "allow_package_managers": true}
394394 }
395395 }
396396 EOF
from line 416
416416 config:
417417 type: cloud
418418 networking:
419 type: unrestricted
419 type: limited
420 allow_package_managers: true
420421 ```
421422 </File>
422423
from line 430
429430 name="quickstart-env",
430431 config={
431432 "type": "cloud",
432 "networking": {"type": "unrestricted"},
433 "networking": {"type": "limited", "allow_package_managers": True},
433434 },
434435 )
435436
from line 446
445446 name: "quickstart-env",
446447 config: {
447448 type: "cloud",
448 networking: { type: "unrestricted" },
449 networking: { type: "limited", allow_package_managers: true },
449450 },
450451 });
451452
from line 461
460461 var environment = await client.Beta.Environments.Create(new()
461462 {
462463 Name = "quickstart-env",
463 Config = new BetaCloudConfigParams { Networking = new BetaUnrestrictedNetwork() },
464 Config = new BetaCloudConfigParams
465 {
466 Networking = new BetaLimitedNetworkParams { AllowPackageManagers = true },
467 },
464468 });
465469
466470 Console.WriteLine($"Environment ID: {environment.ID}");
from line 480
476480 Config: anthropic.BetaEnvironmentNewParamsConfigUnion{
477481 OfCloud: &anthropic.BetaCloudConfigParams{
478482 Networking: anthropic.BetaCloudConfigParamsNetworkingUnion{
479 OfUnrestricted: &anthropic.BetaUnrestrictedNetworkParam{},
483 OfLimited: &anthropic.BetaLimitedNetworkParams{
484 AllowPackageManagers: anthropic.Bool(true),
485 },
480486 },
481487 },
482488 },
from line 502
496502 var environment = client.beta().environments().create(EnvironmentCreateParams.builder()
497503 .name("quickstart-env")
498504 .config(BetaCloudConfigParams.builder()
499 .networking(BetaUnrestrictedNetwork.builder().build())
505 .networking(BetaLimitedNetworkParams.builder()
506 .allowPackageManagers(true)
507 .build())
500508 .build())
501509 .build());
502510
from line 518
510518 ```php PHP
511519 $environment = $client->beta->environments->create(
512520 name: 'quickstart-env',
513 config: ['type' => 'cloud', 'networking' => ['type' => 'unrestricted']],
521 config: [
522 'type' => 'cloud',
523 'networking' => ['type' => 'limited', 'allow_package_managers' => true],
524 ],
514525 );
515526
516527 echo "Environment ID: {$environment->id}\n";
from line 534
523534 ```ruby Ruby
524535 environment = client.beta.environments.create(
525536 name: "quickstart-env",
526 config: {type: "cloud", networking: {type: "unrestricted"}}
537 config: {type: "cloud", networking: {type: "limited", allow_package_managers: true}}
527538 )
528539
529540 puts "Environment ID: #{environment.id}"
No line in this hunk matches that.