# Configuration

Spiderfootplus reads a YAML config file and overlays `SPIDERFOOTPLUS_*` environment
variables on top. Nothing is required — it runs on sensible defaults.

## Create a config

```sh
spiderfootplus config --init        # writes spiderfootplus.yaml
spiderfootplus config               # show the resolved settings (keys shown by name only)
```

Pass it with `-c`, or set `SPIDERFOOTPLUS_CONFIG`:

```sh
spiderfootplus -c spiderfootplus.yaml scan example.com
```

## Settings

```yaml
database: spiderfootplus.db      # SQLite file (:memory: for throwaway runs)
max_concurrency: 64             # module handlers running at once
http_timeout_secs: 20
proxy: socks5://127.0.0.1:9050  # optional; Tor is just a socks5 proxy
legacy_modules_dir: modules/legacy

# API keys by module name (without the sfp_ prefix for legacy modules)
api_keys:
  shodan: "..."
  hunter: "..."

# Per-module option overrides
modules:
  port_scan:
    ports: "21,22,25,80,443,8080,8443"

# Scan scope for every scan (added to --skip / --only); see guides/scope.md
scope:
  skip: [status.example.com, 203.0.113.0/24]
  only: []
```

## Environment variables

Every value can come from the environment — useful for CI and containers:

| Variable | Sets |
| --- | --- |
| `SPIDERFOOTPLUS_DATABASE` | database path |
| `SPIDERFOOTPLUS_PROXY` | proxy URL |
| `SPIDERFOOTPLUS_MAX_CONCURRENCY` | concurrency |
| `SPIDERFOOTPLUS_LEGACY_MODULES` | legacy module directory |
| `SPIDERFOOTPLUS_API_KEY_<MODULE>` | an API key, e.g. `SPIDERFOOTPLUS_API_KEY_SHODAN` |
| `SPIDERFOOTPLUS_CONFIG` | config file path |
| `NO_COLOR` | disable coloured output |

Which providers need a key, and which still have a free tier, is in
[Data providers](https://spiderfootplus.com/docs/reference/providers).
