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]

Docs: Improve installation steps

Kilian Lieretef9f3d06ace0
diff --git a/docs/installation/source.md b/docs/installation/source.md
index 0e32d405..5ccda634 100644
--- a/docs/installation/source.md
+++ b/docs/installation/source.md
@@ -4,14 +4,25 @@ Installation from source is the preferred way to set up SWE-agent on your machin
!!! warning "Issues on Windows"
Expect some issues with Windows (we're working on them).
- In the meantime, use Docker (see below).
+ In the meantime, [use Docker](docker.md).
1. [Install Docker](https://docs.docker.com/engine/install/), then start Docker locally.
2. If you plan on using the web-based GUI: Install [`nodejs`][nodejs-install].
-3. Clone the repository (`git clone https://github.com/princeton-nlp/SWE-agent.git`)
-4. Run `pip install --editable .` at the repository root (as with any python setup, it's recommended to use [conda][] or [virtual environments][] to manage dependencies). Error about editable install? Please update pip[^1].
-5. Run `./setup.sh` to create the `swe-agent` docker image.
-6. Create a `keys.cfg` file at the root of this repository ([more information](keys.md)).
+3. Clone the repository, for example with
+ ```bash
+ git clone https://github.com/princeton-nlp/SWE-agent.git
+ ```
+4. Run
+ ```
+ pip install --editable .
+ ```
+ at the repository root (as with any python setup, it's recommended to use [conda][] or [virtual environments][] to manage dependencies). Error about editable install? Please update pip[^1].
+5. Run
+ ```bash
+ docker pull sweagent/swe-agent:latest
+ ```
+Alternatively, you can run `./setup.sh` to create your own `swe-agent` docker image.
+6. Set up your LM API keys as explained [here](keys.md).
[nodejs-install]: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
@@ -22,6 +33,12 @@ Installation from source is the preferred way to set up SWE-agent on your machin
SWE-agent is still in active development. Features and enhancement are added often.
To make sure you are on the latest version, periodically run `git pull`
(there is no need to redo the `pip install`).
+ You might also want to run `git pull sweagent/swe-agent:latest` periodically
+ (though changes to the container are more rare).
+
+!!! note "Development setup"
+ Want to modify SWE-agent? Great! There are a few extra steps and tips:
+ Please check our [contribution guide](../dev/contribute.md).
[conda]: https://docs.conda.io/en/latest/
[virtual environments]: https://realpython.com/python-virtual-environments-a-primer/
diff --git a/mkdocs.yml b/mkdocs.yml
index 7bfeebe0..a4b1bdf9 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -50,7 +50,7 @@ nav:
- "Use in-browser": "installation/codespaces.md"
- "Install from source": "installation/source.md"
- "Docker": "installation/docker.md"
- - "Adding your keys": "installation/keys.md"
+ - "API keys": "installation/keys.md"
- "Installation tips": "installation/tips.md"
- "Changelog": "installation/changelog.md"
- Usage: