Skip to main content
Omnara is an open-source hosted agent platform. After you connect Novita Sandbox, Omnara creates a Novita sandbox whenever an agent needs a machine, runs the agent’s commands inside the sandbox, and deletes the sandbox once the machine is released. This article explains how to create a Novita machine pool in Omnara and let an agent use it.

How it works

  1. You create a Novita machine pool in Omnara and fill in the Novita API Key and template.
  2. When an agent starts or calls create_machine, Omnara creates a sandbox from that template through the Novita API.
  3. Omnara starts its daemon omnarad in the sandbox. The daemon connects back to Omnara on its own, and the agent’s commands are then sent down that connection and executed in the sandbox.
  4. When the machine is released or the agent is archived, Omnara deletes the corresponding sandbox.
Sandboxes are created in long-running mode and are not reclaimed by a timeout while the agent holds them. The current version does not support idle sleep.

Prerequisites

  • An Omnara account: Omnara Cloud or a self-hosted instance.
  • A Novita account.
  • If Omnara is self-hosted: the instance must have a public HTTPS address that the Novita network can reach (OMNARA_PUBLIC_URL). The daemon downloads the install script from that address and establishes the connection, so an instance that only listens on localhost cannot use any cloud sandbox.

Setup

Create a Novita API Key

Create an API Key on the Key Management page in the Novita console.

Choose a template

The template determines each machine’s system environment, CPU and memory. Use the base template Novita’s base template works as-is: 2 vCPU, 1 GB memory, and Debian 12. Commands run as the user account, and the home directory is /home/user. Use a custom template A custom template must meet the following conditions for Omnara to install and start the daemon in it:
  • The runtime user has a writable HOME (or sets OMNARA_HOME).
  • A POSIX shell and common tools: curl, base64, sha256sum or shasum.
  • Outbound access to the Omnara API (HTTPS and WebSocket).
Example Dockerfile:
Build it with the Novita CLI and specify the size:
CLI
For how templates are built, see Novita’s template build documentation. Before choosing a size, confirm your account tier’s vCPU and memory quota.

Save the API Key in Omnara

Save the Novita API Key as an organization-level secret. On the dashboard, open Organization → Secrets in Omnara, create a new secret, and paste the API Key. You can also create it inline by clicking New secret in the next step when you create the machine pool. Save the Novita API Key as an organization secret in Omnara

Create a Novita machine pool

On the dashboard:
  1. Select All projects in the project switcher, open Machines, click New pool, and choose Novita.
  2. Select the API Key secret from the previous step.
  3. Enter the template name or template ID, for example base.
  4. Enter the per-machine CPU and memory limits and the total pool capacity. The limits must be no smaller than the template’s size.
The dashboard cannot set domain or the working directory; use the API when you need them. Create a Novita machine pool in Omnara API field reference CPU and memory are determined by the template, so default_machine_cpu and default_machine_memory_mb can be left empty.

Grant the machine pool to a project

Machine pools belong to the organization, and a project can use one only after it is granted access. On the dashboard, add the project grant in the machine pool’s details.

Step 6: Use it in the agent configuration

Reference the machine pool by name in machine_sources in agent.yaml:
The same setting in the Omnara dashboard, under Machine sources: Point an Omnara agent at the Novita machine pool After the agent starts, Omnara creates a sandbox on Novita. Once the machine changes from provisioning to online in Omnara, the agent can execute commands in it. You can see the sandbox in the Novita console or with novita sandbox list; it carries omnara-machine metadata. The agent reports the environment of its Novita sandbox
Last modified on December 4, 2026