Installation
Install the memcode CLI in one line, plus upgrade, self-update, and build-from-source options.
memcode is a single binary. It runs on macOS, Linux, and Windows, on amd64 and arm64. Pick whichever install path fits your setup.
Install script
curl -fsSL https://memcode.ai/install.sh | shThis downloads the right build for your platform and puts memcode on your PATH. The first time you run it in a terminal, it offers a short setup wizard.
With Go
go install github.com/memcode-ai/memcode@latestFrom source
git clone https://github.com/memcode-ai/memcode
cd memcode
go build -o memcode .Verify the install
memcode versionmemcode --version prints the same thing. A cached daily check tells you when a
newer build is available.
Upgrading
memcode updates itself in the background once a day. To turn that off, set
MEMCODE_AUTO_UPDATE=off.
To update on demand, run:
memcode upgradeIt downloads the new build, checks it, and replaces the binary. Add --check to
only see whether an update is available. memcode update does the same thing.
Self-hosting
The product is open source under MIT and includes a self-host path that runs the gateway alongside the CLI:
cd deploy/docker
cp ../../.example.env .env
docker compose up --buildThe full guide is in docs/self-hosting.md in the repository.