Type Reference¶
The Runloop Python SDK uses TypeDict objects for configuration parameters to the various API calls. This page documents the TypeDict objects used throughout the SDK.
Blueprint Parameters¶
These TypeDicts define parameters for blueprint creation and listing.
- typeddict runloop_api_client.sdk._types.SDKBlueprintCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name of the container service.base_blueprint_id (
Optional[str]) – (Optional) ID of previously built blueprint to use as a base blueprint for this build.base_blueprint_name (
Optional[str]) – (Optional) Name of previously built blueprint to use as a base blueprint for this build. When set, this will load the latest successfully built Blueprint with the given name. Only one of (base_blueprint_id, base_blueprint_name) should be specified.build_args (
Optional[Dict[str,str]]) – (Optional) Arbitrary Docker build args to pass during build.build_context (
Optional[BuildContext]) – A build context backed by an Object.code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Blueprint.dockerfile (
Optional[str]) – Dockerfile contents to be used to build the Blueprint.file_mounts (
Optional[Dict[str,str]]) – (Optional) Map of paths and file contents to write before setup.launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.metadata (
Optional[Dict[str,str]]) – (Optional) User defined metadata for the Blueprint.network_policy_id (
Optional[str]) – (Optional) ID of the network policy to apply during blueprint build. This restricts network access during the build process. This does not affect devboxes created from this blueprint; if you want devboxes created from this blueprint to inherit the network policy, set the network_policy_id on the blueprint launch parameters.secrets (
Optional[Dict[str,str]]) – (Optional) Map of mount IDs/environment variable names to secret names. Secrets will be available to commands during the build. Secrets are NOT stored in the blueprint image. Example: {“DB_PASS”: “DATABASE_PASSWORD”} makes the secret ‘DATABASE_PASSWORD’ available as environment variable ‘DB_PASS’.services (
Optional[Iterable[Service]]) – (Optional) List of containerized services to include in the Blueprint. These services will be pre-pulled during the build phase for optimized startup performance.system_setup_commands (
Optional[Sequence[str]]) – A list of commands to run to set up your system.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
- typeddict runloop_api_client.sdk._types.SDKBlueprintListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by namestarting_after (
str) – Load the next page of data starting after the item with the given ID.status (
str) – Filter by build status (queued, provisioning, building, failed, build_complete)extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
Devbox Parameters¶
These TypeDicts define parameters for devbox creation, listing, and operations.
Creation Parameters¶
- typeddict runloop_api_client.sdk._types.SDKDevboxCreateParams[source]¶
-
- Optional Keys:
code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Devbox. Use mounts instead.entrypoint (
Optional[str]) – (Optional) When specified, the Devbox will run this script as its main executable. The devbox lifecycle will be bound to entrypoint, shutting down when the process is complete.environment_variables (
Optional[Dict[str,str]]) – (Optional) Environment variables used to configure your Devbox.file_mounts (
Optional[Dict[str,str]]) – Map of paths and file contents to write before setup. Use mounts instead.gateways (
Optional[Dict[str,Gateways]]) – (Optional) Agent gateway specifications for credential proxying. Map key is the environment variable prefix (e.g., ‘GWS_ANTHROPIC’). The agent gateway will proxy requests to external APIs using the specified credential without exposing the real API key. Example: {‘GWS_ANTHROPIC’: {‘gateway’: ‘anthropic’, ‘secret’: ‘my_claude_key’}}launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.mcp (
Optional[Dict[str,Mcp]]) – [Beta] (Optional) MCP specifications for MCP server access. Map key is the environment variable name for the MCP token envelope. Each spec links an MCP config to a secret. The devbox will also receive RL_MCP_URL for the MCP hub endpoint. Example: {‘MCP_SECRET’: {‘mcp_config’: ‘github-readonly’, ‘secret’: ‘MY_GITHUB_TOKEN’}}metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the devbox for organization.mounts (
Optional[Iterable[Union[ObjectMount,AgentMount,CodeMount,FileMount,BrokerMount]]]) – A list of mounts to be included in the Devbox.name (
Optional[str]) – (Optional) A user specified name to give the Devbox.secrets (
Optional[Dict[str,str]]) – (Optional) Map of environment variable names to secret names. The secret values will be securely injected as environment variables in the Devbox. Example: {“DB_PASS”: “DATABASE_PASSWORD”} sets environment variable ‘DB_PASS’ to the value of secret ‘DATABASE_PASSWORD’.blueprint_id (
Optional[str]) – Blueprint ID to use for the Devbox. If none set, the Devbox will be created with the default Runloop Devbox image. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.blueprint_name (
Optional[str]) – Name of Blueprint to use for the Devbox. When set, this will load the latest successfully built Blueprint with the given name. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.snapshot_id (
Optional[str]) – Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.tunnel (
Optional[Tunnel]) – Configuration for creating a V2 tunnel. When specified at Devbox creation, a tunnel will be automatically provisioned.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
- typeddict runloop_api_client.sdk._types.SDKDevboxCreateFromImageParams[source]¶
-
- Optional Keys:
code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Devbox. Use mounts instead.entrypoint (
Optional[str]) – (Optional) When specified, the Devbox will run this script as its main executable. The devbox lifecycle will be bound to entrypoint, shutting down when the process is complete.environment_variables (
Optional[Dict[str,str]]) – (Optional) Environment variables used to configure your Devbox.file_mounts (
Optional[Dict[str,str]]) – Map of paths and file contents to write before setup. Use mounts instead.gateways (
Optional[Dict[str,Gateways]]) – (Optional) Agent gateway specifications for credential proxying. Map key is the environment variable prefix (e.g., ‘GWS_ANTHROPIC’). The agent gateway will proxy requests to external APIs using the specified credential without exposing the real API key. Example: {‘GWS_ANTHROPIC’: {‘gateway’: ‘anthropic’, ‘secret’: ‘my_claude_key’}}launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.mcp (
Optional[Dict[str,Mcp]]) – [Beta] (Optional) MCP specifications for MCP server access. Map key is the environment variable name for the MCP token envelope. Each spec links an MCP config to a secret. The devbox will also receive RL_MCP_URL for the MCP hub endpoint. Example: {‘MCP_SECRET’: {‘mcp_config’: ‘github-readonly’, ‘secret’: ‘MY_GITHUB_TOKEN’}}metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the devbox for organization.mounts (
Optional[Iterable[Union[ObjectMount,AgentMount,CodeMount,FileMount,BrokerMount]]]) – A list of mounts to be included in the Devbox.name (
Optional[str]) – (Optional) A user specified name to give the Devbox.secrets (
Optional[Dict[str,str]]) – (Optional) Map of environment variable names to secret names. The secret values will be securely injected as environment variables in the Devbox. Example: {“DB_PASS”: “DATABASE_PASSWORD”} sets environment variable ‘DB_PASS’ to the value of secret ‘DATABASE_PASSWORD’.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
Listing Parameters¶
- typeddict runloop_api_client.sdk._types.SDKDevboxListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.starting_after (
str) – Load the next page of data starting after the item with the given ID.status (
Literal['scheduled','queued','provisioning','initializing','running','suspending','suspended','resuming','failure','shutdown']) – Filter by statusextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
Command Execution Parameters¶
- typeddict runloop_api_client.sdk._types.SDKDevboxExecuteParams[source]¶
-
- Optional Keys:
attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.stdout (
Optional[Callable[[str],None]]) – Callback invoked for each stdout log linestderr (
Optional[Callable[[str],None]]) – Callback invoked for each stderr log lineoutput (
Optional[Callable[[str],None]]) – Callback invoked for all log lines (both stdout and stderr)extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
- typeddict runloop_api_client.sdk._types.SDKDevboxExecuteAsyncParams[source]¶
-
- Optional Keys:
attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.stdout (
Optional[Callable[[str],None]]) – Callback invoked for each stdout log linestderr (
Optional[Callable[[str],None]]) – Callback invoked for each stderr log lineoutput (
Optional[Callable[[str],None]]) – Callback invoked for all log lines (both stdout and stderr)extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
File Operation Parameters¶
- typeddict runloop_api_client.sdk._types.SDKDevboxReadFileContentsParams[source]¶
-
- Optional Keys:
file_path (
Required[str]) – The path on the Devbox filesystem to read the file from. Path is relative to user home directory.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKDevboxWriteFileContentsParams[source]¶
-
- Optional Keys:
contents (
Required[str]) – The UTF-8 string contents to write to the file.file_path (
Required[str]) – The path to write the file to on the Devbox. Path is relative to user home directory.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKDevboxDownloadFileParams[source]¶
-
- Optional Keys:
path (
Required[str]) – The path on the Devbox filesystem to read the file from. Path is relative to user home directory.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKDevboxUploadFileParams[source]¶
-
- Optional Keys:
path (
Required[str]) – The path to write the file to on the Devbox. Path is relative to user home directory.file (
Union[IO[bytes],bytes,PathLike,Tuple[Optional[str],Union[IO[bytes],bytes,PathLike]],Tuple[Optional[str],Union[IO[bytes],bytes,PathLike],Optional[str]],Tuple[Optional[str],Union[IO[bytes],bytes,PathLike],Optional[str],Mapping[str,str]]])extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Network Tunnel Parameters¶
- typeddict runloop_api_client.sdk._types.SDKDevboxEnableTunnelParams[source]¶
-
- Optional Keys:
auth_mode (
Optional[Literal['open','authenticated']]) – Authentication mode for the tunnel. Defaults to open if omitted: the hostname is a public capability and does not require a tunnel bearer token.http_keep_alive (
Optional[bool]) – When true, HTTP traffic through the tunnel counts as activity for idle lifecycle policies, resetting the idle timer. Defaults to true if not specified.wake_on_http (
Optional[bool]) – When true, HTTP traffic to a suspended devbox will automatically trigger a resume. Defaults to false if not specified. Prefer lifecycle.resume_triggers.http on launch_parameters for new integrations. If both are set, lifecycle.resume_triggers.http takes precedence.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKDevboxRemoveTunnelParams[source]¶
-
- Optional Keys:
extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Snapshot Parameters¶
These TypeDicts define parameters for snapshot creation, listing, and updating.
- typeddict runloop_api_client.sdk._types.SDKDevboxSnapshotDiskParams[source]¶
-
- Optional Keys:
commit_message (
Optional[str]) – (Optional) Commit message associated with the snapshot (max 1000 characters)metadata (
Optional[Dict[str,str]]) – (Optional) Metadata used to describe the snapshotname (
Optional[str]) – (Optional) A user specified name to give the snapshotextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
- typeddict runloop_api_client.sdk._types.SDKDevboxSnapshotDiskAsyncParams[source]¶
-
- Optional Keys:
commit_message (
Optional[str]) – (Optional) Commit message associated with the snapshot (max 1000 characters)metadata (
Optional[Dict[str,str]]) – (Optional) Metadata used to describe the snapshotname (
Optional[str]) – (Optional) A user specified name to give the snapshotextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKDiskSnapshotListParams[source]¶
-
- Optional Keys:
devbox_id (
str) – Devbox ID to filter by.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.metadata_key (
str) – Filter snapshots by metadata key-value pair. Can be used multiple times for different keys.metadata_key_in (
str) – Filter snapshots by metadata key with multiple possible values (OR condition).source_blueprint_id (
str) – Source Blueprint ID to filter snapshots by.starting_after (
str) – Load the next page of data starting after the item with the given ID.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKDiskSnapshotUpdateParams[source]¶
-
- Optional Keys:
commit_message (
Optional[str]) – (Optional) Commit message associated with the snapshot (max 1000 characters)metadata (
Optional[Dict[str,str]]) – (Optional) Metadata used to describe the snapshotname (
Optional[str]) – (Optional) A user specified name to give the snapshotextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Storage Object Parameters¶
These TypeDicts define parameters for storage object creation, listing, and downloading.
- typeddict runloop_api_client.sdk._types.SDKObjectCreateParams[source]¶
-
- Optional Keys:
content_type (
Required[Literal['unspecified','text','binary','gzip','tar','tgz']]) – The content type of the Object.name (
Required[str]) – The name of the Object.metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the object for organization.ttl_ms (
Optional[int]) – Optional lifetime of the object in milliseconds, after which the object is automatically deleted. Time starts ticking after the object is created.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKObjectListParams[source]¶
-
- Optional Keys:
content_type (
Literal['unspecified','text','binary','gzip','tar','tgz']) – Filter storage objects by content type.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter storage objects by name (partial match supported).search (
str) – Search by object ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.state (
Literal['UPLOADING','READ_ONLY','DELETED','ERROR']) – Filter storage objects by state.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKObjectDownloadParams[source]¶
-
- Optional Keys:
duration_seconds (
int) – Duration in seconds for the presigned URL validity (default: 3600).extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
Agent Parameters¶
These TypeDicts define parameters for agent creation and listing.
- typeddict runloop_api_client.sdk._types.SDKAgentCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name of the Agent.source (
Optional[AgentSource]) – Agent source configuration.version (
Optional[str]) – Optional version identifier for the Agent. For npm/pip sources this is typically a semver string (e.g. ‘2.0.65’). For git sources it can be a branch or tag. Semantics are user-defined for object sources.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKAgentListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.is_public (
bool) – Filter agents by public visibility.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter agents by name (partial match supported).search (
str) – Search by agent ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.version (
str) – Filter by version. Use ‘latest’ to get the most recently created agent.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
Axon Parameters¶
These TypeDicts define parameters for axon creation, listing, publishing, and SQL operations.
- typeddict runloop_api_client.sdk._types.SDKAxonCreateParams[source]¶
-
- Optional Keys:
metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the axon for organization.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKAxonListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by axon ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.metadata_key (
str) – Filter axons by metadata key-value pair. Can be used multiple times for different keys.metadata_key_in (
str) – Filter axons by metadata key with multiple possible values (OR condition).name (
str) – Filter by axon name (prefix match supported).search (
str) – Search by axon ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKAxonPublishParams[source]¶
-
- Optional Keys:
event_type (
Required[str]) – The event type (e.g. push, pull_request).origin (
Required[Literal['EXTERNAL_EVENT','AGENT_EVENT','USER_EVENT']]) – Event origin.payload (
Required[str]) – Event payload.source (
Required[str]) – The source of the event (e.g. github, slack).extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKAxonSqlQueryParams[source]¶
-
- Optional Keys:
sql (
Required[str]) – SQL query with ?-style positional placeholders.params (
Iterable[object]) – Positional parameter bindings for ? placeholders.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKAxonSqlBatchParams[source]¶
-
- Optional Keys:
statements (
Required[Iterable[SqlStatementParams]]) – The SQL statements to execute atomically within a transaction.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Network Policy Parameters¶
These TypeDicts define parameters for network policy creation, listing, and updating.
- typeddict runloop_api_client.sdk._types.SDKNetworkPolicyCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The human-readable name for the NetworkPolicy. Names are labels and may be reused.allow_agent_gateway (
Optional[bool]) – (Optional) If true, allows devbox egress to the agent gateway for credential proxying. Defaults to false.allow_all (
Optional[bool]) – (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false.allow_devbox_to_devbox (
Optional[bool]) – (Optional) If true, allows traffic between the account’s own devboxes via tunnels. Defaults to false. If allow_all is true, this is automatically set to true.allow_mcp_gateway (
Optional[bool]) – (Optional) If true, allows devbox egress to the MCP hub for MCP server access. Defaults to false.allow_runloop_mirrors (
Optional[bool]) – (Optional) If true, allows devbox egress to Runloop’s package/image registry mirrors. Defaults to false. Implicitly allowed when allow_all is true.allowed_cidrs (
Optional[Iterable[AllowedCidrParam]]) – (Optional) IPv4 CIDR-based allow list with optional port restrictions, additive with allowed_hostnames. Example: [{‘cidr’: ‘10.12.0.0/16’, ‘ports’: [{‘port’: 443}]}].allowed_hostnames (
Optional[Sequence[str]]) – (Optional) DNS-based allow list with wildcard support. Examples: [‘github.com’, ‘*.npmjs.org’].description (
Optional[str]) – Optional description for the NetworkPolicy.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKNetworkPolicyListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (partial match supported).search (
str) – Search by network policy ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKNetworkPolicyUpdateParams[source]¶
-
- Optional Keys:
allow_agent_gateway (
Optional[bool]) – If true, allows devbox egress to the agent gateway.allow_all (
Optional[bool]) – If true, all egress traffic is allowed (ALLOW_ALL policy).allow_devbox_to_devbox (
Optional[bool]) – If true, allows traffic between the account’s own devboxes via tunnels.allow_mcp_gateway (
Optional[bool]) – If true, allows devbox egress to the MCP hub.allow_runloop_mirrors (
Optional[bool]) – If true, allows devbox egress to Runloop’s package/image registry mirrors. Implicitly allowed when allow_all is true.allowed_cidrs (
Optional[Iterable[AllowedCidrParam]]) – Updated IPv4 CIDR-based allow list with optional port restrictions, additive with allowed_hostnames.allowed_hostnames (
Optional[Sequence[str]]) – Updated DNS-based allow list with wildcard support. Examples: [‘github.com’, ‘*.npmjs.org’].description (
Optional[str]) – Updated description for the NetworkPolicy.name (
Optional[str]) – Updated human-readable name for the NetworkPolicy.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
MCP Config Parameters¶
These TypeDicts define parameters for MCP (Model Context Protocol) configuration creation, listing, and updating.
- typeddict runloop_api_client.sdk._types.SDKMcpConfigCreateParams[source]¶
-
- Optional Keys:
allowed_tools (
Required[Sequence[str]]) – Glob patterns specifying which tools are allowed from this MCP server. Examples: [‘*’] for all tools, [‘github.search_*’, ‘github.get_*’] for specific patterns.endpoint (
Required[str]) – The target MCP server endpoint URL (e.g., ‘https://mcp.example.com’).name (
Required[str]) – The human-readable name for the McpConfig. Names are labels and may be reused. The first segment before ‘-’ is used as the service name for tool routing (e.g., ‘github-readonly’ uses ‘github’ as the service name).auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – Additional headers applied to upstream requests after the credential. At most 8 entries.description (
Optional[str]) – Optional description for this MCP configuration.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKMcpConfigListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (prefix match supported).search (
str) – Search by MCP config ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKMcpConfigUpdateParams[source]¶
-
- Optional Keys:
allowed_tools (
Optional[Sequence[str]]) – New glob patterns specifying which tools are allowed. Examples: [‘*’] for all tools, [‘github.search_*’] for specific patterns.auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – New list of additional headers. Replaces the existing list entirely; use an empty list to clear all custom headers. At most 8 entries.description (
Optional[str]) – New description for this MCP configuration.endpoint (
Optional[str]) – New target MCP server endpoint URL.name (
Optional[str]) – New name for the McpConfig. Names are labels and may be reused.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Gateway Config Parameters¶
These TypeDicts define parameters for gateway configuration creation, listing, and updating.
- typeddict runloop_api_client.sdk._types.SDKGatewayConfigCreateParams[source]¶
-
- Optional Keys:
auth_mechanism (
Required[AuthMechanism]) – How credentials should be applied to proxied requests. Specify the type (‘header’, ‘bearer’) and optional key field.endpoint (
Required[str]) – The target endpoint URL (e.g., ‘https://api.anthropic.com’).name (
Required[str]) – The human-readable name for the GatewayConfig. Names are labels and may be reused.custom_headers (
Optional[Iterable[CustomHeader]]) – Additional headers applied to proxied requests after the auth mechanism. At most 8 entries.description (
Optional[str]) – Optional description for this gateway configuration.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
- typeddict runloop_api_client.sdk._types.SDKGatewayConfigListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (partial match supported).search (
str) – Search by gateway config ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.SDKGatewayConfigUpdateParams[source]¶
-
- Optional Keys:
auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – New list of additional headers. Replaces the existing list entirely; use an empty list to clear all custom headers. At most 8 entries.description (
Optional[str]) – New description for this gateway configuration.endpoint (
Optional[str]) – New target endpoint URL (e.g., ‘https://api.anthropic.com’).name (
Optional[str]) – New name for the GatewayConfig. Names are labels and may be reused.extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this request
Core Request Options¶
These TypeDicts define options for timeouts, idempotency, polling, and other low-level request configuration. All other TypeDicts in the SDK extend from one of these core types.
- typeddict runloop_api_client.sdk._types.BaseRequestOptions[source]¶
-
- Optional Keys:
extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.LongRequestOptions[source]¶
-
- Optional Keys:
idempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- class runloop_api_client.sdk._types.PollingConfig(interval_seconds=1.0, max_attempts=120, timeout_seconds=None)[source]¶
Configuration for polling behavior
- typeddict runloop_api_client.sdk._types.PollingRequestOptions[source]¶
-
- Optional Keys:
polling_config (
Optional[PollingConfig]) – Configuration for polling behaviorextra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in seconds
- typeddict runloop_api_client.sdk._types.LongPollingRequestOptions[source]¶
-
- Optional Keys:
extra_headers (
Optional[Mapping[str,Union[str,Omit]]]) – Send extra headersextra_query (
Optional[Mapping[str,object]]) – Add additional query parameters to the requestextra_body (
Optional[object]) – Add additional JSON properties to the requesttimeout (
Union[float,Timeout,NotGiven,None]) – Override the client-level default timeout for this request, in secondsidempotency_key (
Optional[str]) – Specify a custom idempotency key for this requestpolling_config (
Optional[PollingConfig]) – Configuration for polling behavior
Base API Type Reference¶
- class runloop_api_client.types.account_view.AccountView(**data)[source]¶
Account information.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
account_status:
Literal['ACCOUNT_STATUS_INVALID','ACCOUNT_STATUS_ONBOARDING','ACCOUNT_STATUS_ENABLED','ACCOUNT_STATUS_DISABLED_BY_ADMIN','ACCOUNT_STATUS_DISABLED_QUOTA_REACHED','ACCOUNT_STATUS_TRIAL_CANCELLED','ACCOUNT_STATUS_STRIPE_PENDING_RESOURCES','UNRECOGNIZED']¶ The account status.
-
tier:
Literal['ACCOUNT_TIER_INVALID','ACCOUNT_TIER_BASIC','ACCOUNT_TIER_PRO','ACCOUNT_TIER_ENTERPRISE','ACCOUNT_TIER_TRIAL','UNRECOGNIZED']¶ The account tier.
- class runloop_api_client.types.account_view.Billing(**data)[source]¶
The account billing information.
-
account_billing_type:
Literal['STRIPE','AWS_MARKETPLACE','STRIPE_PROJECTS','UNRECOGNIZED']¶ The account billing type.
-
aws:
Optional[BillingAws]¶ AWS Marketplace billing information.
-
stripe:
Optional[BillingStripe]¶ Stripe billing information.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
account_billing_type:
- class runloop_api_client.types.account_view.BillingAws(**data)[source]¶
AWS Marketplace billing information.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.account_view.BillingStripe(**data)[source]¶
Stripe billing information.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.agent_create_params.AgentCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name of the Agent.source (
Optional[AgentSource]) – Agent source configuration.version (
Optional[str]) – Optional version identifier for the Agent. For npm/pip sources this is typically a semver string (e.g. ‘2.0.65’). For git sources it can be a branch or tag. Semantics are user-defined for object sources.
- class runloop_api_client.types.agent_devbox_counts_view.AgentDevboxCountsView(**data)[source]¶
Devbox counts grouped by agent name.
Used to efficiently fetch devbox counts for multiple agents in a single request.
-
counts:
Dict[str,int]¶ Map of agent name to devbox count.
Each key is an agent name, and the value is the count of devboxes associated with that agent.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
counts:
- typeddict runloop_api_client.types.agent_list_params.AgentListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.is_public (
bool) – Filter agents by public visibility.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter agents by name (partial match supported).search (
str) – Search by agent ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.version (
str) – Filter by version. Use ‘latest’ to get the most recently created agent.
- typeddict runloop_api_client.types.agent_list_public_params.AgentListPublicParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter agents by name (partial match supported).search (
str) – Search by agent ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.version (
str) – Filter by version. Use ‘latest’ to get the most recently created agent.
- class runloop_api_client.types.agent_list_view.AgentListView(**data)[source]¶
A paginated list of Agents.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.agent_view.AgentView(**data)[source]¶
An Agent represents a registered AI agent entity.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
source:
Optional[AgentSource]¶ Agent source configuration.
- class runloop_api_client.types.allowed_cidr.AllowedCidr(**data)[source]¶
A CIDR-based egress allow rule with optional port restrictions.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.allowed_cidr_param.AllowedCidrParam[source]¶
A CIDR-based egress allow rule with optional port restrictions.
- Optional Keys:
cidr (
Required[str]) – IPv4 CIDR block in canonical form (host bits zero), e.g. ‘10.12.0.0/16’.ports (
Optional[Iterable[PortRuleParam]]) – (Optional) Ports allowed for this CIDR. Empty or omitted means all ports and protocols.
- class runloop_api_client.types.api_key_created_view.APIKeyCreatedView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.axon_event_view.AxonEventView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.axon_list_params.AxonListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by axon ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.metadata_key (
str) – Filter axons by metadata key-value pair. Can be used multiple times for different keys.metadata_key_in (
str) – Filter axons by metadata key with multiple possible values (OR condition).name (
str) – Filter by axon name (prefix match supported).search (
str) – Search by axon ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- class runloop_api_client.types.axon_list_view.AxonListView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.axon_subscribe_sse_params.AxonSubscribeSseParams[source]¶
-
- Optional Keys:
after_sequence (
int) – Sequence number after which to start streaming. Events with sequence > this value are returned. If unset, replay from the beginning.
- class runloop_api_client.types.axon_view.AxonView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.axons.axon_event_list_view.AxonEventListView(**data)[source]¶
-
events:
List[AxonEventView]¶ List of axon events.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
events:
- typeddict runloop_api_client.types.axons.event_list_params.EventListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- typeddict runloop_api_client.types.axons.sql_batch_params.SqlBatchParams[source]¶
-
- Optional Keys:
statements (
Required[Iterable[SqlStatementParams]]) – The SQL statements to execute atomically within a transaction.
- class runloop_api_client.types.axons.sql_batch_result_view.SqlBatchResultView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
results:
List[SqlStepResultView]¶ One result per statement, in order.
- class runloop_api_client.types.axons.sql_column_meta_view.SqlColumnMetaView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.axons.sql_query_result_view.SqlQueryResultView(**data)[source]¶
-
columns:
List[SqlColumnMetaView]¶ Column metadata.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
meta:
SqlResultMetaView¶ Execution metadata.
-
columns:
- class runloop_api_client.types.axons.sql_result_meta_view.SqlResultMetaView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.axons.sql_step_error_view.SqlStepErrorView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.axons.sql_step_result_view.SqlStepResultView(**data)[source]¶
-
error:
Optional[SqlStepErrorView]¶ Error on failure.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
success:
Optional[SqlQueryResultView]¶ Result on success.
-
error:
- class runloop_api_client.types.blueprint_build_log.BlueprintBuildLog(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.blueprint_build_logs_list_view.BlueprintBuildLogsListView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
logs:
List[BlueprintBuildLog]¶ List of logs generated during Blueprint build.
- class runloop_api_client.types.blueprint_build_parameters.BlueprintBuildParameters(**data)[source]¶
-
base_blueprint_id:
Optional[str]¶ (Optional) ID of previously built blueprint to use as a base blueprint for this build.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
base_blueprint_name:
Optional[str]¶ (Optional) Name of previously built blueprint to use as a base blueprint for this build. When set, this will load the latest successfully built Blueprint with the given name. Only one of (base_blueprint_id, base_blueprint_name) should be specified.
-
build_context:
Optional[BuildContext]¶ A build context backed by an Object.
-
code_mounts:
Optional[List[CodeMountParameters]]¶ A list of code mounts to be included in the Blueprint.
-
file_mounts:
Optional[Dict[str,str]]¶ (Optional) Map of paths and file contents to write before setup.
-
launch_parameters:
Optional[LaunchParameters]¶ LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.
-
network_policy_id:
Optional[str]¶ (Optional) ID of the network policy to apply during blueprint build.
This restricts network access during the build process. This does not affect devboxes created from this blueprint; if you want devboxes created from this blueprint to inherit the network policy, set the network_policy_id on the blueprint launch parameters.
-
secrets:
Optional[Dict[str,str]]¶ (Optional) Map of mount IDs/environment variable names to secret names.
Secrets will be available to commands during the build. Secrets are NOT stored in the blueprint image. Example: {“DB_PASS”: “DATABASE_PASSWORD”} makes the secret ‘DATABASE_PASSWORD’ available as environment variable ‘DB_PASS’.
-
base_blueprint_id:
- class runloop_api_client.types.blueprint_build_parameters.BuildContext(**data)[source]¶
A build context backed by an Object.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.blueprint_build_parameters.Service(**data)[source]¶
-
credentials:
Optional[ServiceCredentials]¶ The credentials of the container service.
-
port_mappings:
Optional[List[str]]¶ The port mappings of the container service.
Port mappings are in the format of <host_port>:<container_port>.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
credentials:
- class runloop_api_client.types.blueprint_build_parameters.ServiceCredentials(**data)[source]¶
The credentials of the container service.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.blueprint_create_params.BlueprintCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name of the container service.base_blueprint_id (
Optional[str]) – (Optional) ID of previously built blueprint to use as a base blueprint for this build.base_blueprint_name (
Optional[str]) – (Optional) Name of previously built blueprint to use as a base blueprint for this build. When set, this will load the latest successfully built Blueprint with the given name. Only one of (base_blueprint_id, base_blueprint_name) should be specified.build_args (
Optional[Dict[str,str]]) – (Optional) Arbitrary Docker build args to pass during build.build_context (
Optional[BuildContext]) – A build context backed by an Object.code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Blueprint.dockerfile (
Optional[str]) – Dockerfile contents to be used to build the Blueprint.file_mounts (
Optional[Dict[str,str]]) – (Optional) Map of paths and file contents to write before setup.launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.metadata (
Optional[Dict[str,str]]) – (Optional) User defined metadata for the Blueprint.network_policy_id (
Optional[str]) – (Optional) ID of the network policy to apply during blueprint build. This restricts network access during the build process. This does not affect devboxes created from this blueprint; if you want devboxes created from this blueprint to inherit the network policy, set the network_policy_id on the blueprint launch parameters.secrets (
Optional[Dict[str,str]]) – (Optional) Map of mount IDs/environment variable names to secret names. Secrets will be available to commands during the build. Secrets are NOT stored in the blueprint image. Example: {“DB_PASS”: “DATABASE_PASSWORD”} makes the secret ‘DATABASE_PASSWORD’ available as environment variable ‘DB_PASS’.services (
Optional[Iterable[Service]]) – (Optional) List of containerized services to include in the Blueprint. These services will be pre-pulled during the build phase for optimized startup performance.system_setup_commands (
Optional[Sequence[str]]) – A list of commands to run to set up your system.
- typeddict runloop_api_client.types.blueprint_create_params.BuildContext[source]¶
A build context backed by an Object.
- typeddict runloop_api_client.types.blueprint_create_params.Service[source]¶
-
- Optional Keys:
image (
Required[str]) – The image of the container service.name (
Required[str]) – The name of the container service.credentials (
Optional[ServiceCredentials]) – The credentials of the container service.env (
Optional[Dict[str,str]]) – The environment variables of the container service.options (
Optional[str]) – Additional Docker container create options.port_mappings (
Optional[Sequence[str]]) – The port mappings of the container service. Port mappings are in the format of <host_port>:<container_port>.
- typeddict runloop_api_client.types.blueprint_create_params.ServiceCredentials[source]¶
The credentials of the container service.
- typeddict runloop_api_client.types.blueprint_list_params.BlueprintListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by namestarting_after (
str) – Load the next page of data starting after the item with the given ID.status (
str) – Filter by build status (queued, provisioning, building, failed, build_complete)
- typeddict runloop_api_client.types.blueprint_list_public_params.BlueprintListPublicParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by namestarting_after (
str) – Load the next page of data starting after the item with the given ID.status (
str) – Filter by build status (queued, provisioning, building, failed, build_complete)
- class runloop_api_client.types.blueprint_list_view.BlueprintListView(**data)[source]¶
-
blueprints:
List[BlueprintView]¶ List of blueprints matching filter.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
blueprints:
- typeddict runloop_api_client.types.blueprint_preview_params.BlueprintPreviewParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name of the container service.base_blueprint_id (
Optional[str]) – (Optional) ID of previously built blueprint to use as a base blueprint for this build.base_blueprint_name (
Optional[str]) – (Optional) Name of previously built blueprint to use as a base blueprint for this build. When set, this will load the latest successfully built Blueprint with the given name. Only one of (base_blueprint_id, base_blueprint_name) should be specified.build_args (
Optional[Dict[str,str]]) – (Optional) Arbitrary Docker build args to pass during build.build_context (
Optional[BuildContext]) – A build context backed by an Object.code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Blueprint.dockerfile (
Optional[str]) – Dockerfile contents to be used to build the Blueprint.file_mounts (
Optional[Dict[str,str]]) – (Optional) Map of paths and file contents to write before setup.launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.metadata (
Optional[Dict[str,str]]) – (Optional) User defined metadata for the Blueprint.network_policy_id (
Optional[str]) – (Optional) ID of the network policy to apply during blueprint build. This restricts network access during the build process. This does not affect devboxes created from this blueprint; if you want devboxes created from this blueprint to inherit the network policy, set the network_policy_id on the blueprint launch parameters.secrets (
Optional[Dict[str,str]]) – (Optional) Map of mount IDs/environment variable names to secret names. Secrets will be available to commands during the build. Secrets are NOT stored in the blueprint image. Example: {“DB_PASS”: “DATABASE_PASSWORD”} makes the secret ‘DATABASE_PASSWORD’ available as environment variable ‘DB_PASS’.services (
Optional[Iterable[Service]]) – (Optional) List of containerized services to include in the Blueprint. These services will be pre-pulled during the build phase for optimized startup performance.system_setup_commands (
Optional[Sequence[str]]) – A list of commands to run to set up your system.
- typeddict runloop_api_client.types.blueprint_preview_params.BuildContext[source]¶
A build context backed by an Object.
- typeddict runloop_api_client.types.blueprint_preview_params.Service[source]¶
-
- Optional Keys:
image (
Required[str]) – The image of the container service.name (
Required[str]) – The name of the container service.credentials (
Optional[ServiceCredentials]) – The credentials of the container service.env (
Optional[Dict[str,str]]) – The environment variables of the container service.options (
Optional[str]) – Additional Docker container create options.port_mappings (
Optional[Sequence[str]]) – The port mappings of the container service. Port mappings are in the format of <host_port>:<container_port>.
- typeddict runloop_api_client.types.blueprint_preview_params.ServiceCredentials[source]¶
The credentials of the container service.
- class runloop_api_client.types.blueprint_preview_view.BlueprintPreviewView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.blueprint_view.BlueprintView(**data)[source]¶
Blueprints are ways to create customized starting points for Devboxes.
They allow you to define custom starting points for Devboxes such that environment set up can be cached to improve Devbox boot times.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
parameters:
BlueprintBuildParameters¶ The parameters used to create Blueprint.
-
status:
Literal['queued','provisioning','building','awaiting_upload','failed','build_complete']¶ The status of the Blueprint build.
-
build_finish_time_ms:
Optional[int]¶ Build completion time of the Blueprint (Unix timestamp milliseconds).
-
containerized_services:
Optional[List[ContainerizedService]]¶ List of ContainerizedServices available in the Blueprint.
Services can be explicitly started when creating a Devbox.
-
devbox_capabilities:
Optional[List[Literal['unknown','docker_in_docker']]]¶ Capabilities that will be available on Devbox.
-
failure_reason:
Optional[Literal['out_of_memory','out_of_disk','build_failed']]¶ The cause of the failure of the Blueprint build.
out_of_memory: The build has run out of memory. Contact support if this is unexpected. out_of_disk: The build has run out of disk. Contact support if this is unexpected. build_failed: The build has failed. Use the dashboard to look at Blueprint build logs for more info.
- class runloop_api_client.types.blueprint_view.ContainerizedService(**data)[source]¶
-
credentials:
Optional[ContainerizedServiceCredentials]¶ The credentials of the container service.
-
port_mappings:
Optional[List[str]]¶ The port mappings of the container service.
Port mappings are in the format of <host_port>:<container_port>.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
credentials:
- class runloop_api_client.types.blueprint_view.ContainerizedServiceCredentials(**data)[source]¶
The credentials of the container service.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.devbox_async_execution_detail_view.DevboxAsyncExecutionDetailView(**data)[source]¶
-
exit_status:
Optional[int]¶ Exit code of command execution.
This field will remain unset until the execution has completed.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
stderr:
Optional[str]¶ Standard error generated by command.
This field will remain unset until the execution has completed.
-
exit_status:
- typeddict runloop_api_client.types.devbox_create_gateway_token_params.DevboxCreateGatewayTokenParams[source]¶
- typeddict runloop_api_client.types.devbox_create_mcp_token_params.DevboxCreateMcpTokenParams[source]¶
- typeddict runloop_api_client.types.devbox_create_params.DevboxCreateParams[source]¶
-
- Optional Keys:
blueprint_id (
Optional[str]) – Blueprint ID to use for the Devbox. If none set, the Devbox will be created with the default Runloop Devbox image. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.code_mounts (
Optional[Iterable[CodeMountParameters]]) – A list of code mounts to be included in the Devbox. Use mounts instead.entrypoint (
Optional[str]) – (Optional) When specified, the Devbox will run this script as its main executable. The devbox lifecycle will be bound to entrypoint, shutting down when the process is complete.environment_variables (
Optional[Dict[str,str]]) – (Optional) Environment variables used to configure your Devbox.file_mounts (
Optional[Dict[str,str]]) – Map of paths and file contents to write before setup. Use mounts instead.gateways (
Optional[Dict[str,Gateways]]) – (Optional) Agent gateway specifications for credential proxying. Map key is the environment variable prefix (e.g., ‘GWS_ANTHROPIC’). The agent gateway will proxy requests to external APIs using the specified credential without exposing the real API key. Example: {‘GWS_ANTHROPIC’: {‘gateway’: ‘anthropic’, ‘secret’: ‘my_claude_key’}}launch_parameters (
Optional[LaunchParameters]) – LaunchParameters enable you to customize the resources available to your Devbox as well as the environment set up that should be completed before the Devbox is marked as ‘running’.mcp (
Optional[Dict[str,Mcp]]) – [Beta] (Optional) MCP specifications for MCP server access. Map key is the environment variable name for the MCP token envelope. Each spec links an MCP config to a secret. The devbox will also receive RL_MCP_URL for the MCP hub endpoint. Example: {‘MCP_SECRET’: {‘mcp_config’: ‘github-readonly’, ‘secret’: ‘MY_GITHUB_TOKEN’}}metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the devbox for organization.mounts (
Optional[Iterable[Union[ObjectMount,AgentMount,CodeMount,FileMount,BrokerMount]]]) – A list of mounts to be included in the Devbox.name (
Optional[str]) – (Optional) A user specified name to give the Devbox.secrets (
Optional[Dict[str,str]]) – (Optional) Map of environment variable names to secret names. The secret values will be securely injected as environment variables in the Devbox. Example: {“DB_PASS”: “DATABASE_PASSWORD”} sets environment variable ‘DB_PASS’ to the value of secret ‘DATABASE_PASSWORD’.blueprint_name (
Optional[str]) – Name of Blueprint to use for the Devbox. When set, this will load the latest successfully built Blueprint with the given name. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.snapshot_id (
Optional[str]) – Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.tunnel (
Optional[Tunnel]) – Configuration for creating a V2 tunnel. When specified at Devbox creation, a tunnel will be automatically provisioned.
- typeddict runloop_api_client.types.devbox_create_params.Gateways[source]¶
GatewaySpec links an agent gateway configuration to a secret for credential proxying in a devbox. The agent gateway will proxy requests to external APIs using the specified credential without exposing the real API key.
- typeddict runloop_api_client.types.devbox_create_params.Mcp[source]¶
[Beta] McpSpec links an MCP configuration to a secret for MCP server access in a devbox. The MCP hub will proxy requests to upstream MCP servers using the specified credential, with tool-level access control based on the MCP config’s allowed_tools.
- typeddict runloop_api_client.types.devbox_create_params.Tunnel[source]¶
Configuration for creating a V2 tunnel.
When specified at Devbox creation, a tunnel will be automatically provisioned.
- Optional Keys:
auth_mode (
Optional[Literal['open','authenticated']]) – Authentication mode for the tunnel. Defaults to open if omitted: the hostname is a public capability and does not require a tunnel bearer token.http_keep_alive (
Optional[bool]) – When true, HTTP traffic through the tunnel counts as activity for idle lifecycle policies, resetting the idle timer. Defaults to true if not specified.wake_on_http (
Optional[bool]) – When true, HTTP traffic to a suspended devbox will automatically trigger a resume. Defaults to false if not specified. Prefer lifecycle.resume_triggers.http on launch_parameters for new integrations. If both are set, lifecycle.resume_triggers.http takes precedence.
- class runloop_api_client.types.devbox_create_ssh_key_response.DevboxCreateSSHKeyResponse(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_download_file_params.DevboxDownloadFileParams[source]¶
-
- Optional Keys:
path (
Required[str]) – The path on the Devbox filesystem to read the file from. Path is relative to user home directory.
- typeddict runloop_api_client.types.devbox_enable_tunnel_params.DevboxEnableTunnelParams[source]¶
-
- Optional Keys:
auth_mode (
Optional[Literal['open','authenticated']]) – Authentication mode for the tunnel. Defaults to open if omitted: the hostname is a public capability and does not require a tunnel bearer token.http_keep_alive (
Optional[bool]) – When true, HTTP traffic through the tunnel counts as activity for idle lifecycle policies, resetting the idle timer. Defaults to true if not specified.wake_on_http (
Optional[bool]) – When true, HTTP traffic to a suspended devbox will automatically trigger a resume. Defaults to false if not specified. Prefer lifecycle.resume_triggers.http on launch_parameters for new integrations. If both are set, lifecycle.resume_triggers.http takes precedence.
- class runloop_api_client.types.devbox_eviction_event_view.DevboxEvictionEventView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_execute_async_params.DevboxExecuteAsyncParams[source]¶
-
- Optional Keys:
attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.command (
Required[str]) – The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is specified the command is run from the directory based on the recent state of the persistent shell.
- typeddict runloop_api_client.types.devbox_execute_params.DevboxExecuteParams[source]¶
-
- Optional Keys:
command (
Required[str]) – The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is specified the command is run from the directory based on the recent state of the persistent shell.command_id (
Required[str]) – The command ID in UUIDv7 string format for idempotency and trackinglast_n (
str) – Last n lines of standard error / standard out to return (default: 100)optimistic_timeout (
Optional[int]) – Timeout in seconds to wait for command completion, up to 25 seconds. Defaults to 25 seconds. Operation is not killed.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.
- typeddict runloop_api_client.types.devbox_execute_sync_params.DevboxExecuteSyncParams[source]¶
-
- Optional Keys:
command (
Required[str]) – The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is specified the command is run from the directory based on the recent state of the persistent shell.attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.
- class runloop_api_client.types.devbox_execution_detail_view.DevboxExecutionDetailView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_list_disk_snapshots_params.DevboxListDiskSnapshotsParams[source]¶
-
- Optional Keys:
devbox_id (
str) – Devbox ID to filter by.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.metadata_key (
str) – Filter snapshots by metadata key-value pair. Can be used multiple times for different keys.metadata_key_in (
str) – Filter snapshots by metadata key with multiple possible values (OR condition).source_blueprint_id (
str) – Source Blueprint ID to filter snapshots by.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- typeddict runloop_api_client.types.devbox_list_params.DevboxListParams[source]¶
-
- Optional Keys:
include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.starting_after (
str) – Load the next page of data starting after the item with the given ID.status (
Literal['scheduled','queued','provisioning','initializing','running','suspending','suspended','resuming','failure','shutdown']) – Filter by status
- class runloop_api_client.types.devbox_list_view.DevboxListView(**data)[source]¶
-
devboxes:
List[DevboxView]¶ List of devboxes matching filter.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
devboxes:
- typeddict runloop_api_client.types.devbox_read_file_contents_params.DevboxReadFileContentsParams[source]¶
-
- Optional Keys:
file_path (
Required[str]) – The path on the Devbox filesystem to read the file from. Path is relative to user home directory.
- runloop_api_client.types.devbox_read_file_contents_response.DevboxReadFileContentsResponse¶
alias of
str
- class runloop_api_client.types.devbox_resource_usage_view.DevboxResourceUsageView(**data)[source]¶
-
disk_gb_seconds:
int¶ Disk usage in GB-seconds (total_elapsed_seconds multiplied by disk size in GB).
Disk is billed for elapsed time since storage is consumed even when suspended.
-
memory_gb_seconds:
int¶ Memory usage in GB-seconds (total_active_seconds multiplied by memory in GB).
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
total_active_seconds:
int¶ Total time in seconds the devbox was actively running (excludes time spent suspended).
-
total_elapsed_seconds:
int¶ Total elapsed time in seconds from devbox creation to now (or end time if terminated). Includes all time regardless of devbox state.
-
disk_gb_seconds:
- class runloop_api_client.types.devbox_send_std_in_result.DevboxSendStdInResult(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_shutdown_params.DevboxShutdownParams[source]¶
-
- Optional Keys:
force (
str) – If true, force shutdown even if snapshots are in progress. Defaults to false.
- typeddict runloop_api_client.types.devbox_snapshot_disk_async_params.DevboxSnapshotDiskAsyncParams[source]¶
- class runloop_api_client.types.devbox_snapshot_list_view.DevboxSnapshotListView(**data)[source]¶
-
snapshots:
List[DevboxSnapshotView]¶ List of snapshots matching filter.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
snapshots:
- class runloop_api_client.types.devbox_snapshot_view.DevboxSnapshotView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_upload_file_params.DevboxUploadFileParams[source]¶
-
- Optional Keys:
path (
Required[str]) – The path to write the file to on the Devbox. Path is relative to user home directory.file (
Union[IO[bytes],bytes,PathLike,Tuple[Optional[str],Union[IO[bytes],bytes,PathLike]],Tuple[Optional[str],Union[IO[bytes],bytes,PathLike],Optional[str]],Tuple[Optional[str],Union[IO[bytes],bytes,PathLike],Optional[str],Mapping[str,str]]])
- class runloop_api_client.types.devbox_view.DevboxView(**data)[source]¶
A Devbox represents a virtual development environment.
It is an isolated sandbox that can be given to agents and used to run arbitrary code such as AI generated code.
-
capabilities:
List[Literal['unknown','docker_in_docker']]¶ A list of capability groups this devbox has access to.
-
end_time_ms:
Optional[int]¶ The time the Devbox finished execution (Unix timestamp milliseconds).
Present if the Devbox is in a terminal state.
-
launch_parameters:
LaunchParameters¶ The launch parameters used to create the Devbox.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
state_transitions:
List[StateTransition]¶ A list of state transitions in order with durations
-
status:
Literal['scheduled','queued','provisioning','initializing','running','suspending','suspended','resuming','failure','shutdown']¶ The current status of the Devbox.
-
blueprint_id:
Optional[str]¶ The Blueprint ID used in creation of the Devbox, if the devbox was created from a Blueprint.
-
failure_reason:
Optional[Literal['out_of_memory','out_of_disk','execution_failed','health_check_failed']]¶ The category of failure experienced by the Devbox.
out_of_memory: The Devbox ran out of memory at runtime. Use launch parameters to request a larger resource size. out_of_disk: The Devbox ran out of disk at runtime. Please reach out to support for us to better support your use case. execution_failed: The Devbox failed at runtime. Please use the dashboard to look at the logs of the failure. health_check_failed: The Devbox failed its health checks. This may indicate resource utilization is close to the maximum. Consider requesting a larger resource size.
-
gateway_specs:
Optional[Dict[str,GatewaySpecs]]¶ Gateway specifications configured for this devbox.
Map key is the environment variable prefix (e.g., ‘GWS_ANTHROPIC’).
-
initiator_type:
Optional[Literal['unknown','api','reflex']]¶ The type of initiator that created the Devbox.
-
mcp_specs:
Optional[Dict[str,McpSpecs]]¶ [Beta] MCP specifications configured for this devbox.
Map key is the environment variable name for the MCP token envelope. Each spec links an MCP config to a secret for MCP server access through the MCP hub.
-
shutdown_reason:
Optional[Literal['api_shutdown','keep_alive_timeout','entrypoint_exit','idle','ttl_expired']]¶ The reason that caused the transition of the Devbox to the shutown state.
api_shutdown: The Devbox shutdown due to API request. entrypoint_exit: The Devbox entrypoint program completed. idle: The Devbox shutdown due to configured action on idle configuration. ttl_expired: The Devbox shutdown due to TTL expiration.
-
snapshot_id:
Optional[str]¶ The Snapshot ID used in creation of the Devbox, if the devbox was created from a Snapshot.
-
tunnel:
Optional[TunnelView]¶ A V2 tunnel provides secure HTTP access to services running on a Devbox.
Tunnels allow external clients to reach web servers, APIs, or other HTTP services running inside a Devbox without requiring direct network access. Each tunnel is uniquely identified by an encrypted tunnel_key and can be configured for either open (public) or authenticated access. Usage: https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
-
capabilities:
- class runloop_api_client.types.devbox_view.StateTransition(**data)[source]¶
-
status:
Optional[Literal['scheduled','queued','provisioning','initializing','running','suspending','suspended','resuming','failure','shutdown']]¶ The status of the Devbox.
scheduled: Deprecated. The Devbox is waiting for infrastructure allocation to start. Use queued. queued: The Devbox is waiting for infrastructure allocation to start. provisioning: Runloop is allocating and booting the necessary infrastructure resources. initializing: Runloop defined boot scripts are running to enable the environment for interaction. running: The Devbox is ready for interaction. suspending: The Devbox disk is being snapshotted as part of suspension. suspended: The Devbox disk is saved and no more active compute is being used for the Devbox. resuming: The Devbox disk is being loaded as part of booting a suspended Devbox. failure: The Devbox failed as part of booting or running user requested actions. shutdown: The Devbox was successfully shutdown and no more active compute is being used.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
status:
- class runloop_api_client.types.devbox_view.GatewaySpecs(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.devbox_view.McpSpecs(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.devbox_wait_for_command_params.DevboxWaitForCommandParams[source]¶
-
- Optional Keys:
devbox_id (
Required[str])statuses (
Required[List[Literal['queued','running','completed']]]) – The command execution statuses to wait for. At least one status must be provided. The command will be returned as soon as it reaches any of the provided statuses.last_n (
str) – Last n lines of standard error / standard out to return (default: 100)timeout_seconds (
Optional[int]) – (Optional) Timeout in seconds to wait for the status, up to 25 seconds. Defaults to 25 seconds.
- typeddict runloop_api_client.types.devbox_write_file_contents_params.DevboxWriteFileContentsParams[source]¶
- class runloop_api_client.types.devboxes.devbox_logs_list_view.DevboxLogsListView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.devboxes.devbox_logs_list_view.Log(**data)[source]¶
-
source:
Literal['setup_commands','entrypoint','exec','files','stats','kmsg']¶ The source of the log.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
source:
- class runloop_api_client.types.devboxes.devbox_snapshot_async_status_view.DevboxSnapshotAsyncStatusView(**data)[source]¶
-
status:
Literal['in_progress','error','complete','deleted']¶ The current status of the snapshot operation.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
snapshot:
Optional[DevboxSnapshotView]¶ The snapshot details if the operation completed successfully.
-
status:
- typeddict runloop_api_client.types.devboxes.disk_snapshot_list_params.DiskSnapshotListParams[source]¶
-
- Optional Keys:
devbox_id (
str) – Devbox ID to filter by.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.metadata_key (
str) – Filter snapshots by metadata key-value pair. Can be used multiple times for different keys.metadata_key_in (
str) – Filter snapshots by metadata key with multiple possible values (OR condition).source_blueprint_id (
str) – Source Blueprint ID to filter snapshots by.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- typeddict runloop_api_client.types.devboxes.disk_snapshot_update_params.DiskSnapshotUpdateParams[source]¶
- typeddict runloop_api_client.types.devboxes.execution_execute_async_params.ExecutionExecuteAsyncParams[source]¶
-
- Optional Keys:
command (
Required[str]) – The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is specified the command is run from the directory based on the recent state of the persistent shell.attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.
- typeddict runloop_api_client.types.devboxes.execution_execute_sync_params.ExecutionExecuteSyncParams[source]¶
-
- Optional Keys:
command (
Required[str]) – The command to execute via the Devbox shell. By default, commands are run from the user home directory unless shell_name is specified. If shell_name is specified the command is run from the directory based on the recent state of the persistent shell.attach_stdin (
Optional[bool]) – Whether to attach stdin streaming for async commands. Not valid for execute_sync endpoint. Defaults to false if not specified.shell_name (
Optional[str]) – The name of the persistent shell to create or use if already created. When using a persistent shell, the command will run from the directory at the end of the previous command and environment variables will be preserved.
- typeddict runloop_api_client.types.devboxes.execution_retrieve_params.ExecutionRetrieveParams[source]¶
- typeddict runloop_api_client.types.devboxes.execution_send_std_in_params.ExecutionSendStdInParams[source]¶
- typeddict runloop_api_client.types.devboxes.execution_stream_stderr_updates_params.ExecutionStreamStderrUpdatesParams[source]¶
- typeddict runloop_api_client.types.devboxes.execution_stream_stdout_updates_params.ExecutionStreamStdoutUpdatesParams[source]¶
- class runloop_api_client.types.devboxes.execution_update_chunk.ExecutionUpdateChunk(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.gateway_config_create_params.GatewayConfigCreateParams[source]¶
-
- Optional Keys:
auth_mechanism (
Required[AuthMechanism]) – How credentials should be applied to proxied requests. Specify the type (‘header’, ‘bearer’) and optional key field.endpoint (
Required[str]) – The target endpoint URL (e.g., ‘https://api.anthropic.com’).name (
Required[str]) – The human-readable name for the GatewayConfig. Names are labels and may be reused.custom_headers (
Optional[Iterable[CustomHeader]]) – Additional headers applied to proxied requests after the auth mechanism. At most 8 entries.description (
Optional[str]) – Optional description for this gateway configuration.
- typeddict runloop_api_client.types.gateway_config_list_params.GatewayConfigListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (partial match supported).search (
str) – Search by gateway config ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- class runloop_api_client.types.gateway_config_list_view.GatewayConfigListView(**data)[source]¶
A paginated list of GatewayConfigs.
-
gateway_configs:
List[GatewayConfigView]¶ The list of GatewayConfigs.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
gateway_configs:
- typeddict runloop_api_client.types.gateway_config_update_params.GatewayConfigUpdateParams[source]¶
-
- Optional Keys:
auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – New list of additional headers. Replaces the existing list entirely; use an empty list to clear all custom headers. At most 8 entries.description (
Optional[str]) – New description for this gateway configuration.endpoint (
Optional[str]) – New target endpoint URL (e.g., ‘https://api.anthropic.com’).name (
Optional[str]) – New name for the GatewayConfig. Names are labels and may be reused.
- class runloop_api_client.types.gateway_config_view.GatewayConfigView(**data)[source]¶
A GatewayConfig defines a configuration for proxying API requests through the agent gateway. It specifies the target endpoint and how credentials should be applied.
-
auth_mechanism:
AuthMechanism¶ How credentials should be applied to proxied requests.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
custom_headers:
Optional[List[CustomHeader]]¶ Additional headers applied to proxied requests after the auth mechanism.
Secret-backed entries reference the secret by ‘sec__’ id; values are never returned.
-
auth_mechanism:
- class runloop_api_client.types.gateway_token_view.GatewayTokenView(**data)[source]¶
-
token:
str¶ The token to send to the gateway as a Bearer token in the Authorization header.
Only accepted for requests originating from the bound Devbox.
-
auth_mechanism:
AuthMechanism¶ How the gateway applies the credential to proxied requests.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
token:
- typeddict runloop_api_client.types.mcp_config_create_params.McpConfigCreateParams[source]¶
-
- Optional Keys:
allowed_tools (
Required[Sequence[str]]) – Glob patterns specifying which tools are allowed from this MCP server. Examples: [‘*’] for all tools, [‘github.search_*’, ‘github.get_*’] for specific patterns.endpoint (
Required[str]) – The target MCP server endpoint URL (e.g., ‘https://mcp.example.com’).name (
Required[str]) – The human-readable name for the McpConfig. Names are labels and may be reused. The first segment before ‘-’ is used as the service name for tool routing (e.g., ‘github-readonly’ uses ‘github’ as the service name).auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – Additional headers applied to upstream requests after the credential. At most 8 entries.description (
Optional[str]) – Optional description for this MCP configuration.
- typeddict runloop_api_client.types.mcp_config_list_params.McpConfigListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (prefix match supported).search (
str) – Search by MCP config ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- class runloop_api_client.types.mcp_config_list_view.McpConfigListView(**data)[source]¶
A paginated list of McpConfigs.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
mcp_configs:
List[McpConfigView]¶ The list of McpConfigs.
- typeddict runloop_api_client.types.mcp_config_update_params.McpConfigUpdateParams[source]¶
-
- Optional Keys:
allowed_tools (
Optional[Sequence[str]]) – New glob patterns specifying which tools are allowed. Examples: [‘*’] for all tools, [‘github.search_*’] for specific patterns.auth_mechanism (
Optional[AuthMechanism]) – Defines how the primary credential is applied to requests proxied to the upstream.custom_headers (
Optional[Iterable[CustomHeader]]) – New list of additional headers. Replaces the existing list entirely; use an empty list to clear all custom headers. At most 8 entries.description (
Optional[str]) – New description for this MCP configuration.endpoint (
Optional[str]) – New target MCP server endpoint URL.name (
Optional[str]) – New name for the McpConfig. Names are labels and may be reused.
- class runloop_api_client.types.mcp_config_view.McpConfigView(**data)[source]¶
An McpConfig defines a configuration for connecting to an upstream MCP (Model Context Protocol) server. It specifies the target endpoint and which tools are allowed.
-
allowed_tools:
List[str]¶ Glob patterns specifying which tools are allowed from this MCP server (e.g., [‘github.search_*’, ‘github.get_*’] or [‘*’] for all tools).
-
auth_mechanism:
AuthMechanism¶ How the primary credential is applied to upstream requests.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
custom_headers:
Optional[List[CustomHeader]]¶ Additional headers applied to upstream requests after the credential.
Secret-backed entries reference the secret by ‘sec__’ id; values are never returned.
-
allowed_tools:
- class runloop_api_client.types.mcp_token_view.McpTokenView(**data)[source]¶
-
token:
str¶ The token to send to the MCP hub as a Bearer token in the Authorization header.
Only accepted for requests originating from the bound Devbox.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
token:
- typeddict runloop_api_client.types.network_policy_create_params.NetworkPolicyCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The human-readable name for the NetworkPolicy. Names are labels and may be reused.allow_agent_gateway (
Optional[bool]) – (Optional) If true, allows devbox egress to the agent gateway for credential proxying. Defaults to false.allow_all (
Optional[bool]) – (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false.allow_devbox_to_devbox (
Optional[bool]) – (Optional) If true, allows traffic between the account’s own devboxes via tunnels. Defaults to false. If allow_all is true, this is automatically set to true.allow_mcp_gateway (
Optional[bool]) – (Optional) If true, allows devbox egress to the MCP hub for MCP server access. Defaults to false.allow_runloop_mirrors (
Optional[bool]) – (Optional) If true, allows devbox egress to Runloop’s package/image registry mirrors. Defaults to false. Implicitly allowed when allow_all is true.allowed_cidrs (
Optional[Iterable[AllowedCidrParam]]) – (Optional) IPv4 CIDR-based allow list with optional port restrictions, additive with allowed_hostnames. Example: [{‘cidr’: ‘10.12.0.0/16’, ‘ports’: [{‘port’: 443}]}].allowed_hostnames (
Optional[Sequence[str]]) – (Optional) DNS-based allow list with wildcard support. Examples: [‘github.com’, ‘*.npmjs.org’].description (
Optional[str]) – Optional description for the NetworkPolicy.
- typeddict runloop_api_client.types.network_policy_list_params.NetworkPolicyListParams[source]¶
-
- Optional Keys:
id (
str) – Filter by ID.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter by name (partial match supported).search (
str) – Search by network policy ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.
- class runloop_api_client.types.network_policy_list_view.NetworkPolicyListView(**data)[source]¶
A list of NetworkPolicies with pagination information.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
network_policies:
List[NetworkPolicyView]¶ The list of NetworkPolicies.
- typeddict runloop_api_client.types.network_policy_update_params.NetworkPolicyUpdateParams[source]¶
-
- Optional Keys:
allow_agent_gateway (
Optional[bool]) – If true, allows devbox egress to the agent gateway.allow_all (
Optional[bool]) – If true, all egress traffic is allowed (ALLOW_ALL policy).allow_devbox_to_devbox (
Optional[bool]) – If true, allows traffic between the account’s own devboxes via tunnels.allow_mcp_gateway (
Optional[bool]) – If true, allows devbox egress to the MCP hub.allow_runloop_mirrors (
Optional[bool]) – If true, allows devbox egress to Runloop’s package/image registry mirrors. Implicitly allowed when allow_all is true.allowed_cidrs (
Optional[Iterable[AllowedCidrParam]]) – Updated IPv4 CIDR-based allow list with optional port restrictions, additive with allowed_hostnames.allowed_hostnames (
Optional[Sequence[str]]) – Updated DNS-based allow list with wildcard support. Examples: [‘github.com’, ‘*.npmjs.org’].description (
Optional[str]) – Updated description for the NetworkPolicy.name (
Optional[str]) – Updated human-readable name for the NetworkPolicy.
- class runloop_api_client.types.network_policy_view.NetworkPolicyView(**data)[source]¶
A NetworkPolicy defines egress network access rules for devboxes.
Policies can be applied to blueprints, devboxes, and snapshot resumes.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.network_policy_view.Egress(**data)[source]¶
The egress rules for this policy.
-
allow_agent_gateway:
bool¶ If true, allows devbox egress to the agent gateway for credential proxying.
-
allow_all:
bool¶ If true, all egress traffic is allowed and other fields are ignored.
Used for ALLOW_ALL policies.
-
allow_devbox_to_devbox:
bool¶ If true, allows traffic between the account’s own devboxes via tunnels.
-
allow_runloop_mirrors:
bool¶ If true, allows devbox egress to Runloop’s package/image registry mirrors.
Implicitly allowed when allow_all is true.
-
allowed_cidrs:
List[AllowedCidr]¶ CIDR-based allow list with optional port restrictions, additive with allowed_hostnames.
-
allowed_hostnames:
List[str]¶ DNS-based allow list with wildcard support.
Examples: [‘github.com’, ‘*.npmjs.org’, ‘api.openai.com’]. Empty list with allow_all=false means no network access (DENY_ALL behavior).
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
allow_agent_gateway:
- typeddict runloop_api_client.types.object_create_params.ObjectCreateParams[source]¶
-
- Optional Keys:
content_type (
Required[Literal['unspecified','text','binary','gzip','tar','tgz']]) – The content type of the Object.name (
Required[str]) – The name of the Object.metadata (
Optional[Dict[str,str]]) – User defined metadata to attach to the object for organization.ttl_ms (
Optional[int]) – Optional lifetime of the object in milliseconds, after which the object is automatically deleted. Time starts ticking after the object is created.
- typeddict runloop_api_client.types.object_download_params.ObjectDownloadParams[source]¶
-
- Optional Keys:
duration_seconds (
int) – Duration in seconds for the presigned URL validity (default: 3600).
- class runloop_api_client.types.object_download_url_view.ObjectDownloadURLView(**data)[source]¶
A response containing a presigned download URL for an Object.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.object_list_params.ObjectListParams[source]¶
-
- Optional Keys:
content_type (
Literal['unspecified','text','binary','gzip','tar','tgz']) – Filter storage objects by content type.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter storage objects by name (partial match supported).search (
str) – Search by object ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.state (
Literal['UPLOADING','READ_ONLY','DELETED','ERROR']) – Filter storage objects by state.
- typeddict runloop_api_client.types.object_list_public_params.ObjectListPublicParams[source]¶
-
- Optional Keys:
content_type (
Literal['unspecified','text','binary','gzip','tar','tgz']) – Filter storage objects by content type.include_total_count (
bool) – If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.limit (
int) – The limit of items to return. Default is 20. Max is 5000.name (
str) – Filter storage objects by name (partial match supported).search (
str) – Search by object ID or name.starting_after (
str) – Load the next page of data starting after the item with the given ID.state (
Literal['UPLOADING','READ_ONLY','DELETED','ERROR']) – Filter storage objects by state.
- class runloop_api_client.types.object_list_view.ObjectListView(**data)[source]¶
A paginated list of Objects.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
objects:
List[ObjectView]¶ List of Object entities.
- class runloop_api_client.types.object_view.ObjectView(**data)[source]¶
An Object represents a stored data entity with metadata.
-
content_type:
Literal['unspecified','text','binary','gzip','tar','tgz']¶ The content type of the Object.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
delete_after_time_ms:
Optional[int]¶ The time after which the Object will be deleted in milliseconds since epoch.
-
content_type:
- class runloop_api_client.types.port_rule.PortRule(**data)[source]¶
A port or port range allowed for a CIDR egress rule.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.port_rule_param.PortRuleParam[source]¶
A port or port range allowed for a CIDR egress rule.
- typeddict runloop_api_client.types.pty_connect_params.PtyConnectParams[source]¶
-
- Optional Keys:
cols (
int) – Optional initial terminal width in character cells (1..=1000). Defaults to 80 when omitted. Applied only if both cols and rows are provided; otherwise ignored.rows (
int) – Optional initial terminal height in character cells (1..=1000). Defaults to 24 when omitted. Applied only if both cols and rows are provided; otherwise ignored.
- class runloop_api_client.types.pty_connect_view.PtyConnectView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.pty_control_result_view.PtyControlResultView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class runloop_api_client.types.pty_tunnel_view.PtyTunnelView(**data)[source]¶
An ephemeral PTY tunnel providing authenticated terminal access to a Devbox.
These tunnels are not stored on the Devbox and are generated fresh on each request. Usage: https://{port}-{tunnel_key}.tunnel.runloop.ai with X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
-
auth_token:
str¶ Bearer token for tunnel authentication.
Always required for PTY tunnels. Pass as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
auth_token:
- class runloop_api_client.types.publish_result_view.PublishResultView(**data)[source]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typeddict runloop_api_client.types.restricted_key_create_params.RestrictedKeyCreateParams[source]¶
-
- Optional Keys:
name (
str)scopes (
Iterable[ScopeEntryViewParam])
- class runloop_api_client.types.restricted_key_created_view.RestrictedKeyCreatedView(**data)[source]¶
-
scopes:
Optional[List[ScopeEntryView]]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
scopes:
- class runloop_api_client.types.scope_entry_view.ScopeEntryView(**data)[source]¶
-
resource_type:
Optional[Literal['RESOURCE_TYPE_DEVBOXES','RESOURCE_TYPE_BLUEPRINTS','RESOURCE_TYPE_SNAPSHOTS','RESOURCE_TYPE_AGENTS','RESOURCE_TYPE_OBJECTS','RESOURCE_TYPE_ACCOUNT']]¶
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
resource_type:
- typeddict runloop_api_client.types.secret_create_params.SecretCreateParams[source]¶
-
- Optional Keys:
name (
Required[str]) – The name for the Secret. Must be a valid environment variable name (alphanumeric and underscores only). Example: ‘DATABASE_PASSWORD’value (
Required[str]) – The value to store for this Secret. This will be encrypted at rest and made available as an environment variable in Devboxes. Example: ‘my-secure-password’
- typeddict runloop_api_client.types.secret_list_params.SecretListParams[source]¶
-
- Optional Keys:
limit (
int) – The limit of items to return. Default is 20. Max is 5000.
- class runloop_api_client.types.secret_list_view.SecretListView(**data)[source]¶
A paginated list of Secrets.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
secrets:
List[SecretView]¶ List of Secret objects. Values are omitted for security.
- typeddict runloop_api_client.types.secret_update_by_id_params.SecretUpdateByIDParams[source]¶
-
- Optional Keys:
value (
Required[str]) – The new value for the Secret. This will replace the existing value and be encrypted at rest. Example: ‘my-updated-secure-password’
- typeddict runloop_api_client.types.secret_update_params.SecretUpdateParams[source]¶
-
- Optional Keys:
value (
Required[str]) – The new value for the Secret. This will replace the existing value and be encrypted at rest. Example: ‘my-updated-secure-password’
- class runloop_api_client.types.secret_view.SecretView(**data)[source]¶
A Secret represents a key-value pair that can be securely stored and used in Devboxes as environment variables.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Git-based agent source configuration.
Git repository URL
Setup commands to run after cloning
Optional Git ref (branch/tag/commit), defaults to main/HEAD
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
NPM-based agent source configuration.
NPM package name
Setup commands to run after installation
NPM registry URL
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Object store agent source configuration.
Object ID
Setup commands to run after unpacking
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Pip-based agent source configuration.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Pip package name
Setup commands to run after installation
Pip registry URL
Configuration for the Linux user in the Devbox environment.
User ID (UID) for the Linux user. Must be a non-negative integer.
Username for the Linux user.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Content of the file to mount.
Target path where the file should be mounted.
Git-based agent source configuration.
NPM-based agent source configuration.
Object store agent source configuration.
Pip-based agent source configuration.
Configuration for the Linux user in the Devbox environment.
- class runloop_api_client.types.tunnel_view.TunnelView(**data)[source]¶
A V2 tunnel provides secure HTTP access to services running on a Devbox.
Tunnels allow external clients to reach web servers, APIs, or other HTTP services running inside a Devbox without requiring direct network access. Each tunnel is uniquely identified by an encrypted tunnel_key and can be configured for either open (public) or authenticated access. Usage: https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
-
http_keep_alive:
bool¶ When true, HTTP traffic through the tunnel counts as activity for idle lifecycle policies, resetting the idle timer.
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
tunnel_key:
str¶ The encrypted tunnel key used to construct the tunnel URL.
URL format: https://{port}-{tunnel_key}.tunnel.runloop.{domain}
-
http_keep_alive: