Skip to main content
Use environment-resource, env-resource or er with a Volcengine account to manage a standalone EnvironmentResource for an agentkit or ark target. Create from a JSON or YAML specification and update with a patch. Supply the Ark Environment Key through an environment variable. Read the revision with show before updating. On conflict, reconcile against the latest state. Reuse the client token when retrying the same uncertain request.
Creation provisions cloud resources and may incur charges. For Ark, omitting role_name allows the CLI to select or create a runtime role. Deletion reclaims the resource and retains a deletion record.
For an Ark target, put its environment ID and service base URL in resource.yaml and supply the key in the ANTHROPIC_ENVIRONMENT_KEY environment variable.
The following patch.yaml changes only runtime capacity. Use the resource ID and revision returned by your environment.

environment-resource create

environment-resource list

environment-resource show

agentkit environment-resource show <resource-id>

environment-resource update

agentkit environment-resource update <resource-id>

environment-resource delete

agentkit environment-resource delete <resource-id>
Last modified on November 30, 2026