Skip to content

Daytona.Region reference

Source: packages/daytona/src/Region.ts

A custom region: your own compute (see Runner) registered with Daytona, so sandboxes run on machines you operate while Daytona runs the control plane. Needs an organization allowed to bring its own compute.

Daytona shows the region’s API keys only when they are created or rotated, so alchemy keeps them in state as Redacted values. Bump a rotate counter to rotate one.

export const Home = Daytona.Region("Home", {
proxyUrl: "https://proxy.daytona.example.com",
sshGatewayUrl: "ssh.daytona.example.com:2222",
});

Source: packages/daytona/src/Runner.ts

A runner: a machine you operate that hosts sandboxes for a custom Region. Declaring it registers the runner and mints the API key its daemon uses; you then start the daemon on the machine with that key.

export const Box1 = Daytona.Runner("Box1", { region: Home });