Prerequisites
- VS Code installed.
- The Ona extension installed.
- The Remote - SSH extension installed.
Opening an environment
- Start an environment in Ona.
- Click the Open button on the action bar. This opens the environment in your default editor. The button is available at any stage, even when the environment is not fully running yet.
- To choose a different editor, click the dropdown arrow next to the Open button and select from the list.
First-time setup
On first use, VS Code will prompt you to:- Install the Ona extension. Click Allow when prompted. The extension configures your local SSH settings automatically.
- Install Remote - SSH. Click Install if prompted. This extension is required for the SSH connection.
- Authenticate. A browser window opens to sign in to your Ona account. After signing in, you are redirected back to VS Code.
If authentication fails, close the browser tab and try opening the environment again.
Workspace Trust
VS Code may prompt you to trust the workspace when connecting to a new environment. Ona environments run in isolated VMs, so you can safely click Trust Folder & Continue if you’re familiar with the repository. See the VS Code documentation for details.Managing your environment
Environment Details
Check the status, active branch, and logs using the Environment Details panel. Re-open it with theOna: Show Environment Details command from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
Commands
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and type Ona to see all available commands. You can also click the remote indicator in the bottom-left corner for a quick menu.

Rebuild
Rebuild the container to apply changes to.devcontainer.json, Dockerfile, or docker-compose.yml:
- Command Palette:
Ona: Rebuild Container - Prompt: VS Code detects configuration changes and offers to rebuild automatically.
Ona output channel for rebuild logs.
Troubleshooting
Limitations
- Port forwarding does not work for hosts other than
localhost(e.g., other services in a docker-compose.yml).- Workaround: Use
network_mode: hostin your docker-compose.yml for services you want to port forward.
- Workaround: Use
remoteEnvenvironment variable values are not applied unless the Dev Container is rebuilt.
Build failures
If a build fails, you enter recovery mode:- Check the error messages in the Environment Details panel.
- Inspect the build logs in the Output panel.
- Fix the
.devcontainer.jsonconfiguration. - Rebuild using
Ona: Rebuild Container.
Authentication issues
- Use
Ona: Sign Outto sign out. - Sign in again with the same or a different account.
Connection issues after rebuild (macOS)
Allow VS Code’s “Code Helper.app” in your firewall settings, then restart VS Code and rebuild.General issues
- Check the
Onaoutput view for errors. - Check your network settings. VPN or firewall can interfere.
- When sharing reports with support:
- Set log level to Trace via
Developer: Set Log Level... - Set
remote.SSH.logLeveltotracein VS Code settings. - Use
Ona: Export all logsfrom the problematic window.
- Set log level to Trace via
Uninstalling
RunOna: Uninstall Extension to remove the extension and clean up SSH configuration. Removing the extension through VS Code’s extension panel does not clean up SSH settings.
If you already removed the extension without using the command, reinstall it and run the uninstall command.