# Config

> One JSON file sets models, agents, permissions and plugins, for every project or just one.

Ridge reads `ridge.json` from your home folder, then from the project. Project settings win.

```json
{
  "$schema": "https://ridge.example/config.json",
  "model": "provider/model-name",
  "permission": { "edit": "ask", "bash": "ask" }
}
```

## Where it looks

| File | Applies to |
| --- | --- |
| `~/.config/ridge/ridge.json` | Every project |
| `ridge.json` in the project | This project |

## Variables

Use `{env:NAME}` to read an environment variable, and `{file:path}` to read a file.

```json
{ "provider": { "acme": { "apiKey": "{env:ACME_KEY}" } } }
```
