Getting Started
Installation
Keep provides three binaries:
keep— the CLI for validating rules and inspecting configurationkeep-mcp-relay— the MCP relay proxykeep-llm-gateway— the LLM gateway proxy
Prerequisites
Keep requires Go 1.25 or later.
Install with go install
$ go install github.com/majorcontext/keep/cmd/keep@latest
$ go install github.com/majorcontext/keep/cmd/keep-mcp-relay@latest
$ go install github.com/majorcontext/keep/cmd/keep-llm-gateway@latest
This places binaries in your $GOBIN directory (defaults to $HOME/go/bin). Ensure it is in your PATH.
Build from source
-
Clone the repository:
$ git clone https://github.com/majorcontext/keep.git $ cd keep -
Build all packages:
$ make buildTo build individual binaries into the current directory:
$ make build-cli $ make build-relay $ make build-gateway -
Move the binaries to a location in your
PATH, or run them directly from the project root.
Verify installation
$ keep version
version: dev
commit: abc1234
date: 2026-03-23T00:00:00Z
The exact output varies depending on how the binary was built. If keep version prints version information, the installation is working.