> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Daytona sandboxes and orgs from Guild agents

> Connect Guild agents to Daytona to create, fork, and delete sandboxes, manage snapshots and volumes, administer organizations, and retrieve audit logs.

Integrations · Daytona

A Guild agent can create, fork, pause, resize, and delete Daytona sandboxes, manage snapshots and volumes, administer organization members and roles, and retrieve audit logs. Guild stores the Daytona API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent or workspace can call, and every request appears in Guild's audit trail.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Daytona.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Daytona to your first agent.

## What the Daytona integration exposes

The tools cover sandbox lifecycle (create, fork, archive, start, stop, pause, delete, resize), snapshot management (create, activate, deactivate, remove), and volume and warm pool operations. Runner and region administration, SSH access, port preview URLs, and organization management tools round out the set. API key creation and deletion, secret management, and audit log retrieval are also included.

## How it works

**1. Open credentials in Guild**

Go to Access & setup > Credentials in your Guild account. Click Connect, search for daytona, and paste your Daytona API key into the API Key field.

**2. Import tools in your agent**

Add `guildai~daytona` to your agent's dependencies and import `DaytonaTools` from `@guildai-services/guildai~daytona`. Spread it into the `tools` object of your `llmAgent`.

**3. Narrow tools with pick**

Tools use the `daytona_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only the tools your agent needs rather than the full set.

## Why Daytona access needs governing

Daytona tools can create and delete sandboxes, rotate signing keys, revoke SSH access, remove organization members, and delete API keys. An agent with unconstrained access could disrupt running workloads or remove credentials your team depends on. Guild's [credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild, scoped to specific operations, agents, or workspaces.

Guild stores the Daytona API key server-side and injects it as a bearer token only after the policy check passes. Agent code never sees the key. You can scope a credential to one workspace, one member, or one agent using [Credentials](https://docs.guild.ai/platform/credentials.md), so a sandbox-management agent in one workspace does not share access with an org-administration agent in another. Without policies, every agent that resolves the credential can call every tool the key permits.

## About the Daytona integration

Agents can create, configure, fork, archive, and delete sandboxes and snapshots, as well as manage volumes, runners, and warm pools. They can also handle organization administration including members, roles, identity providers, and invitations. Additional tools cover API key management, SSH access, port preview URLs, and audit logs. The integration is `guildai~daytona`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Daytona**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **daytona**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { DaytonaTools } from "@guildai-services/guildai~daytona"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Daytona.",
  tools: { ...DaytonaTools },
})
```

### Selecting specific tools

Tools are named with the `daytona_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~daytona`:

> [accordion] All 175 tools
>
> | Tool | What it does |
> | - | - |
> | `daytona_accept_organization_invitation` | Accept organization invitation |
> | `daytona_accept_privacy_policies` | Accept the current privacy policies |
> | `daytona_activate_snapshot` | Activate a snapshot |
> | `daytona_add_sandbox_nodes` | Append nodes to a multi-node sandbox |
> | `daytona_archive_sandbox` | Archive sandbox |
> | `daytona_cancel_organization_invitation` | Cancel organization invitation |
> | `daytona_config_controller_get_config` | Get config |
> | `daytona_confirm_pending_sso_link` | Confirm (link) a pending SSO account link |
> | `daytona_create_api_key` | Create API key |
> | `daytona_create_backup` | Deprecated: backups are managed automatically. |
> | `daytona_create_organization` | Create organization |
> | `daytona_create_organization_identity_provider` | Create organization identity provider |
> | `daytona_create_organization_invitation` | Create organization invitation |
> | `daytona_create_organization_role` | Create organization role |
> | `daytona_create_region` | Create a new region |
> | `daytona_create_registry` | Create registry |
> | `daytona_create_runner` | Create runner |
> | `daytona_create_sandbox` | Create a new sandbox |
> | `daytona_create_sandbox_snapshot` | Create a snapshot from a sandbox |
> | `daytona_create_secret` | Create secret |
> | `daytona_create_snapshot` | Create a new snapshot |
> | `daytona_create_ssh_access` | Create SSH access for sandbox |
> | `daytona_create_volume` | Create a new volume |
> | `daytona_create_warm_pool` | Create a warm pool |
> | `daytona_deactivate_snapshot` | Deactivate a snapshot |
> | `daytona_decline_organization_invitation` | Decline organization invitation |
> | `daytona_delete_api_key` | Delete API key |
> | `daytona_delete_api_key_for_user` | Delete API key for user |
> | `daytona_delete_organization` | Delete organization |
> | `daytona_delete_organization_identity_provider` | Delete organization identity provider |
> | `daytona_delete_organization_member` | Delete organization member |
> | `daytona_delete_organization_otel_config` | Delete organization OpenTelemetry configuration |
> | `daytona_delete_organization_role` | Delete organization role |
> | `daytona_delete_region` | Delete a region |
> | `daytona_delete_registry` | Delete registry |
> | `daytona_delete_runner` | Delete runner |
> | `daytona_delete_sandbox` | Delete sandbox |
> | `daytona_delete_secret` | Delete secret |
> | `daytona_delete_volume` | Delete volume |
> | `daytona_delete_warm_pool` | Delete a warm pool |
> | `daytona_dismiss_pending_sso_link` | Dismiss a pending SSO account link |
> | `daytona_expire_signed_port_preview_url` | Expire signed preview URL for a sandbox port |
> | `daytona_fork_sandbox` | Fork a sandbox |
> | `daytona_generate_workos_admin_portal_link` | Generate a WorkOS Admin Portal link for configuring SSO or SCIM directory sync |
> | `daytona_get_account_providers` | Social sign-in providers (Google, GitHub, ...) enabled for this environment, each flagged with whether the authenticated user has an identity linked through it. |
> | `daytona_get_all_snapshots` | List all snapshots |
> | `daytona_get_api_key` | Get API key |
> | `daytona_get_audit_scenarios` | Returns the supported audit log actions grouped by target type. |
> | `daytona_get_authenticated_user` | Get authenticated user |
> | `daytona_get_build_logs` | This endpoint is deprecated. |
> | `daytona_get_build_logs_url` | Get build logs URL |
> | `daytona_get_current_api_key` | Get current API key's details |
> | `daytona_get_gang_membership_operation` | Get a membership operation of a multi-node GPU sandbox |
> | `daytona_get_gpu_capacity` | Returns a short-lived observation of the shared GPU fleet. |
> | `daytona_get_info_for_authenticated_runner` | Get info for authenticated runner |
> | `daytona_get_job` | Get job details |
> | `daytona_get_job_registry_mtls_credentials` | Redeem registry mTLS credentials for an active job |
> | `daytona_get_organization` | Get organization by ID |
> | `daytona_get_organization_audit_logs` | Get audit logs for organization |
> | `daytona_get_organization_by_sandbox_id` | Get organization by sandbox ID |
> | `daytona_get_organization_identity_provider` | Get organization identity provider |
> | `daytona_get_organization_invitations_count_for_authenticated_user` | Get count of organization invitations for authenticated user |
> | `daytona_get_organization_otel_config` | Get organization OTEL config by organization ID |
> | `daytona_get_organization_otel_config_by_sandbox_auth_token` | Get organization OTEL config by sandbox auth token |
> | `daytona_get_organization_usage_overview` | Get organization current usage overview |
> | `daytona_get_port_preview_url` | Get preview URL for a sandbox port |
> | `daytona_get_push_access` | Get temporary storage access for pushing objects |
> | `daytona_get_region_by_id` | Get region by ID |
> | `daytona_get_region_quota_by_sandbox_id` | Get region quota by sandbox ID |
> | `daytona_get_registry` | Get registry |
> | `daytona_get_runner_by_id` | Get runner by ID |
> | `daytona_get_runner_by_sandbox_id` | Get runner by sandbox ID |
> | `daytona_get_runner_full_by_id` | Get runner by ID |
> | `daytona_get_runners_by_snapshot_ref` | Get runners by snapshot ref |
> | `daytona_get_sandbox` | Sandboxes destroyed by spot preemption remain retrievable for 24 hours so 'spotEvictedAt' can be read. |
> | `daytona_get_sandbox_ancestors` | Get sandbox fork ancestor chain |
> | `daytona_get_sandboxes_for_runner` | Get sandboxes for the authenticated runner |
> | `daytona_get_sandbox_forks` | Get sandbox fork children |
> | `daytona_get_sandbox_identity_by_sandbox_auth_token` | Get sandbox identity by sandbox auth token |
> | `daytona_get_sandbox_id_from_signed_preview_url_token` | Get sandbox ID from signed preview URL token |
> | `daytona_get_sandbox_logs` | Retrieve OTEL logs for a sandbox within a time range |
> | `daytona_get_sandbox_metrics` | Retrieve OTEL metrics for a sandbox within a time range |
> | `daytona_get_sandbox_parent` | Get sandbox fork parent |
> | `daytona_get_sandbox_signing_key` | Get the signing key for a sandbox |
> | `daytona_get_sandbox_traces` | Retrieve OTEL traces for a sandbox within a time range |
> | `daytona_get_sandbox_trace_spans` | Retrieve all spans for a specific trace |
> | `daytona_get_secret` | Get secret |
> | `daytona_get_signed_port_preview_url` | Get signed preview URL for a sandbox port |
> | `daytona_get_signing_key` | Get the signing key for a sandbox |
> | `daytona_get_snapshot` | Get snapshot by ID or name |
> | `daytona_get_snapshot_build_logs` | This endpoint is deprecated. |
> | `daytona_get_snapshot_build_logs_url` | Get snapshot build logs URL |
> | `daytona_get_snapshot_refs_for_authenticated_runner` | Get snapshot refs for authenticated runner |
> | `daytona_get_telemetry_disabled_organization_ids` | Used by the OTEL collector's store pipeline to drop these organizations' records before ClickHouse. |
> | `daytona_get_toolbox_proxy_url` | Get toolbox proxy URL for a sandbox |
> | `daytona_get_transient_push_access` | Get temporary registry access for pushing snapshots |
> | `daytona_get_volume` | Get volume details |
> | `daytona_get_volume_by_name` | Get volume details by name |
> | `daytona_has_sandbox_access` | Check if user has access to the sandbox |
> | `daytona_health_controller_check` | health\_controller\_check |
> | `daytona_health_controller_live` | health\_controller\_live |
> | `daytona_is_preview_warning_enabled` | Check if the preview warning page is enabled for the sandbox |
> | `daytona_is_sandbox_public` | Check if sandbox is public |
> | `daytona_is_valid_auth_token` | Check if sandbox auth token is valid |
> | `daytona_leave_organization` | Leave organization |
> | `daytona_list_api_keys` | List API keys |
> | `daytona_list_available_regions` | List all available regions for the organization |
> | `daytona_list_available_sandbox_classes` | List available sandbox classes for organization |
> | `daytona_list_jobs` | Returns a paginated list of jobs for the runner, optionally filtered by status. |
> | `daytona_list_organization_identity_providers` | List organization identity providers |
> | `daytona_list_organization_invitations` | List pending organization invitations |
> | `daytona_list_organization_invitations_for_authenticated_user` | List organization invitations for authenticated user |
> | `daytona_list_organization_members` | List organization members |
> | `daytona_list_organization_roles` | List organization roles |
> | `daytona_list_organizations` | List organizations |
> | `daytona_list_pending_sso_links` | List pending SSO account links for the authenticated user |
> | `daytona_list_registries` | List registries |
> | `daytona_list_runners` | List all runners |
> | `daytona_list_sandboxes` | Advanced filtering and ordering. |
> | `daytona_list_secrets` | This endpoint is deprecated and fails for organizations with more than 1500 secrets. |
> | `daytona_list_secrets_paginated` | List secrets with pagination |
> | `daytona_list_shared_regions` | List all shared regions |
> | `daytona_list_volumes` | List all volumes |
> | `daytona_list_warm_pools` | List warm pools for the organization |
> | `daytona_list_workos_sso_connections` | List the SSO connections configured for the organization in WorkOS |
> | `daytona_pause_sandbox` | Pause sandbox |
> | `daytona_poll_jobs` | Long poll endpoint for runners to fetch pending jobs. |
> | `daytona_record_login` | Called by the dashboard once per completed sign-in. |
> | `daytona_record_support_contact` | Called by the dashboard when the blocked screen user clicks a support channel. |
> | `daytona_recover_sandbox` | Recover sandbox from error state |
> | `daytona_regenerate_proxy_api_key` | Regenerate proxy API key for a region |
> | `daytona_regenerate_snapshot_manager_credentials` | Regenerate snapshot manager credentials for a region |
> | `daytona_regenerate_ssh_gateway_api_key` | Regenerate SSH gateway API key for a region |
> | `daytona_remove_sandbox_nodes` | Remove the highest ranks from a multi-node sandbox |
> | `daytona_remove_snapshot` | Delete snapshot |
> | `daytona_replace_labels` | Replace sandbox labels |
> | `daytona_replace_sandbox_node` | Replace a failed multi-node sandbox rank |
> | `daytona_resize_sandbox` | Resize sandbox resources |
> | `daytona_resolve_sandbox_secrets` | Resolve sandbox secrets |
> | `daytona_revoke_ssh_access` | Revoke SSH access for sandbox |
> | `daytona_rotate_signing_key` | Rotate the signing key, invalidating all previously signed URLs |
> | `daytona_runner_healthcheck` | Endpoint for version 2 runners to send healthcheck and metrics. |
> | `daytona_set_auto_archive_interval` | Set sandbox auto-archive interval |
> | `daytona_set_auto_delete_interval` | Set sandbox auto-delete interval |
> | `daytona_set_auto_pause_interval` | Set sandbox auto-pause interval |
> | `daytona_set_autostop_interval` | Set sandbox auto-stop interval |
> | `daytona_set_organization_default_region` | Set default region for organization |
> | `daytona_set_ttl` | Set sandbox TTL |
> | `daytona_start_sandbox` | Starts a stopped or archived sandbox, or resumes a paused sandbox. |
> | `daytona_stop_sandbox` | Stops a single-node sandbox. |
> | `daytona_test_organization_identity_provider_connection` | Test OIDC identity provider connection |
> | `daytona_update_access_for_organization_member` | Update access for organization member |
> | `daytona_update_experimental_config` | Update experimental configuration |
> | `daytona_update_job_status` | Update job status |
> | `daytona_update_last_activity` | Update sandbox last activity |
> | `daytona_update_network_settings` | Changes outbound network policy on the runner for a running sandbox (for example block all traffic, restore access, or set a CIDR allow list). |
> | `daytona_update_organization_default_queue_timeout` | Set organization default queue timeout |
> | `daytona_update_organization_identity_provider` | Update organization identity provider |
> | `daytona_update_organization_invitation` | Update organization invitation |
> | `daytona_update_organization_otel_config` | Update organization OpenTelemetry configuration |
> | `daytona_update_organization_role` | Update organization role |
> | `daytona_update_public_status` | Update public status |
> | `daytona_update_region` | Update region configuration |
> | `daytona_update_registry` | Update registry |
> | `daytona_update_runner_draining` | Update runner draining status |
> | `daytona_update_runner_scheduling` | Update runner scheduling status |
> | `daytona_update_sandbox_secrets` | Replaces the set of vault secrets mounted in the sandbox. |
> | `daytona_update_sandbox_state` | Update sandbox state |
> | `daytona_update_secret` | Update secret |
> | `daytona_update_warm_pool` | Update a warm pool size |
> | `daytona_validate_ssh_access` | Validate SSH access for sandbox |
> | `daytona_webhook_controller_get_app_portal_access` | Get Svix Consumer App Portal access for an organization |
> | `daytona_webhook_controller_get_initialization_status` | Get webhook initialization status for an organization |
> | `daytona_webhook_controller_initialize_webhooks` | Initialize webhooks for an organization |
> | `daytona_webhook_controller_refresh_endpoints` | Refresh cached endpoint presence flag for an organization |

## Frequently asked questions

> [accordion] Can I limit an agent to sandbox operations only, without org admin access?
>
> Yes. Write a credential policy with ALLOW rules scoped to `daytona_*sandbox*` and `daytona_*snapshot*` operations and a DENY rule for org-administration operations. Guild's credential proxy enforces the rules before any request reaches Daytona.

> [accordion] Does the integration receive Daytona webhook events?
>
> No. The catalog entry lists no webhook events for this integration, so agents cannot trigger on Daytona events through Guild.

> [accordion] How does Guild keep my Daytona API key secure?
>
> Guild stores the key server-side and adds it as a bearer token in the Authorization header. Agent code never sees the credential; it is injected only after the credential policy check passes.

> [accordion] Can I give one workspace a different Daytona key than the rest of my organization?
>
> Yes. Connect a workspace-scoped credential from the workspace's Credentials page. Guild resolves workspace credentials ahead of the account-level default, so agents in that workspace use the key you specify.

## Put a governed agent on Daytona this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Daytona.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Daytona to your first agent.

## Related

**Also runs on Guild:** [Azure DevOps](https://docs.guild.ai/integrations/azure-devops.md) · [Bitbucket](https://docs.guild.ai/integrations/bitbucket.md) · [Buildkite](https://docs.guild.ai/integrations/buildkite.md) · [Convex](https://docs.guild.ai/integrations/convex.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
