Crates.io | fem-cli |
lib.rs | fem-cli |
version | 0.1.0 |
source | src |
created_at | 2024-06-03 15:32:20.752029 |
updated_at | 2024-06-03 15:32:20.752029 |
description | A command line utility to run english as shell scripts via an LLM |
homepage | |
repository | https://gitlab.scd31.com/stephen/fem |
max_upload_size | |
id | 1260219 |
size | 517,580 |
Fem (Freeform English Middleware) is a command-line utility which allows you to run normal english queries as bash in your terminal. This is done by feeding the english query into an LLM. The resulting bash snippet is returned to the user, and if they approve, it will be executed.
cargo install fem-cli
is probably the easiest way to install, if you already have cargo
installed. You'll also need Ollama installed, either on your local machine or a machine you can connect to.
Configuration is done by a single file in ~/.config/fem.toml
. If it doesn't exist, it will use the default values:
system_prompt = "You're an AI connected directly to a bash terminal. When a user asks you to do something, your output will be run directly as a bash command. Do not say anything other than a valid bash command, or it will cause syntax errors. Do not wrap the command in backticks."
model = "llama3"
ollama_host = "http://localhost"
ollama_port = 11434
lmao