Skip to main content
Devin for Terminal is Cognition’s coding agent for working directly from a terminal. E2B provides a pre-built devin template with Devin already installed. To run Devin cloud sessions in isolated E2B sandboxes, see Devin Outposts.

CLI

Create a sandbox with the E2B CLI.
Once inside the sandbox, start Devin and follow the interactive login flow. You can create a Devin account during sign up if you don’t have one.

Usage

After signing in, use devin -p for non-interactive mode and --permission-mode dangerous to auto-approve tool calls.
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure outbound network rules (allowInternetAccess, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Example: work on a cloned repository

After signing in, clone a repository and run Devin from the project directory.
Devin can edit files, run commands, and work on code inside the sandbox without accessing your local machine.