Skip to content

Raven AI Agent

Pimarchy includes built-in support for the Raven AI agent. Raven is a small, privacy-first coding-agent harness written in Rust for Ollama and any OpenAI-compatible endpoint. It runs a full agent loop — tools, plan mode, verification, and workspace isolation — against a model endpoint you control.

Raven is the pre-selected default coding agent (pimarchy default agent raven) but is not part of the lean core install. Install it (and Ollama) lazily with:

pimarchy install ai
# or on first selection:
pimarchy default agent raven

Ollama is Raven's inference backend at http://localhost:11434/v1. The unit is installed disabled and starts on demand when you launch pimarchy agent (no multi-GB model pull on firstboot).

Launching Raven

Omarchy-style, from anywhere:

# From the keybind: SUPER + SHIFT + CTRL + A
# Opens Foot with app-id org.pimarchy.agent (floating 900×600)
pimarchy agent

# With a prompt
pimarchy agent "fix the failing test in lib/upgrade.sh"

# In the current terminal (also the `a` alias)
pimarchy agent --inline

pimarchy agent runs raven --yolo (skipping confirmations), passing any arguments as the prompt via -p. Keybind/menu launches that start in $HOME cd into ~/Work when that directory exists, so the agent can remember workspace trust. If the binary is missing, it points you at pimarchy install ai (or pimarchy default agent raven), which installs Raven + Ollama via the ai module hooks.

PATH-only caveat: pimarchy default agent raven from a PATH-only script install (no repo / no ai.list) can install Raven without Ollama. That is incomplete — run pimarchy install ai from a full checkout so the inference backend is present.

Installation Details

Raven is installed by piping the official install script from github.com/raythurman2386/raven, and Ollama from ollama.com (both as script: entries in config/packages/ai.list). - Raven location: ~/.cargo/bin/ - Raven binary: ~/.cargo/bin/raven - Raven config: ~/.raven/config.toml - Ollama binary: /usr/local/bin/ollama (symlink to /usr/local/lib/ollama/ollama) - Ollama service: ollama.service (systemd, listens on 127.0.0.1:11434)

Quick Start

You can launch Raven from any terminal:

raven --help

Initial Configuration

On first run, Raven walks you through provider and model selection if needed. The Pimarchy default config (config/raven/config.toml) pre-configures the ollama provider, the ravenwood TUI theme, and a default model of glm-5.3-flash:cloud (an Ollama cloud model served through the local Ollama endpoint). That keeps first-agent startup light on Pi RAM — no multi-GB local weight is pulled automatically. Switch to a fully offline local model by editing default_model under [providers.ollama] (and ollama pull that tag yourself).

raven

Features

  • Ollama-first endpoint: Talks to a local Ollama daemon (127.0.0.1:11434) by default; dial in OpenRouter when you want a different provider.
  • Shipped default model is cloud-via-Ollama: glm-5.3-flash:cloud needs network/account for Ollama cloud; pick a local tag for fully offline use (see Installation / config above).
  • No Telemetry: No usage tracking, no phone-home, no extra cloud sync from Raven itself. All session state stays on disk, locally.
  • Auditable: A single binary (~23K lines of Rust) you can read end-to-end.
  • Small Footprint: Runs comfortably on a Raspberry Pi. No daemon, no background indexing.
  • Production-Grade Safety: Workspace confinement (Landlock + seccomp), shell command filters, git-worktree isolation, and a verify-before-done gate.

Uninstalling Raven

If you decide you no longer need Raven, you can remove it manually or by running uninstall.sh.

Manual removal:

# Remove the binary and configuration
rm -f ~/.cargo/bin/raven
rm -f ~/.raven/config.toml

# Remove Ollama (optional)
sudo systemctl stop ollama && sudo systemctl disable ollama
sudo rm -f /usr/local/bin/ollama
sudo rm -rf /usr/local/lib/ollama
sudo userdel -r ollama

# Passwordless start/restart rule for the sudo group. uninstall.sh removes
# this even when you keep the Ollama packages.
sudo rm -f /etc/polkit-1/rules.d/50-pimarchy-ollama.rules

Troubleshooting Raven

  • Command not found: Ensure ~/.cargo/bin is in your PATH. Run source ~/.bashrc to refresh.
  • Update: Raven can be updated with raven self update.
  • Reinstall: Re-run the install command:
    curl -fsSL https://raw.githubusercontent.com/raythurman2386/raven/master/install.sh | sh