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 Apache License, Version 2.0 (the "License"); you may not use this code except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.