Sector F Logo

Sector F Labs


MD-Chat

A lightweight, fast desktop client for experimenting with OpenAI-compatible APIs. Built with egui for native performance and CommonMark support.

Features

Logo

Screenshot

Configuration

MD-Chat uses a TOML config file for settings such as your OpenAI API key and API URL. Environment variables are no longer required.

Config File Location

The config file is created automatically on first run if it does not exist.

Example config.toml

openai_api_key = "sk-...yourkey..."
api_url = "https://api.openai.com/v1/chat/completions"

Building and Running

# Build the application
cargo build --release

# Run the application
cargo run --release

Usage

  1. Launch the application
  2. Type your message in the input box
  3. Press Enter or click Send to submit
  4. View the markdown-formatted response

Modal Editing & Vim-like Navigation

MD-Chat supports modal editing inspired by vim, making keyboard navigation fast and efficient:

This makes MD-Chat a joy to use for keyboard-centric users and fans of modal editing!

Development

The codebase is organized into two main components:

Dependencies

License

Licensed under the BSD 3-Clause License. See the LICENSE file for details.