Skip to main content
Manage control-plane resources with Volcengine account credentials. Session and event requests use the endpoint and Environment Key. Use —workspace-id to select a workspace and —config to select project configuration.
Provisioning and model calls can incur charges. Protect the config and Environment Key. Cleanup retains the endpoint, IAM role and PG session store by default. Adding —delete-session-store deletes a workflow-owned store and its data.
Run config init first, then fill in the account and model key name in the printed YAML file. From the project root, create the resources in sequence. Each successful create records its ID and prints the next command. A configured existing PG store is reused. runtime-template is a compatibility alias for runtime.
For declarative resources, run validate and review the plan with apply —dry-run. Applying changes writes live resources and maintains a lockfile. With —prune, tracked resources removed locally may be archived or deleted.

harness-infra config init

Create a shared YAML configuration in the current project.

harness-infra cleanup

Clean up resources created by the current workflow.

harness-infra apply

Compare declarations with live resources and apply the changes. agentkit harness-infra apply [paths...]

harness-infra validate

Validate resource declarations and references before applying them. agentkit harness-infra validate [paths...]

harness-infra endpoint create

Create the account endpoint using an existing API gateway ID.

harness-infra endpoint list

List endpoints available to the account.

harness-infra environment-resource create

Create the resource using the active configuration or a request file.

harness-infra environment-resource list

List matching resources, one page at a time.

harness-infra environment-resource show

Read the specified resource and its state. agentkit harness-infra environment-resource show <resource-id>

harness-infra environment-resource update

Apply the supplied changes to the resource. agentkit harness-infra environment-resource update <resource-id>

harness-infra environment-resource delete

Delete the specified resource. agentkit harness-infra environment-resource delete <resource-id>

harness-infra harness create

Create the resource using the active configuration or a request file.

harness-infra harness show

Read the specified resource and its state. agentkit harness-infra harness show <harness-id>

harness-infra harness list

List matching resources, one page at a time.

harness-infra harness update

Apply the supplied changes to the resource. agentkit harness-infra harness update <harness-id>

harness-infra harness archive

Archive the specified resource. agentkit harness-infra harness archive <harness-id>

harness-infra harness versions

List the saved versions. agentkit harness-infra harness versions <harness-id>

harness-infra runtime create

Create a runtime and return its runtime ID.

harness-infra runtime show

Read the specified resource and its state. agentkit harness-infra runtime show <runtime-id>

harness-infra runtime delete

Delete the specified resource. agentkit harness-infra runtime delete <runtime-id>

harness-infra session-store create

Create a PG session store or validate and reuse the configured ID.

harness-infra session-store show

Read the specified resource and its state. agentkit harness-infra session-store show <session-store-id>

harness-infra session-store list

List matching resources, one page at a time.

harness-infra session-store delete

Permanently delete the specified store and its managed database. agentkit harness-infra session-store delete <session-store-id>

harness-infra api-key create

Issue an environment key. In file mode, use —key-output-file to save the value returned at creation.

harness-infra api-key show

Read the specified resource and its state. agentkit harness-infra api-key show <api-key-id>

harness-infra api-key list

List matching resources, one page at a time.

harness-infra api-key delete

Delete the specified resource. agentkit harness-infra api-key delete <api-key-id>
In shared configuration, set harness.agent_loop to dsh to select that execution loop. To reuse a PG store, set session_store.id and check that it is Ready before creating the runtime.
Last modified on November 30, 2026