# Configuration (/docs/concord-mcp/configuration)

## Environment variables [#environment-variables]

| Variable | Default | Purpose |
| --- | --- | --- |
| `CONCORD_REPO_ROOT` | `CLAUDE_PROJECT_DIR`, then the current directory | Repository root |
| `CONCORD_AGENT_ID` | From the session | Set this session's agent id explicitly |
| `CONCORD_AGENT_KIND` | From the session | Pin the harness kind, so a child process doesn't inherit its parent's identity |
| `CONCORD_TASK` | | Your own task id, skipped by the pre-edit overlap hook |
| `CONCORD_ALLOWED_ROOTS` | None | Paths that `workspace_id` / `--workspace` may select, separated like `PATH` |
| `CONCORD_CLOUD_API_KEY` | | API key for `concord cloud login` |
| `CONCORD_TELEMETRY_DISABLED` | | `1` turns telemetry off. `DO_NOT_TRACK=1` does too. |
| `CONCORD_TELEMETRY_URL` | `https://getconcord.ai/api/telemetry/v2` | Where telemetry is sent |
| `CONCORD_NO_UPDATE_CHECK` | | `1` turns off the daily update check (also off when `CI` is set) |
| `CONCORD_OPENCODE_BIN` | | Path to the OpenCode binary |

### Standalone installer [#standalone-installer]

| Variable | Default | Purpose |
| --- | --- | --- |
| `CONCORD_VERSION` | Latest release | Version to install, such as `0.25.0` |
| `CONCORD_INSTALL_DIR` | `~/.concord/standalone` | Where releases are unpacked |
| `CONCORD_BIN_DIR` | `~/.local/bin` | Where `concord` and `concord-mcp` go |
| `CONCORD_DOWNLOAD_URL` | GitHub Releases | A mirror holding the release files |

### Harness locations [#harness-locations]

Concord respects each harness's own location variables: `CODEX_HOME`, `COPILOT_HOME`, `CLAUDE_CONFIG_DIR`, `GROK_HOME`, `HERMES_HOME`, `DSH_HOME`, `OPENCLAW_CONFIG_PATH`, `OPENCLAW_STATE_DIR`, `OPENCLAW_PROFILE`, `OPENCLAW_HOME` and `XDG_CONFIG_HOME`.

## Files [#files]

| Path | Holds |
| --- | --- |
| `<repo>/.concord/` | Per-repository state. See [Local and global mode](/docs/concord-mcp/local-mode). |
| `~/.concord/global.db` | Shared state for global mode |
| `~/.concord/config.json` | Global mode and Cloud link settings |
| `~/.concord/credentials.json` | Cloud login (mode `0600`) |
| `~/.concord/machine.json` | This machine's key |
| `~/.config/concord/telemetry.json` | Telemetry identity (`%APPDATA%` on Windows) |

## MCP server entry [#mcp-server-entry]

Every MCP client runs the same server. A generic entry:

```json
{
  "concord": {
    "command": "concord-mcp",
    "env": {
      "CONCORD_REPO_ROOT": "/abs/path/to/repo",
      "CONCORD_AGENT_KIND": "my-client"
    }
  }
}
```