diff --git a/README.md b/README.md index 5adb6f2d9f..5c2b109ab1 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,22 @@ OpenDevin agents collaborate with human developers to write code, fix bugs, and  -## ⚡ Quick Start -You can run OpenDevin with Docker. It works best with the most recent -version of Docker, `26.0.0`. +## ⚡ Getting Started +The easiest way to run OpenDevin is inside a Docker container. It works best with the most recent version of Docker, `26.0.0`. +You must be using Linux, Mac OS, or WSL on Windows. + +To start the app, run these commands, replacing `$(pwd)/workspace` with the directory you want OpenDevin to work with. ```bash -#The directory you want OpenDevin to modify. MUST be an absolute path! +# The directory you want OpenDevin to work with. MUST be an absolute path! export WORKSPACE_BASE=$(pwd)/workspace; +``` +> [!WARNING] +> OpenDevin runs bash commands within a Docker sandbox, so it should not affect your machine. +> But your workspace directory will be attached to that sandbox, and files in the directory may be modified or deleted. + +```bash docker run \ -it \ --pull=always \ @@ -64,6 +72,8 @@ docker run \ ghcr.io/opendevin/opendevin:0.5 ``` +You'll find OpenDevin running at [http://localhost:3000](http://localhost:3000). + ## 🚀 Documentation To learn more about the project, and for tips on using OpenDevin, diff --git a/docs/modules/usage/intro.mdx b/docs/modules/usage/intro.mdx index 40a4a5ddd7..9efa90fcef 100644 --- a/docs/modules/usage/intro.mdx +++ b/docs/modules/usage/intro.mdx @@ -58,18 +58,13 @@ Explore the codebase of OpenDevin on [GitHub](https://github.com/OpenDevin/OpenD ## 🛠️ Getting Started -The easiest way to run OpenDevin is inside a Docker container. +The easiest way to run OpenDevin is inside a Docker container. It works best with the most recent version of Docker, `26.0.0`. +You must be using Linux, Mac OS, or WSL on Windows. To start the app, run these commands, replacing `$(pwd)/workspace` with the directory you want OpenDevin to work with. ``` -# Your OpenAI API key, or any other LLM API key -export LLM_API_KEY="sk-..." -``` - -``` -# The directory you want OpenDevin to modify. -# MUST be an absolute path! +# The directory you want OpenDevin to work with. MUST be an absolute path! export WORKSPACE_BASE=$(pwd)/workspace ``` @@ -91,7 +86,7 @@ docker run \ ghcr.io/opendevin/opendevin:0.5 ``` -You'll find opendevin running at [http://localhost:3000](http://localhost:3000). +You'll find OpenDevin running at [http://localhost:3000](http://localhost:3000). :::tip If you want to use the **(unstable!)** bleeding edge, you can use `ghcr.io/opendevin/opendevin:main` as the image (last line). diff --git a/docs/src/components/Code/Code.tsx b/docs/src/components/Code/Code.tsx deleted file mode 100644 index ce0ac27a22..0000000000 --- a/docs/src/components/Code/Code.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import Link from "@docusaurus/Link"; -import { Header } from "@site/src/pages"; -import { CodeBlock } from "./CodeBlock"; -import styles from "./styles.module.css"; - -export function Code() { - const workspaceCode = `# The directory you want OpenDevin to modify. MUST be an absolute path! -export WORKSPACE_BASE=$(pwd)/workspace`; - - const dockerCode = `docker run \\ - -it \\ - --pull=always \\ - -e SANDBOX_USER_ID=$(id -u) \\ - -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \\ - -v $WORKSPACE_BASE:/opt/workspace_base \\ - -v /var/run/docker.sock:/var/run/docker.sock \\ - -p 3000:3000 \\ - --add-host host.docker.internal:host-gateway \\ - ghcr.io/opendevin/opendevin:0.5`; - - return ( -
- {tokens.map((line, i) => (
-
-
- {i + 1}
-
- {line.map((token, key) => (
-
- ))}
-
- ))}
-
- )}
-