Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Doc: More installation hints

Kilian Lieretdde56b31b5f9
diff --git a/README.md b/README.md
index f0183d28..a32a8676 100644
--- a/README.md
+++ b/README.md
@@ -76,6 +76,8 @@ docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
> * For more information on the different API keys/tokens, see [below](#-add-your-api-keystokens).
> * If you're using docker on Windows, use `-v //var/run/docker.sock:/var/run/docker.sock`
> (double slash) to escape it ([more information](https://stackoverflow.com/a/47229180/)).
+> * See the [installation issues section](#-installation-issues) for more help if you run into
+> trouble.
### 🐍 Setup with conda (development version)
@@ -95,6 +97,9 @@ To install the development version:
> container with the `Dockerfile` at the root of this repository by running
> `docker build -t sweagent/swe-agent-run:latest .`
+> [!TIP]
+> If you run into docker issues, see the [installation issues section](#-installation-issues) for more help
+
### 🔑 Add your API keys/tokens
For the conda setup, create a `keys.cfg` file at the root of this repository and populate it with your API keys.
@@ -124,6 +129,15 @@ OPENAI_API_BASE_URL: 'LM base URL here if using Local or alternative api Endpoin
See the following links for tutorials on obtaining [Anthropic](https://docs.anthropic.com/claude/reference/getting-started-with-the-api), [OpenAI](https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key), and [Github](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) tokens.
+### More installation tips
+
+If you seem to be having issues with running docker
+
+* Make sure that you use the default socket. In Docker desktop, click *Settings* > *Advanced* > *Allow the default Docker socket to be used (requires password)*
+* If your docker installation uses a different socket, you might have to symlink them, see [this command for example](https://github.com/princeton-nlp/SWE-agent/issues/20#issuecomment-2047506005)
+
+Any remaining issues? Please [open a GitHub issue](https://github.com/princeton-nlp/SWE-agent/issues/new/choose)!
+
## 🔥 Quickstart: Solve real-life GitHub issues! <a name="real-life"></a>
Using this script, you can run SWE-agent on any GitHub issue!
@@ -133,7 +147,6 @@ python run.py --model_name gpt4 \
--config_file config/default_from_url.yaml
```
-
> [!TIP]
> You can have the agent automatically open a PR if the issue has been solved by supplying the `--open_pr`
> flag. Please use this feature responsibly (on your own repositories or after careful consideration).