Skip to content

Installation

You can install Daytona on Linux, macOS, and Windows systems on both x86-64 and AArch64 architectures. The recommended installation method leverages a shell script to automate setup. Alternatively, you can install Daytona through a third-party package manager.

The recommended way to install Daytona is by executing the official installation script. This script will download the appropriate binary for your machine and ensure it’s executable.

Linux and macOS

Prerequisites

  • A POSIX-compatible shell such as bash or zsh.

Procedure

  1. Run the following command in your shell:
    Terminal window
    (curl -sf -L https://download.daytona.io/daytona/install.sh | sudo bash) && daytona server -y && daytona
  2. Read and follow the instructions printed in your console.

Windows

Prerequisites

  • A functional PowerShell installation.

Procedure

  1. Run the following command in PowerShell:
    Terminal window
    $architecture = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "amd64" } else { "arm64" }
    md -Force "$Env:APPDATA\bin\daytona"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
    Invoke-WebRequest -URI "https://download.daytona.io/daytona/latest/daytona-windows-$architecture.exe" -OutFile "$Env:APPDATA\bin\daytona\daytona.exe";
    $env:Path += ";" + $Env:APPDATA + "\bin\daytona"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
    daytona serve;

Package Managers

Daytona is available for a number of package managers across Linux and macOS.

Homebrew

Homebrew can be used to install Daytona on macOS and Linux.

Prerequisites

  • A machine running macOS or Linux.
  • A working installation of Homebrew.

Procedure

  1. Execute the following command to install Daytona:
    Terminal window
    brew install daytonaio/daytona/daytona

Nix

Daytona is available on nixpkgs unstable as daytona-bin.

Ephemeral Usage

You can use nix-shell to try Daytona before permanently installing it on your system.

Prerequisites

  • A working installation of Nix or NixOS.

Procedure

  1. Execute the following command to spawn a shell with the Daytona binary:
    Terminal window
    nix-shell -p daytona-bin

Install Globally

To permanently install Daytona on your system, you can add it to the relevant global configuration:

  • On NixOS systems, add daytona-bin as a system package in /etc/nixos/configuration.nix.
  • On other Linux systems, add daytona-bin as a local package using home-manager.
  • On macOS systems, add daytona-bin as a system package using nix-darwin.