Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oatmeal

> AI 编程
Open source

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!

771 stars0 likes0 views
WebsiteGitHub

About

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!

Oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!

  • Overview
  • Install
    • MacOS
    • Debian / Ubuntu
    • Fedora / CentOS
    • Nix
    • Arch Linux
    • Alpine Linux
    • Windows
    • Cargo
    • Docker
    • Manual
    • Source
  • Usage
    • Configuration
    • Backends
    • Editors
    • Themes
    • Sessions
  • Contributing
    • Report an issue
    • Development
      • Setup
      • Adding a backend
      • Adding an editor
      • Adding syntax highlighting for a language
  • FAQ
    • Why Oatmeal?
  • License

Overview

Oatmeal is a terminal UI chat application that speaks with LLMs, complete with slash commands and fancy chat bubbles. It features agnostic backends to allow switching between the powerhouse of ChatGPT, or keeping things private with Ollama. While Oatmeal works great as a stand alone terminal application, it works even better paired with an editor like Neovim!

See it in action with Neovim (click to restart):

Note: This project is still quite new, and LLM's can return unexpected answers the UI isn't prepped for. There's likely a few bugs hidden somewhere.

Install

macOS

brew install dustinblackman/tap/oatmeal

Debian / Ubuntu

Note: This method may have outdated releases.

curl -s https://apt.dustinblackman.com/KEY.gpg | apt-key add -
curl -s https://apt.dustinblackman.com/dustinblackman.list > /etc/apt/sources.list.d/dustinblackman.list
sudo apt-get update
sudo apt-get install oatmeal

Fedora / CentOS

Note: This method may have outdated releases.

dnf config-manager --add-repo https://yum.dustinblackman.com/config.repo
dnf install oatmeal

Nix

nix-env -f '' -iA nur.repos.dustinblackman.oatmeal

Arch Linux

yay -S oatmeal-bin

Alpine Linux

arch=$(uname -a | grep -q aarch64 && echo 'arm64' || echo 'amd64')
curl -L -o oatmeal.apk "https://github.com/dustinblackman/oatmeal/releases/download/v0.13.0/oatmeal_0.13.0_linux_${arch}.apk"
apk add --allow-untrusted ./oatmeal.apk

Windows

Chocolatey

choco install oatmeal --version=0.13.0

Scoop

scoop bucket add dustinblackman https://github.com/dustinblackman/scoop-bucket.git
scoop install oatmeal

Winget

winget install -e --id dustinblackman.oatmeal

Cargo

cargo install oatmeal --locked

Docker

docker run --rm -it ghcr.io/dustinblackman/oatmeal:latest

Manual

Download the pre-compiled binaries and packages from the releases page and copy to the desired location.

Source

git clone https://github.com/dustinblackman/oatmeal.git
cd oatmeal
cargo build --release
mv ./target/release/oatmeal /usr/local/bin/

Usage

The following shows the available options to start a chat session. By default when running oatmeal, Ollama is the selected backend, and the clipboard integration for an editor. See oatmeal --help, /help in chat, or the output below to get all the details.

…

Configuration

On top of being configurable with command flags and environment variables, Oatmeal is also manageable with a configuration file such as this example. You can run oatmeal config create to initialize for the first time.

Configuration file options.

Usage: oatmeal config [OPTIONS] [COMMAND]

Commands:
  create   Saves the default config file to the configuration file path. This command will fail if the file exists already.
  default  Outputs the default configuration file to stdout.
  path     Returns the default path for the configuration file.
  help     Print this message or the help of the given subcommand(s)

Backends

The following model backends are supported:

  • OpenAI (Or any compatible proxy/API)
  • Ollama
  • LangChain/LangServe (Experimental)
  • Claude (Experimental)
  • Gemini (Experimental)

Editors

The following editors are currently supported. The clipboard editor is a special case where any copy or accept commands are simply copied to your clipboard. This is the default behaviour. Hit any of the links below for more details on how to use!

  • Clipboard (Default)
  • None (Disables all editor functionality)
  • Neovim

Themes

A handful of themes are embedded in the application for code syntax highlighting, defaulting to OneDark. If none suits your needs, Oatmeal supports any Sublime Text/Text Mate .tmTheme file with the theme-file configuration option. base16-textmate has plenty to pick from!

Sessions

Oatmeal persists all chat sessions with your models, allowing you to go back and review an old conversation, or pick up from where you left off!

Manage past chat sessions.

Usage: oatmeal sessions [OPTIONS] [COMMAND]

Commands:
  dir     Print the sessions cache directory path.
  list    List all previous sessions with their ids and models.
  open    Open a previous session by ID. Omit passing any session ID to load an interactive selection.
  delete  Delete one or all sessions.
  help    Print this message or the help of the given subcommand(s)

Grepping through previous sessions isn't something built in to Oatmeal (yet). This bash function can get you there nicely using Ripgrep and FZF.

function oatmeal-sessions() {
    (
        cd "$(oatmeal sessions dir)"
        id=$(rg --color always -n . | fzf --ansi | awk -F ':' '{print $1}' | head -n1 | awk -F '.' '{print $1}')
        oatmeal sessions open --id "$id"
    )
}

Or something a little more in depth (while hacky) that additionally uses yq and jq.

function oatmeal-sessions() {
    (
        cd "$(oatmeal sessions dir)"
        id=$(
          ls | \
          (while read f; do echo "$(cat $f)\n---\n"; done;) | \
          yq -p=yaml -o=json - 2> /dev/null | \
          jq -s . | \
          jq -rc '. |= sort_by(.timestamp) | .[] |  "\(.id):\(.timestamp):\(.state.backend_model):\(.state.editor_language):\(.state.messages[] | .text | tojson)"' | \
          fzf --ansi | \
          awk -F ':' '{print $1}' | \
          head -n1 | \
          awk -F '.' '{print $1}'
        )
        oatmeal sessions open --id "$id"
    )
}

Contributing

Report an issue

On each Oatmeal release there is a separate download to help in reporting issues to really drill down in to what the problem is! If you've run in to a problem, I'd really help appreciate solving it.

  1. Head over to releases and download the DEBUG package for the latest release of Oatmeal.
  2. Extract the contents of the archive, and cd in your terminal inside the archive.
  3. Run your command with the arguments provided in the error message prefixing with RUST_BACKTRACE=1 ./oatmeal **ARGS-HERE**
  4. Copy/paste the output and open an issue. Include any screenshots you believe will be helpful!

Development

Setup

Oatmeal comes with a ready made DevContainer with all the magic needed to work on the project. However if you wish to develop fully local, the following will get you set up with all the necessary tooling.

cargo install cargo-run-bin
git clone https://github.com/dustinblackman/oatmeal.git
cd oatmeal
cargo cmd setup

Adding a backend

Each backend implements the Backend trait in its own infrastructure file. The trait has documentation on what is expected of each method. You can checkout Ollama as an example.

The following steps should be completed to add a backend:

  1. Implement trait for new backend.
  2. Update the BackendName enum with your new Backend name.
  3. Update the BackendManager to provide your new backend.
  4. Write tests

Adding an editor

Each editor implements the Editor trait in its own infrastructure file. The trait has documentation on what is expected of each method. You can checkout Neovim as an example.

The following steps should be completed to add an editor:

  1. Implement trait for new editor.
  2. Update the EditorName enum with your new Editor name.
  3. Update the EditorManager to provide your new editor.
  4. Write tests

Adding syntax highlighting for a language

Syntax highlighting language selection is a tad manual where several languages must be curated and then added to assets.toml.

  1. Google to find a .sublime-syntax project on GitHub for your language. bat has many!
  2. Update assets.toml to include the new repo. Make sure to include the license in the files array. You can leave nix-hash as an empty string, and it'll be updated by a maintainer later. Or if you have docker installed, you can run cargo xtask hash-assets.
  3. rm -rf .caches && cargo build
  4. Test to see highlighting works.

FAQ

Why Oatmeal?

I was eating a bowl of oatmeal when I wrote the first commit :shrug:. (They don't let me name things at work anymore...)

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustchatclideveloper-experiancelarge-language-models

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.