Skip to main content
Cloud development environments run agents in short-lived workspaces with no person at a terminal to sign in. Running those agents through Ultra gives their tool calls the same Activity visibility and governance as a developer laptop or a CI pipeline. Setup follows the same pattern on any provider: install Ultra when the environment is built, authenticate with a deploy key, and point the agent’s MCP config at Ultra. This page uses Ona as the worked example; Ultra has a dedicated Ona integration that makes setup automatic.

Before you start

1

Create a deploy key

Interactive ultra login is not available in a cloud environment, so the deploy key is how each environment authenticates. In Ultra Hub, go to Settings > Security and create a workspace-scoped key in the Deploy Keys section. See Deploy keys.
2

Store it as a secret

Add the key as ULTRA_DEPLOY_KEY in your provider’s environment variables or secrets. In Ona, use your organization’s environment variables.To attribute activity to a person, also set ULTRA_DEVICE_EMAIL to their work email. It must match a member of your organization. See Identity resolution.

Set up Ona

Add a .devcontainer/devcontainer.json to your repository:
When the environment is built, this installs Ultra, adds it to Ona’s MCP config, and moves any existing connectors behind it. Each later start moves connectors added since. Both commands are safe to re-run. If your repository already has a devcontainer.json, append the Ultra commands to your existing hooks. To authenticate install.sh before it runs, use the verified install flow. Rebuild your Ona environments. Each one links to Ultra Hub as a device, with no per-user sign-in.

Other environments

The same steps work in any Linux environment that runs a setup hook when it is built. Install Ultra with the install script, make the deploy key available to Ultra through ULTRA_DEPLOY_KEY or ultra config set deploy-key <key>, run ultra install --agent <agent> --yes for the agent in that environment, then run ultra migrate --from <agent> --all --yes to move its existing connectors behind Ultra. See Configure agents for the supported agents.

Verification

After rebuilding, run diagnostics inside the environment:
Then have the agent make a tool call and confirm it appears in Hub Activity.

Troubleshooting

Ona’s devcontainer hooks can run before Ona identifies the environment, so this warning can appear inside an Ona environment. It is a warning, not a failure: an explicit ultra install --agent ona continues and configures the repository. Run it from inside the repository you want configured.
Ona’s agent reads its MCP config at the start of each execution. Start a new conversation after the devcontainer hooks finish. To pull in connectors added to .ona/mcp-config.json without a rebuild, run ultra migrate --from ona --all --yes.
Run ultra doctor inside the environment: it reports link status and identity resolution. If the deploy key isn’t picked up, confirm ULTRA_DEPLOY_KEY is set in the environment.