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

# Configuration

> Project and personal defaults for limits, versions, workspaces and sync.

ProofPod works without any configuration. When you want defaults that differ
from the built-in ones, there are two files.

## Precedence

Highest first:

1. Command-line options: `pp --cpu 8 lake build`
2. Environment variables: `PROOFPOD_CPU=8`
3. `proofpod.toml` in the project root
4. `~/.config/proofpod/config.toml`
5. Built-in defaults

## `proofpod.toml`

Lives next to your lakefile. Commit it so everyone on the project, and CI, gets
the same settings.

```toml proofpod.toml theme={null}
# Limits for cloud commands. You pay for use, not for these ceilings.
cpu = 16
memory = "64G"
timeout = "4h"

# Versions to use in the cloud instead of the ones this checkout uses.
# Leave these out to follow lean-toolchain and lake-manifest.json.
lean = "v4.36.0"
mathlib = "v4.36.0"

# Use one named workspace for everyone who builds this project.
workspace = "myproject-main"

# Set to false to never copy files changed in the cloud back to the checkout.
sync_back = true

[sync]
# Extra files to leave out of the upload, on top of .gitignore.
exclude = ["data/", "*.pdf", "notebooks/"]

[env]
# Environment variables for cloud commands.
LEAN_ABORT_ON_PANIC = "1"
```

| Key | Type | Default | Description |
| - | - | - | - |
| `cpu` | number | `4` | CPU limit in physical cores. |
| `memory` | string | `"16G"` | Limit on allocated memory. |
| `timeout` | string | `"1h"` | Maximum run time. |
| `lean` | string | from `lean-toolchain` | Lean version in the cloud. |
| `mathlib` | string | from `lake-manifest.json` | Mathlib revision in the cloud. |
| `workspace` | string | derived | Named workspace. |
| `sync_back` | boolean | `true` | Copy files changed by a command back. |
| `sync.exclude` | list of strings | `[]` | Patterns excluded from sync. |
| `env` | table | `{}` | Environment variables for commands. |

### Exclude patterns

Patterns use shell-style wildcards and are matched against paths relative to
the project root:

* `data/` or `data` excludes that directory and everything under it.
* `*.pdf` excludes any file with that extension, at any depth.
* `docs/*.png` excludes matching files in that directory.

`.lake/`, `.git/` and `.proofpod/` are always excluded.

## `~/.config/proofpod/config.toml`

Your personal defaults. It accepts the same top-level keys as `proofpod.toml`
(`cpu`, `memory`, `timeout`, `lean`, `mathlib`, `workspace`, `sync_back`), plus:

| Key | Description |
| - | - |
| `url` | Service URL, if you are not using `https://proofpod.dev`. |

```toml ~/.config/proofpod/config.toml theme={null}
cpu = 8
memory = "32G"
```

## Checking what is in effect

```console theme={null}
$ pp status
…
Limits      16 CPU · 64 GiB · timeout 4h00m
Settings loaded from /home/ada/formalization/proofpod.toml
```


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