File size: 4,449 Bytes
f201cf6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | # Quick start
!!! tip "Installation Options"
=== "pip"
Use pip to install `mini` in your current environment:
```bash
pip install mini-swe-agent
```
And try our command line interface
```bash
mini # simple UI
mini -v # visual UI
mini-extra # extra utilities
```
=== "uv (isolated)"
Use `uv`/`uvx` ([installation](https://docs.astral.sh/uv/getting-started/installation/)) to directly run the `mini` CLI.
Use this if you're only interested in the CLI but don't need python bindings (`mini` will be installed in an anonymous virtual environment).
Quickly install + run:
```bash
uvx mini-swe-agent # simple UI
uvx mini-swe-agent -v # visual UI
uvx --from mini-swe-agent mini-extra # extra utilities
```
Permanently install
```bash
uv tool install mini-swe-agent
# then
mini # simple UI
mini -v # visual UI
mini-extra # extra utilities
```
=== "pipx (isolated)"
Use pipx ([installation](https://pipx.pypa.io/stable/installation/)) to directly run the `mini` CLI.
Use this if you're only interested in the CLI but don't need python bindings (`mini` will be installed in an anonymous virtual environment).
Quick install + run:
```bash
# Simple UI
pipx run mini-swe-agent
# Textual UI
pipx run mini-swe-agent -v
# Extra utilities
pipx run --spec mini-swe-agent mini-extra
```
or for a persistent installation (recommended):
```bash
pipx install mini-swe-agent
# then
mini # simple UI
mini -v # visual UI
mini-extra # extra utilities
```
If the invocation doesn't immediately work, you might need to run `pipx ensurepath`.
=== "From source/dev"
For development or if you want to customize the agent:
```bash
git clone https://github.com/SWE-agent/mini-swe-agent.git
cd mini-swe-agent
pip install -e .
```
Then run:
```bash
mini # simple UI
mini -v # visual UI
mini-extra # extra utilities
```
Or pick a [run script](https://github.com/SWE-agent/mini-swe-agent/tree/main/src/minisweagent/run):
```bash
python src/minisweagent/run/hello_world.py
```
If you are planning to contribute, please also install the dev dependencies
and `pre-commit` hooks:
```bash
pip install -e '.[dev]'
pip install pre-commit && pre-commit install
```
To check your installation, you can run `pytest -n auto` in the root folder.
This should run all tests in parallel (should take ~3min to run).
Note that there are still some extra dependencies that are not installed by default
(basically anything that is in an `.../extra/...` folder).
If you truly want to get the maximal package, you can run `pip install -e '.[full]'`
!!! note "Changelog"
Please see the [github release notes](https://github.com/SWE-agent/mini-swe-agent/releases) for recent changes.
!!! example "Example Prompts"
Try mini-SWE-agent with these example prompts:
- Implement a Sudoku solver in python in the `sudoku` folder. Make sure the codebase is modular and well tested with pytest.
- Please run pytest on the current project, discover failing unittests and help me fix them. Always make sure to test the final solution.
- Help me document & type my codebase by adding short docstrings and type hints.
## Models
!!! note "Models should be set up the first time you run `mini`"
* If you missed the setup wizard, just run `mini-extra config setup`
* For more information, please check the [model setup quickstart](models/quickstart.md).
* If you want to use local models, please check this [guide](models/local_models.md).
Tip: Please always include the provider in the model name, e.g., `anthropic/claude-...`.
!!! success "Which model to use?"
We recommend using `anthropic/claude-sonnet-4-5-20250929` for most tasks.
For openai models, we recommend using `openai/gpt-5` or `openai/gpt-5-mini`.
You can check scores of different models at our [SWE-bench (bash-only)](https://swebench.com) leaderboard.
|