# Local and global mode (/docs/concord-mcp/local-mode)

Without Cloud, concord-mcp keeps everything on your machine. Nothing is sent anywhere except [usage telemetry](/docs/concord-mcp/telemetry), which you can turn off.

## Per-repository (default) [#per-repository-default]

`concord setup` in a repository creates `.concord/`:

| File | Holds |
| --- | --- |
| `concord.db` | The SQLite store: agents, tasks, claims, messages |
| `HANDOFF.md`, `REVIEW_PACKET.md` | The latest handoff and review packet as markdown |
| `WORK_STATE.json`, `events.jsonl` | A snapshot and event log of the work state |
| `.gitignore` | `*`, so none of this is committed |

All agents in the repository share this store. **Linked git worktrees share the primary checkout's store**, so agents in separate worktrees still see each other.

Concord finds the repository root from `CONCORD_REPO_ROOT`, then `CLAUDE_PROJECT_DIR`, then the current directory.

## Global mode [#global-mode]

```bash
concord setup --global
```

Global mode writes Concord into each agent's user-level config and instruction files (`~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`, `~/.copilot/copilot-instructions.md`, Goose's `.goosehints`), so every repository gets Concord without running setup in each.

- Repositories that were never set up share `~/.concord/global.db`, with one project per repository, named by its git remote.
- Sessions outside any repository share the `general` project.
- `concord setup --no-global` turns it off and removes what it added.
- `--repo-files` also writes the per-repository files while global mode is on.

## Choosing a workspace [#choosing-a-workspace]

Agents can name a workspace explicitly with `workspace_id`, and the CLI takes `-C <path>` or `--workspace <id>`. To limit which folders can be chosen, set `CONCORD_ALLOWED_ROOTS` to a list of paths.

## Moving to Cloud [#moving-to-cloud]

`concord cloud login` links the whole machine to Cloud. Local state isn't copied over; it stays in `.concord/` and `~/.concord/global.db`. `concord doctor` lists it. See [Machines and sign-in](/docs/cloud/machines).