pydo.harness

Generated on 6 Nov 2026 from pydo version v0.45.0

DigitalOcean Harness Runtime API under /v2/agents.

An environment is a reusable configuration that defines what an agent needs to do work; starting a session from an environment provisions an isolated sandbox. Define an environment with a YAML environment spec, or save it as an Environment Config and create sessions from {name, config_id}.

Environment Configs (/v2/agents/configs) are immutable team-scoped configurations. Soft-delete releases the active name while keeping config_id resolvable for existing sessions; clone copies a sanitized environment under a new name (credentials are never copied).

Checkpoints capture live sandbox machine state for fork and in-place rollback. Templates (/v2/agents/templates) manage team custom sandbox templates and their build history.

Triggers (/v2/agents/triggers) fire an agent run on a webhook delivery or cron schedule, each firing recorded as an execution. The session event feed (GET /v2/agents/sessions/{session_id}/events) is a Server-Sent Events stream, and port-forward (GET /v2/agents/sessions/{session_id}/port-forward/{port}) opens a WebSocket tunnel to a guest port.

POST /v2/agents/sessions/{session_id}/cancel stops the turn in flight. GET /v2/agents/image-messages lists sandbox-image notices on the team’s sessions and checkpoints. POST /v2/agents/auth/{provider} starts the interactive provider login a session uses; github is the provider served today. Connections for that login are under /v2/agents/auth/{provider}/connections.

Persistent workspaces (/v2/agents/workspaces) are in public preview and are described under Harness Runtime Workspaces [Public Preview].

pydo.harness.cancel_session_turn()

Cancel the agent turn in flight.

pydo.harness.cancel_session_workspace_transfer()

Cancel a staged workspace transfer.

pydo.harness.cancel_trigger_execution()

CancelExecution ends a running execution and frees the trigger’s in-flight slot.

pydo.harness.commit_session_workspace_transfer()

Finalize a staged upload.

pydo.harness.create_config_clone()

Clone an Environment Config under a new name.

pydo.harness.create_config()

Create an Environment Config (environment spec + optional Insights opt-in).

pydo.harness.create_provider_connect()

Start an interactive provider login for the team.

pydo.harness.create_provider_connection()

Create a provider connection for one actor.

pydo.harness.create_session_checkpoint()

CreateCheckpoint captures the session’s live sandbox state as a durable checkpoint.

pydo.harness.create_session_fork()

ForkSession creates child sessions from a checkpoint of this session.

pydo.harness.create_session_input()

SendInput delivers a user chat message into the session.

pydo.harness.create_session_workspace_part_upload_urls()

Mint presigned PUT URLs for one or more multipart upload parts.

pydo.harness.create_session_workspace_transfer()

Start a staged (large-file) workspace transfer.

pydo.harness.create_session_workspace_upload()

Upload a file or tar archive into the session’s sandbox workspace.

pydo.harness.create_session()

CreateSession provisions a sandbox and starts a Harness Runtime session.

pydo.harness.create_template()

CreateTemplate creates a team custom template and kicks a build.

pydo.harness.create_trigger()

CreateTrigger creates a webhook or cron trigger.

pydo.harness.create_workspace()

Create a persistent workspace.

pydo.harness.delete_config()

Soft-delete an Environment Config.

pydo.harness.delete_provider_connection()

Revoke a provider connection.

pydo.harness.delete_session_checkpoint()

DeleteCheckpoint removes a checkpoint and its underlying machine-state capture.

pydo.harness.delete_session()

DestroySession tears down the sandbox and marks the session DESTROYED.

pydo.harness.delete_template()

DeleteTemplate deletes a team custom template.

pydo.harness.delete_trigger()

DeleteTrigger soft-deletes a trigger.

pydo.harness.delete_workspace()

Delete a persistent workspace.

pydo.harness.get_checkpoint_image_messages()

Read sandbox-image notices for one checkpoint.

pydo.harness.get_config()

Get an active Environment Config and its environment spec.

pydo.harness.get_provider_connect()

Check whether a provider login has finished.

pydo.harness.get_provider_connection()

Read one provider connection.

pydo.harness.get_session_checkpoint()

GetCheckpoint returns the current snapshot of a checkpoint.

pydo.harness.get_session_events()

StreamSessionEvents opens the session’s Server-Sent Events feed.

pydo.harness.get_session_image_messages()

Read sandbox-image notices for one session.

pydo.harness.get_session_ingress()

GetIngressURL returns the public HTTPS URL of the session’s OpenHands Agent Server.

pydo.harness.get_session_port_forward()

PortForwardSession opens a WebSocket tunnel to a guest TCP port.

pydo.harness.get_session_workspace_download()

Download a file or tar archive from the session’s sandbox workspace.

pydo.harness.get_session_workspace_transfer()

Get the status of a staged workspace transfer.

pydo.harness.get_session()

GetSession returns the current snapshot of a session.

pydo.harness.get_template_build()

GetTemplateBuild returns a single template build.

pydo.harness.get_template()

GetTemplate returns a team custom template by public id.

pydo.harness.get_trigger_by_session()

GetTriggerBySession reverse-looks-up the trigger that produced or binds a session.

pydo.harness.get_trigger_execution()

GetTriggerExecution returns a single execution, including its payload.

pydo.harness.get_trigger()

GetTrigger returns a single trigger by id.

pydo.harness.get_workspace()

Get a persistent workspace.

pydo.harness.list_config_sessions()

List the sessions created from one Environment Config.

pydo.harness.list_configs()

List active Environment Configs for the caller’s team.

pydo.harness.list_image_messages()

List sandbox-image notices for the team.

pydo.harness.list_provider_connections()

List the team’s connections for a provider.

pydo.harness.list_reusable_sessions()

ListReusableSessions lists the team’s PAUSED sessions for the reuse picker.

pydo.harness.list_session_checkpoints()

ListCheckpoints enumerates a session’s checkpoints, newest first.

pydo.harness.list_session_sandbox_sizes()

ListSandboxSizes returns the customer-selectable sandbox (microVM) size catalog.

pydo.harness.list_sessions()

ListSessions enumerates sessions for the caller’s tenant.

pydo.harness.list_template_builds()

ListTemplateBuilds returns build history for a template.

pydo.harness.list_templates()

ListTeamTemplates returns the caller’s team custom templates.

pydo.harness.list_trigger_executions()

ListTriggerExecutions returns a trigger’s execution history.

pydo.harness.list_triggers()

ListTriggers enumerates the calling team’s triggers.

pydo.harness.list_webhook_providers()

ListWebhookProviders lists supported webhook providers for the create-trigger UI.

pydo.harness.list_workspaces()

List the team’s persistent workspaces.

pydo.harness.post_provider_connection_reconnect()

Start a fresh login for an existing connection.

pydo.harness.post_session_hitl()

ResolveHITL records the user’s decision on a pending HITL request.

pydo.harness.post_session_pause()

PauseSession freezes the session’s microVM sandbox.

pydo.harness.post_session_resume()

ResumeSession explicitly thaws a PAUSED session’s microVM sandbox.

pydo.harness.post_session_sandbox_exec()

ExecInSandbox runs a one-shot command inside the session’s sandbox.

pydo.harness.post_trigger_rotate_secret()

RotateTriggerSecret issues a new webhook secret.

pydo.harness.post_trigger_webhook()

ReceiveTriggerWebhook accepts a signed delivery from an external system.

pydo.harness.revert_session_checkpoint()

RollbackToCheckpoint rewinds a session to a checkpoint.

pydo.harness.update_session()

PatchSession updates session-scoped settings on an existing session.

pydo.harness.update_template()

UpdateTemplate updates a team template’s source and kicks a new build.

pydo.harness.update_trigger()

UpdateTrigger updates, pauses, or re-enables a trigger.

pydo.harness.validate_session_policy()

ValidatePolicy checks a manifest’s tool-permission policy against the agent’s capabilities without creating a session.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.