Skip to main content
Omnara is an open-source platform for managed agents. It runs the agent loop and keeps the state, and you choose the models, tools, and machines. Agent37 is one of its machine pool providers: connect your workspace, and every agent gets its own Agent37 instance, an always-on Linux computer that keeps its files, starts in seconds, and bills by the minute, from $4.76 a month.

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 sets omnara-installation and omnara-machine in its metadata.
  • 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_KEY and 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 us region.
Note the pool id (mpo_...) in the output, then grant the pool to your project:
Omnara’s dashboard does the same: on the Machines page, click New pool and choose Agent37.

3. Launch an agent

Save this as agent.yaml:
agent.yaml
omnara-openrouter is the model provider every Omnara Cloud organization starts with. Launch the agent with a first task:
Omnara creates an instance from the pool, and the agent runs its commands there. Note the agent id (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:
Export its 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.app with your key in X-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 of agent37-omnara. Register a public linux/amd64 image with one call:
Then name it in the provider options when you create the pool:
  • Omnara starts its daemon with a command on the running instance, so the image’s main process only has to keep running. The entrypoint above 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 as omnara-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:
To have Omnara delete machines that sit idle, create the pool with --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:
Agent37 bills compute and storage through your wallet; model usage is billed through Omnara.