Skip to content
Getting Started

Getting Started

This guide walks you from a fresh machine to a working Ulmi session for coding, research, and automation in your terminal.

Requirements

  • Go 1.26.11 or newer (only required when building from source).
  • A terminal that supports ANSI colours and an alternate screen buffer (any modern terminal: iTerm2, Alacritty, Kitty, Wezterm, Windows Terminal …).
  • Access to at least one LLM:
    • An Ollama installation for local models, or
    • An API key for OpenAI, Anthropic, Gemini, OpenRouter, Groq, or any OpenAI-compatible endpoint (llama.cpp, vLLM, LM Studio, …).

Installation

Homebrew (macOS / Linux)

brew install daniilperestoronin/tap/ulmi

macOS binaries distributed through Homebrew or release archives are not Developer ID signed or notarized. If Gatekeeper blocks launching Ulmi, build from source instead.

go install

go install github.com/daniilperestoronin/ulmi/cmd/ulmi@latest

The binary is installed to $(go env GOPATH)/bin. Make sure that directory is on your PATH.

Pre-built binary

Download the archive for your platform from the releases page, extract it, and place the ulmi executable somewhere on your PATH.

Build from source

git clone https://github.com/daniilperestoronin/ulmi
cd ulmi
make install        # → $(go env GOPATH)/bin/ulmi
# or
make build          # → bin/ulmi

See the development guide for more build targets.

Upgrading from the previous project name

This rename changes the executable to ulmi, the project configuration to ulmi.yaml, workspace resources to .ulmi/, and environment variables to ULMI_*. Old names are not automatically discovered or migrated.

Before upgrading, stop running instances and back up your configuration and state. Move the previous application’s directories to their new names under the same XDG roots (or these defaults):

  • Configuration: ~/.config/ulmi/.
  • Sessions and prompt history: ~/.local/share/ulmi/.
  • Snapshots: ~/.cache/ulmi/.
  • Logs: ~/.local/state/ulmi/.

Rename the workspace configuration file and resource directory, update explicit paths in your YAML files, and replace the old environment-variable prefix with ULMI_ in shell profiles and scripts. Preserve database files and snapshot contents when moving directories; do not overwrite an existing destination. Update aliases and scripts to invoke ulmi.

First run

Use a local Ollama model

ollama serve &                          # start the daemon if it is not running
ollama pull qwen3-coder                 # pull a tool-capable model
ulmi                                  # launch the TUI

By default Ulmi is configured to use ollama/qwen3-coder. On first launch it writes ~/.config/ulmi/config.yaml with that model (and ollama/qwen3) listed under models: — the picker shows only those configured entries.

Use a hosted model

Set the matching environment variable for your provider, then either pass --model on the command line or write the model into a config file.

export ANTHROPIC_API_KEY=sk-ant-...
ulmi --model anthropic/claude-sonnet-4-5

# or Gemini:
export GOOGLE_API_KEY=...
ulmi --model gemini/gemini-2.5-flash

The default config file already has commented-out provider blocks for OpenAI, Anthropic, Gemini, and OpenAI-compatible services (OpenRouter, Groq, local llama.cpp/vLLM) — uncomment the one you need and reference its API key with ${ENV_VAR} interpolation.

ulmi config init                      # writes ~/.config/ulmi/config.yaml
$EDITOR ~/.config/ulmi/config.yaml

See Configuration for the full reference.

Sending your first prompt

When the TUI starts you can type any natural-language request. The default build agent has access to read, write, edit, search, and shell tools — you can ask it to explore your repository, run tests, draft files, etc.

> List the Go files in this repository and summarise what cmd/ulmi does.

The agent loops between the LLM and its tools until it produces a final answer. Whenever it tries to run a shell command (bash) or edit a file the TUI may show a confirmation dialog — see Permissions.

Non-interactive mode

If you want to script Ulmi or call it from a CI pipeline, use ulmi run:

ulmi run --agent plan "Explore internal/llm/ and suggest improvements"
ulmi run --format json "Summarise this repository"

ulmi run executes built-in tools and saves the conversation. It streams visible assistant text to stdout and prints token totals and the session ID to stderr. Use ulmi run --continue "Follow up on the previous answer" or --session <id> to resume. Mutations and shell commands that need confirmation are denied in this mode; explicitly allow the required tools in Permissions before automating edits. See CLI Reference for flags and integration limitations.

Resuming sessions

Conversations are saved automatically. To pick up where you left off:

ulmi --continue              # resume the most recent session
ulmi --session <session-id>  # resume a specific session

Inside the TUI, /sessions opens a picker over saved sessions and /new starts a fresh one. Read more in Sessions.

Where to next