Skip to content

Install golem on a Mac ​

A step-by-step guide for a new user. It takes about five minutes, plus the model download if you choose a local model.

Linux ​

Each release also has golem-<version>-linux-x64.tar.gz and golem-<version>-linux-arm64.tar.gz, with the same layout as the Mac archive: bin/golem and libexec/golem-daemon/. Unpack one and run bin/golem. They are for servers and for trying golem; there is no Linux install guide yet. Not there yet: no systemd service unit (start the daemon yourself with golem daemon start), no Homebrew formula for Linux, and no sandbox, so every shell command asks first.

What you need ​

  • A Mac with Apple Silicon (M1 or newer). Check with > About This Mac: the chip should say Apple M-something.

  • Homebrew. If brew --version says "command not found", install it:

    bash
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    At the end, the installer prints two or three commands under "Next steps". Run them, so your terminal finds brew.

1. Install ​

bash
brew install milanpavel/golem/golem
golem --version             # golem 0.1.0, or newer

2. Open golem ​

bash
golem

brew install only puts the program on your Mac; nothing is set up until you run golem. The first golem asks one question in the terminal, about the background service: the part of golem that talks to the model and keeps your chats, so a chat keeps going when you close the terminal.

text
Keep golem running, now and at every login?
  Enter  yes
  n      only while this window is open
  q      quit

Enter starts the service and the web page now and at every login, and they restart by themselves if they ever crash. n runs them only while this terminal is open. q quits. golem shows each step while the service starts, then opens the page in your browser on /welcome. There you pick how golem should think: on this Mac, with an API key, or later. If you have exactly one ready model, golem uses it without asking.

When golem opens the browser, it prints Chat in the terminal: golem tui. Prefer the terminal? Run golem tui instead. On a first run, it opens a setup window there with the same steps. Type /setup later, in golem tui, to see what is set up, fix what is broken, or walk the steps again. On the web page, /setup opens Settings → Setup.

Over SSH, golem opens no browser and prints the link instead. The same goes for golem --no-open and golem --json.

Check it any time:

bash
golem status                # prints pid, version, and uptime
golem doctor                # checks the whole install

With Enter, the page then opens from a bookmark with no terminal. Without the question, for example for a script, install both:

bash
golem install

That writes two launchd jobs: dev.golem.daemon (the service) and dev.golem.web (the page, logs in ~/.golem/logs/web.stdout.log and web.stderr.log). golem daemon install and golem web install install one of them. golem uninstall removes both, and ~/.golem stays.

3. Choose a model ​

Pick at least one. You can use both.

A local model. It's free and private, and it needs no account. It needs a few GB of disk and memory. There is nothing to install now. When you pick a local model in golem and Ollama is missing, golem asks once, then installs it with Homebrew and downloads the model. Without Homebrew, it gives you the download link from ollama.com.

golem starts Ollama when a local model needs it, and stops it after 30 minutes unused. If you want Ollama running all the time, run brew install ollama and brew services start ollama. golem uses that one and never stops it.

You choose the model in step 4, from inside golem.

A hosted model (Anthropic, OpenAI, Google, DeepSeek, xAI, or Moonshot). You need an API key from that provider. golem saves it in the macOS Keychain, never in a file:

bash
golem auth set anthropic    # paste the key; nothing is echoed
golem auth list             # shows which providers have a key

Or type /login in the chat, pick the provider, and paste the key.

4. Chat ​

In the browser, choose a folder for a new chat from the folder chip. To chat in the terminal, go to the folder you want golem to work in, and run:

bash
cd ~/my-project
golem tui

The rest of this step is the terminal chat.

  • On the first start, golem uses your only ready model, or opens the model picker if there are several or none. /model opens the picker any time. Choose a model with Up and Down, then press Enter. A local model that isn't downloaded yet asks once, then downloads with a progress bar.
  • Type a message and press Enter.
  • golem can read and search files only inside the folder you started it in. It asks before it changes a file or runs a command.
  • Type /help for all commands, or ? on an empty line for all keys. Ctrl-C twice quits.

Closing the chat doesn't stop an answer. Run golem tui again to see it. First chat walks through a first question and a first approval.

In a container ​

On Linux, or on a server, golem also runs from a container image, built from the Linux archive and published to the GitHub container registry with each release: docker run -v ./app:/app:ro -v golem-data:/data -e ANTHROPIC_API_KEY=... ghcr.io/milanpavel/golem. /app holds the app's config.toml, skills and agents and can be read-only, /data is everything golem writes, and the socket lives in /run/golem. The image runs as a non-root user and has a health check. The web page listens inside the container on 127.0.0.1:8080 for now. examples/serve/ has a Compose file.

Upgrade ​

bash
brew update
brew upgrade golem

The running service is still the old version. golem says so in the chat: press Ctrl-R in golem tui to restart it. Or run golem daemon restart.

Your chats and settings carry over. If a new version changes the database, golem copies the old file first, for example to ~/.golem/golem.db.bak-5.

Remove ​

See Uninstall. It covers the background jobs, your keys, ~/.golem, and Ollama, in the order that works.

When something is wrong ​

Run golem doctor first. It checks the install from top to bottom, prints a fix under each problem, and ends with the one thing to do next:

text
✓ daemon   /opt/homebrew/opt/golem/libexec/golem-daemon/golem-daemon
✓ service  launchd runs /opt/homebrew/opt/golem/libexec/golem-daemon/golem-daemon
✓ running  version 0.2.0, pid 4242
✓ socket   only you can open it (0600)
✓ config   /Users/you/.golem/config.toml is valid
✓ model    new chats start on ollama/qwen3:8b
✗ ollama   Ollama is not installed
           fix: golem tui, then /setup installs it, or brew install ollama
✓ disk     154.6 GB free

1 problem.
Next: golem tui, then /setup installs it, or brew install ollama
What you seeWhat to do
brew install stops for a few minutes after "Installing golem"Homebrew is asking api.github.com whether the tap is private, for its usage statistics, and your network blocks that address. Wait, or run brew analytics off once to skip the question
golem: command not foundHomebrew isn't in your terminal's path. Run the "Next steps" commands the Homebrew installer printed, then open a new terminal
The chat says reconnectingThe daemon isn't running. Run golem status, then golem daemon start
needs key in redRun golem auth set <provider>, or /login <provider> in the chat
A local model doesn't answerRun golem doctor. golem starts Ollama itself. If it doesn't start, look in ~/.golem/logs/ollama.log
macOS asks whether golem may use a Keychain itemChoose Always Allow. It asks once per key, the first time golem reads a key that an older version saved, and golem names the key while the dialog is open. It does not ask again after upgrades
Anything elseRun golem daemon logs

Settings are in ~/.golem/config.toml. Models and API keys lists them all.