| 1 | # `mini-extra config`
|
| 2 |
|
| 3 | !!! abstract "Overview"
|
| 4 |
|
| 5 | * `mini-extra config` is a utility to manage the global configuration file.
|
| 6 | * Quickly start the it with `mini-extra config` or `mini-e config`.
|
| 7 |
|
| 8 | ## Commands
|
| 9 |
|
| 10 | ### `setup`
|
| 11 |
|
| 12 | Interactive setup wizard that helps you configure your default model and API keys.
|
| 13 |
|
| 14 | ```bash
|
| 15 | mini-extra config setup
|
| 16 | ```
|
| 17 |
|
| 18 | This will prompt you for:
|
| 19 |
|
| 20 | 1. Your default model (e.g., `anthropic/claude-sonnet-4-5-20250929`)
|
| 21 | 2. Your API key name and value (e.g., `ANTHROPIC_API_KEY`)
|
| 22 |
|
| 23 | ### `set`
|
| 24 |
|
| 25 | Set a specific key in the global config file.
|
| 26 |
|
| 27 | ```bash
|
| 28 | # example: set default model
|
| 29 | mini-extra config set MSWEA_MODEL_NAME anthropic/claude-sonnet-4-5-20250929
|
| 30 | # or interactively
|
| 31 | mini-extra config set
|
| 32 | ```
|
| 33 |
|
| 34 | ### `unset`
|
| 35 |
|
| 36 | Remove a key from the global config file.
|
| 37 |
|
| 38 | ```bash
|
| 39 | mini-extra config unset MSWEA_MODEL_NAME
|
| 40 | ```
|
| 41 |
|
| 42 | ### `edit`
|
| 43 |
|
| 44 | Open the global config file in your default editor (uses `$EDITOR` or `nano`).
|
| 45 |
|
| 46 | ```bash
|
| 47 | mini-extra config edit
|
| 48 | ```
|
| 49 |
|
| 50 | ## Configuration keys
|
| 51 |
|
| 52 | For more configuration options, see [global configuration](../advanced/global_configuration.md).
|
| 53 |
|
| 54 | ## Implementation
|
| 55 |
|
| 56 | ??? note "Run script"
|
| 57 |
|
| 58 | - [Read on GitHub](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/run/utilities/config.py)
|
| 59 | - [API reference](../reference/run/config.md)
|
| 60 |
|
| 61 | ```python
|
| 62 | --8<-- "src/minisweagent/run/utilities/config.py"
|
| 63 | ```
|
| 64 |
|
| 65 | {% include-markdown "../_footer.md" %}
|
| 66 |
|