Skip to main content
Add a Dev Container to your repository so every environment, whether started by a teammate or an agent, launches with the right runtimes, tools, and services already running.
  • Agents get a reproducible environment to execute commands, run tests, and iterate
  • New team members start an environment and immediately have everything they need
  • Everyone works in the same setup, no more “it works on my machine”
A Dev Container can include language runtimes, databases, tools, editor extensions, environment variables, and startup tasks.

Create your first Dev Container

Create a .devcontainer/devcontainer.json file in your repository:
This gives you:
  • Node.js 20 with npm
  • Docker available inside the environment
  • ESLint and Prettier extensions
  • Dependencies installed automatically
Start an environment from your repository. Ona builds the container and you’re ready to code.

Run tasks on startup

For more control over startup behavior, use Tasks & Services:
Now every environment starts with dependencies installed and a database running.

Verify it works

Once your environment starts, verify the setup. These examples assume a Node.js project. Substitute your own project’s commands:
If your project’s commands work inside the environment, your Dev Container is ready. Agents will be able to run the same commands reliably.

Next steps