Skip to content

CLI, SSH Agent & MCP ​

The Liso CLI (dart/cli, Apache-2.0) brings your encrypted vault directly into shell scripts, local development environments, SSH workflows, and AI coding agents without scattering plaintext .env files across disk.

Inject Secrets with liso run ​

liso run resolves liso://vault/item/field references from your unlocked vault into the child process environment, then discards them when the command exits:

sh
# Inject individual environment variables via --env
liso run --env DATABASE_URL="liso://Engineering/Prod DB/url" -- npm run dev

# Or load a recipe or all fields from a vault item
liso run --recipe dev-api -- npm run dev
liso run --item "Prod DB" -- ./migrate

Secret values are never written to disk. Note that liso run inherits stdio directly for interactive terminal use, whereas the MCP run_with_secrets tool captures and redacts secret values from stdout/stderr before returning output to an AI agent.

SSH Authentication with liso ssh-agent ​

Store your Ed25519 SSH private keys (ssh-ed25519) encrypted inside Liso and serve signing requests over a local SSH_AUTH_SOCK socket while your session is unlocked:

sh
# Run the foreground SSH agent bridge
liso ssh-agent --socket "$HOME/.liso/ssh-agent.sock" --vault Engineering

# In another terminal, point SSH and Git to the socket
export SSH_AUTH_SOCK="$HOME/.liso/ssh-agent.sock"
ssh-add -l

Private keys stay encrypted in your vault and are never written in plaintext to ~/.ssh.

Zero-Exposure AI Agent Proxy (liso mcp) ​

liso mcp starts a local Model Context Protocol (MCP) server so AI coding assistants (Claude Desktop, Cursor, Windsurf, Codex, and other MCP clients) can use credentials without ever reading the raw secret values into the model's context window.

Key MCP Tools ​

  • run_with_secrets: Executes an approved command with vault references injected into the subprocess environment and automatically scrubs any accidental secret echoes from stdout/stderr before returning output to the agent.
  • http_with_secrets: Performs an outbound HTTP request on behalf of the agent, resolving {{liso://vault/item/field}} placeholders in headers or request bodies on the fly while redacting secret values from the returned response headers and body.

Example MCP Client Configuration ​

Pass a scoped agent token via LISO_AGENT_TOKEN (or --token-file):

json
{
  "mcpServers": {
    "liso": {
      "command": "liso",
      "args": ["mcp"],
      "env": {
        "LISO_AGENT_TOKEN": "<token>"
      }
    }
  }
}

Documentation licensed under Apache-2.0. Clients & sync server under AGPL-3.0-only.