How it works
- Omnara runs the agent loop and calls the model, so model keys never reach the instance. You launch agents from Omnara’s dashboard, CLI, API, or SDK.
- Each Omnara machine is one instance in your workspace, created from the pool’s template and size. Omnara names it
omnara-mch-...and setsomnara-installationandomnara-machinein itsmetadata. - Omnara starts its daemon on the instance with exec. The daemon connects out to Omnara, so the instance needs no public URL or open port.
- The instance stays on between turns and keeps its files and running processes. Omnara deletes it when you archive the agent.
Before you begin
- An Agent37 API key in
AGENT37_API_KEYand a funded workspace wallet. Create a key in the dashboard. Machines run and bill in that key’s workspace. - An Omnara Cloud account.
- Node.js 22 or newer, to run Omnara’s CLI with
npx.
1. Store your API key in Omnara
login opens your browser to approve the CLI, and config select picks the organization and project the next commands use. Note the secret id (sec_...) in the output.
2. Create the pool
- With no template in the provider options, machines use
agent37-omnara: Ubuntu 24.04 as root, working in/workspace, with Python, Node.js, Go, PostgreSQL, Redis,gh,rg, PDF tools, and Playwright with headless Chromium installed. To run your own image, see Use your own image. - CPU and memory must be one of Agent37’s sizes: 2 vCPU with 4096 MB, or 4 vCPU with 8192, 16384, or 32768 MB.
- Machines run in the
usregion.
mpo_...) in the output, then grant the pool to your project:
3. Launch an agent
Save this asagent.yaml:
agent.yaml
omnara-openrouter is the model provider every Omnara Cloud organization starts with. Launch the agent with a first task:
agt_...) in the output. Follow the conversation in the Omnara dashboard, or in your terminal:
4. Reach the machine yourself
The machine is an ordinary instance in your workspace. Find it by name:id as INSTANCE_ID, then read the file the agent wrote:
stdout is the date the agent wrote. The rest of the Sandbox API works on the machine too:
- A URL for every port. A server the agent starts on port 3000 answers at
https://{instanceId}-3000.agent37.appwith your key inX-Agent37-Key. A signed URL opens it in a browser, and a public port gives it an address that needs no key. - SSH. Add your public key once, then use
ssh,scp, or VS Code Remote to watch an agent work or pick up where it left off. See SSH.
Use your own image
A pool can run any workspace template in place ofagent37-omnara. Register a public linux/amd64 image with one call:
- Omnara starts its daemon with a command on the running instance, so the image’s main process only has to keep running. The
entrypointabove does that for an image whose own command exits. - Agents run commands as the image’s default user. Use an image that runs as root if agents should install packages.
- Omnara creates default instances, where Docker and systemd do not run (those need a VM), so use an image that needs neither.
- To build from a Dockerfile with no local Docker, run
npx agent37 templates build . --name omnara-machine. - Add
@<revision>, such asomnara-machine@2, to pin a published revision.
Billing and cleanup
Omnara does not put Agent37 machines to sleep, so an instance bills its running rate by the minute for as long as its agent keeps it. Archive an agent when it is done, which deletes its instance:--delete-after-idle-minutes, which takes 5 or more.
To remove the rest of what this guide created, delete the pool and the secret, then revoke the API key in the Agent37 dashboard: