Skip to content

Remote servers (local ↔ remote)

The merido CLI normally operates on the local instance (the SQLite store under ~/.merido). You can also point it at a remote merido server's control plane and switch back and forth.

Connect

  1. In the remote server's dashboard, create a Management token (mdm_…).

  2. Add the server and validate the token:

    bash
    merido server add prod --url https://merido.dev --token mdm_xxxxxxxx
    # omit --token to be prompted
  3. Switch to it:

    bash
    merido server use prod
    merido keys list        # now lists the remote server's keys
    merido server use local # back to this machine

Run a single command against a context without switching:

bash
merido --context prod providers list

What runs remotely

Read commands work against the active context: keys list, providers list, accounts list, gain. Mutating commands (keys create, providers add, accounts remove) and start always run locally for now.

Where the config lives

Servers are stored in ~/.merido/cli.toml (mode 0600). The mdm_ token is stored in plaintext — treat that file like an SSH key, especially on shared machines.

MIT / Apache-2.0 licensed.