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

# memanto config backend

> Show or switch the active Moorcheh backend between cloud and on-prem.

# memanto config backend

Show or switch the active Moorcheh backend. Switching to a backend that has never been set up runs its first-time setup flow (API key entry for cloud, server URL/embedding provider for on-prem).

```bash theme={null}
memanto config backend [NAME]
```

**Arguments:**

* `NAME` - Backend to switch to: `cloud` or `on-prem`. Omit to show the current backend.

**Examples:**

Show the current backend:

```bash theme={null}
memanto config backend
```

Switch to on-prem:

```bash theme={null}
memanto config backend on-prem
```

Switch back to cloud:

```bash theme={null}
memanto config backend cloud
```

**Output (showing current backend):**

```
Backend
Active backend: on-prem
Server: http://localhost:8080
Embedding: ollama
```

**Output (switching backend):**

```
Switched backend to on-prem.
Active session was cleared.
```

**Notes:**

* Switching always clears the active agent session — cloud and on-prem store data in separate local directories, so sessions never cross over.
* Switching to a backend that's already active is a no-op.
* See [Backend Switching](/on-prem/backend-switching) for the full cloud ↔ on-prem migration guide.
* Reflected in [`memanto config show`](/cli/config/show) as the `Backend` row.
