> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivvr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Projects and clusters

> Choose which project and cluster commands use, override them for a single command, and see where settings are stored.

Almost every command works inside a project. Creating a model also needs a cluster. Choose them once and `rivvr` remembers them:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr project list              # see your projects
rivvr project use research      # choose one

rivvr cluster list              # see clusters in that project
rivvr cluster use development   # choose one
```

`use` first checks that you have access, then saves your choice.

Your saved choices are cleared in two cases:

* When you switch to another project, the saved cluster is cleared if it belonged to the old project.
* When you sign in to a different account or a different Rivvr URL, both the project and the cluster are cleared.

## For one command only

Every command accepts `--project` and `--cluster`. They apply to that one command and don't change your saved choice:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model list --project research --cluster development
```

The saved cluster doesn't filter lists. `rivvr model list` shows all models in the project unless you add `--cluster`.

It does decide where new models go. If you have no saved cluster, `model create` uses the project's only `ACTIVE` cluster, or asks you to choose if there are several. Scripts can't answer that question, so always pass `--cluster` in scripts.

## Names or IDs

Wherever a command asks for a project, cluster, model, or other item, you can give its name or its ID. Names don't have to be unique. If a name matches more than one item, Rivvr refuses it; use the ID instead. `list --wide` shows full IDs.

## Which setting wins

The Rivvr URL, project, and cluster can each come from three places. `rivvr` uses the first one it finds, in this order:

1. An option in the command: `--api-url`, `--project`, `--cluster`
2. An environment variable: `RIVVR_API_URL`, `RIVVR_PROJECT`, `RIVVR_CLUSTER`
3. Your saved choice

If a command uses the wrong project or cluster, run:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr config show
```

It shows each value and where it came from.

## Environment variables

| Variable | What it sets |
| - | - |
| `RIVVR_API_URL` | Rivvr URL |
| `RIVVR_PROJECT` | Project name or ID |
| `RIVVR_CLUSTER` | Cluster name or ID |
| `RIVVR_ACCESS_TOKEN` | Short-lived access token for signing in |
| `RIVVR_USERNAME`, `RIVVR_PASSWORD` | Sign in without typing; set both |
| `RIVVR_INFERENCE_KEY_ID`, `RIVVR_INFERENCE_KEY` | Inference key for this run only; set both |
| `CI` | Any value except empty, `false`, or `0` turns off questions and colored output |

The sign-in variables are explained in [CI authentication](https://docs.rivvr.ai/configuration/ci.md).

## Where settings are saved

`rivvr` saves your Rivvr URL and your chosen project and cluster in a file called `config.json`:

* macOS: `~/Library/Application Support/rivvr/config.json`
* Linux: `$XDG_CONFIG_HOME/rivvr/config.json`, usually `~/.config/rivvr/config.json`
* Windows: `%APPDATA%\rivvr\config.json`

Passwords and keys are never written to this file. They're kept in your system's keychain.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.