harvey
harvey OPTIONS
harvey is a terminal agent for local large language models. It was inspired by Claude Code but focused on working with large language models in small computer environments like a Raspberry Pi computer running Raspberry Pi OS. While the inspiration was to run an agent locally with Ollama it can also be run on larger computers like Linux, macOS and Windows systems you find on desktop and laptop computers. It should compile for most systems where Ollama is available and Go is supported (example: *BSD).
harvey looks for HARVEY.md in the current directory and uses it as a system prompt. It then connects to a local Ollama server and starts an interactive chat session. Cloud providers (Anthropic, DeepSeek, Gemini, Mistral, OpenAI) can be added as named routes via /route add.
All file I/O is constrained to the workspace directory (–workdir or
“.”). A knowledge base is stored at
Type /help inside the session for available slash commands.
ANTHROPIC_API_KEY API key for Anthropic Claude (optional, for /route add NAME anthropic://) DEEPSEEK_API_KEY API key for DeepSeek (optional, for /route add NAME deepseek://) GEMINI_API_KEY API key for Google Gemini (optional; GOOGLE_API_KEY also accepted) MISTRAL_API_KEY API key for Mistral (optional, for /route add NAME mistral://) OPENAI_API_KEY API key for OpenAI (optional, for /route add NAME openai://)
All of the above API key variables are filtered out of every child process environment — they are never passed to commands run via ! or /run.
Harvey includes several features for controlling what it can do on your system. All settings survive restart when persisted via the commands below.
Harvey’s prompt supports readline-style editing. All key bindings apply while typing at the “harvey >” prompt.
Navigation:
Left / Right arrows move cursor one character Home / Ctrl+A jump to beginning of line End / Ctrl+E jump to end of line Up / Down arrows cycle through command history
Editing:
Backspace delete character before cursor Ctrl+D delete character under cursor (EOF on empty line) Ctrl+K delete from cursor to end of line
Actions:
Ctrl+C cancel current input and return to prompt Ctrl+X Ctrl+E open $EDITOR (then $VISUAL, then vi) to compose a multi-line prompt; content is submitted when the editor exits