Lectic is no-nonsense conversational LLM client. Each conversation is a simple markdown file. That means that each conversation is naturally persistent and can be easily version-controlled, searched, referenced, and managed with existing markdown tools. Lectic aims to support research, reflection, self-study, and design. So Lectic makes it easy to manage conversational context using content references, integrate with MCP servers and other tools (for search, computation, database access, and more) and include multiple LLMs in a single conversation in order to bring a variety of perspectives to bear on a problem.
- If you're using nix, then
nix profile install github:gleachkr/lecticwill install lectic from the lastest git commit. - If you're not using nix, but you're using a Linux system (or WSL on windows),
you can download an app image from the
releases, and place it
somewhere on your
$PATH. - If you're on MacOS, you can download a binary from the
releases, and place it
somewhere on your
$PATH.
-
Create a new conversation file with a YAML header:
--- interlocutor: name: Assistant provider: anthropic|openai|gemini|openrouter|ollama prompt: Your base prompt here --- Your initial message here
To use the remote providers , you'll need
ANTHROPIC_API_KEY,GEMINI_API_KEY,OPENAI_API_KEY, orOPENROUTER_API_KEYset in your environment. If the provider field is omitted, the default provider will be based on the alphabetically first API key defined in the your environment. -
Use your text editor to interact with the LLM:
- In Vim: Use
%!lecticto update the conversation - In other editors: Set up a key binding or command to pipe the current file
through
lectic
- In Vim: Use
-
Or, From the command line:
lectic -s -f conversation.lecwill stream a next message to the console, andlectic -i conversation.lecwill update the lectic file in-place.