# Configure and manage Cloud Harnesses

You can configure networking, environment variables, resources, and storage for your Cloud Harness. You can also pause, resume, and delete Cloud Harnesses as needed. All configuration can be updated at any time without losing your files.

## Configure networking

You can expose applications running in your Cloud Harness by adding public or private ports. You can also attach domains to publicly exposed ports.

To configure a port:

1. Open your Cloud Harness overview.

2. Click the **Networking** icon in the right sidebar.

3. Click **Add port**.

4. Enter the port and select the protocol.

5. Enable **Publicly expose** if you want the port to be accessible from the internet.

6. Click **Save changes**.

You can add multiple ports to a Cloud Harness.

![Configure Cloud Harness networking](https://assets.northflank.com/documentation/v1/application/ai-agents/harnesses/configure-harness.png)

## Configure environment variables

Set runtime variables and secret files that your Cloud Harness can access.

1. Open your Cloud Harness overview.

2. Click the **Environment variables** icon in the right sidebar.

3. Click **Edit**.

4. Add or update your variables or secret files.

5. Click **Update & restart**.

Learn more about [runtime variables](https://northflank.com/docs/v1/application/secure/inject-secrets#runtime-variables) and [secret files](https://northflank.com/docs/v1/application/secure/upload-secret-files).

![Configure Cloud Harness environment variables](https://assets.northflank.com/documentation/v1/application/ai-agents/harnesses/env-harness.png)

## Update Cloud Harness configuration

You can update the configuration of an existing Cloud Harness, including its authentication, runtime image, resources, and workspace storage.

To update your Cloud Harness:

1. Open the Cloud Harness overview.

2. Click the **Settings** icon in the right sidebar.

3. Update the configuration you want to change.

4. Click **Update options**.

![Update Cloud Harness configuration](https://assets.northflank.com/documentation/v1/application/ai-agents/harnesses/update-harness.png)

## Pause and resume a Cloud Harness

You can pause a Cloud Harness when you are not using it to scale it to zero. This stops running terminal sessions and processes while preserving files in the workspace.

To pause a Cloud Harness:

1. Open the Cloud Harness overview.

2. Click the **Pause harness** icon in the top-right corner.

3. Confirm that the Cloud Harness has been paused.

To resume a Cloud Harness:

1. Open the Cloud Harness overview.

2. Click the **Resume harness** icon in the top-right corner.

3. Wait for the Cloud Harness to start.

Your files in `/home/harness` are preserved when the Cloud Harness is paused and resumed.

## Monitor Cloud Harness resources

You can monitor the resource usage of your Cloud Harness from the **Observe** section.

To view your Cloud Harness metrics:

1. Open the Cloud Harness overview.

2. Click the **Observe** icon in the right sidebar.

You can view metrics such as CPU and memory usage to monitor your Cloud Harness.

Learn more about [observability on Northflank](https://northflank.com/docs/v1/application/observe/observability-on-northflank).

![Monitor Cloud Harness resources](https://assets.northflank.com/documentation/v1/application/ai-agents/harnesses/monitor-harness.png)

## Delete a Cloud Harness

You can permanently delete a Cloud Harness and its associated workspace.

> [!warning] Deletion is permanent
> Deleting a Cloud Harness cannot be undone. Back up any files or data you want to keep before you delete it.

To delete a Cloud Harness:

1. Open the Cloud Harness overview.

2. Click the **three-dot** menu in the top-right corner.

3. Click **Delete harness**.

4. Confirm the deletion.

![Delete a Cloud Harness](https://assets.northflank.com/documentation/v1/application/ai-agents/harnesses/delete-harness.png)

> [!note] Questions?
> Reach out to the Northflank team at [[support@northflank.com](mailto:support@northflank.com)](mailto:support@northflank.com) or [book a demo](https://cal.com/team/northflank/northflank-demo?duration=30).

## Next steps

- [Get started with Agent skills: Give agents domain-specific knowledge about Northflank infrastructure and APIs.](/v1/application/ai-agents/agent-skills)
