diff --git a/docs.json b/docs.json index 7d21cd30..57a80903 100644 --- a/docs.json +++ b/docs.json @@ -57,6 +57,7 @@ "docs/agents/amp", "docs/agents/claude-code", "docs/agents/codex", + "docs/agents/devin", "docs/agents/openai-agents-sdk", { "group": "OpenClaw", diff --git a/docs/agents/devin.mdx b/docs/agents/devin.mdx new file mode 100644 index 00000000..aeab69b8 --- /dev/null +++ b/docs/agents/devin.mdx @@ -0,0 +1,46 @@ +--- +title: "Devin" +description: "Run Devin for Terminal in a secure E2B sandbox." +icon: "/images/icons/devin.svg" +--- + +[Devin for Terminal](https://devin.ai/terminal) is Cognition's coding agent for working directly from a terminal. You can install it in an E2B sandbox and use the sandbox as an isolated workspace for agent tasks. + +## Installation + +Use a PTY for install and login because Devin's setup is interactive. You can create a Devin account during sign up if you don't have one. + +```bash +e2b sandbox create base + +### +# Inside the sandbox +### +curl -fsSL https://cli.devin.ai/install.sh | bash + +source /home/user/.bashrc +``` + +## Usage + +After installation and login, use `devin -p` for non-interactive mode and `--permission-mode dangerous` to auto-approve tool calls. + +```bash +mkdir -p /home/user/project +cd /home/user/project + +devin --permission-mode dangerous -p "Create a hello world HTTP server in Go" +``` + +## Example: work on a cloned repository + +After installing Devin for Terminal and signing in, clone a repository and run Devin from the project directory. + +```bash +git clone https://github.com/your-org/your-repo.git /home/user/repo +cd /home/user/repo + +devin --permission-mode dangerous -p "Add error handling to all API endpoints" +``` + +Devin can edit files, run commands, and work on code inside the sandbox without accessing your local machine. diff --git a/images/icons/devin.svg b/images/icons/devin.svg new file mode 100644 index 00000000..4c8f3454 --- /dev/null +++ b/images/icons/devin.svg @@ -0,0 +1,4 @@ + + + +