Kiwi Code Docs

Remote Agents with Daytona

Run code in isolated cloud sandboxes instead of your local machine.

Remote Agents with Daytona

By default, Kiwi Code runs commands on your local machine through the CLI runtime. With Daytona, you can run code in isolated cloud sandboxes instead — giving you security, configurable compute, and the ability to run untrusted code safely.

When to Use Remote Sandboxes

Use CaseWhy Remote
Untrusted or experimental codeSandboxes are fully isolated — nothing touches your machine
Heavy computeNeed 8 cores and 16 GB RAM? Configure the sandbox
Long-running jobsLet it run in the cloud without blocking your terminal
Browser automation & UI testingVNC desktop support for graphical environments
Reproducible environmentsClean sandbox every time, no local dependency conflicts
CI/CD-style workflowsRun, collect artifacts, tear down

How to Use Daytona

From the Web Dashboard

In the web dashboard at kiwicode.ai, prompt the AI to use a remote sandbox:

Run this Python script in a Daytona sandbox with 4 cores and 8 GB RAM:
[paste your script or describe the task]
Create a sandbox and run the test suite for this project.
Collect the coverage report as an artifact.
Open a browser in a Daytona sandbox and screenshot the homepage of example.com

The AI handles sandbox creation, code execution, and artifact collection automatically.

Checking Job Status

From the TUI or CLI, you can check the status of remote jobs:

# List your Daytona jobs
kiwicli runs list --status processing

# Get details on a specific run
kiwicli runs get <run_id>

What Happens Behind the Scenes

  You (prompt)


  Kiwi AI (cloud)

    ├─ Creates Daytona sandbox
    ├─ Executes code inside sandbox
    ├─ Collects output files (artifacts)
    └─ Returns results to you
  1. The AI provisions an isolated cloud sandbox with the requested resources
  2. Code runs inside the sandbox with full terminal access
  3. Output files are collected and made available to you
  4. The sandbox auto-stops when done (or can be kept alive for follow-up work)

Compute Options

Request different levels of compute based on your task:

ProfileCPUMemoryGood For
Default1 core2 GBSimple scripts, linting
Small2 cores4 GBUnit tests, small builds
Medium4 cores8 GBIntegration tests, compilation
Large8 cores16 GBML training, large builds

Ask for what you need in your prompt:

Run this training script in a large sandbox (8 cores, 16 GB)

VNC Desktop

For tasks that need a graphical environment, Daytona sandboxes can provide a VNC desktop accessible from your browser:

Open a Daytona sandbox with VNC and automate the signup flow on staging.example.com

The AI gets a full Linux desktop with a browser, enabling visual automation and UI testing.

Artifacts

Files created during remote execution are automatically collected and made available to you. Common artifact types:

  • Test coverage reports
  • Build outputs
  • Screenshots and recordings
  • Generated files and exports
  • Log files

Local vs Remote — Which to Choose

Local RuntimeDaytona Sandbox
SpeedInstant startupA few seconds to provision
IsolationRuns on your machineFully isolated cloud VM
ComputeYour hardwareConfigurable CPU/memory
Best forInteractive coding, file editingHeavy compute, untrusted code, CI/CD
FilesDirect access to your filesystemArtifacts uploaded after execution

Daytona is available from the web dashboard

Remote sandbox execution is orchestrated by the backend. Use the web dashboard to trigger Daytona runs. The TUI connects your local runtime for interactive coding.

On this page