Skip to main content

Language Model Terminal Interface.

Project description

Language Model Terminal Interface

Oftentimes I just want to talk to LMs, without the agentic clutter: I dont want it to read my stuff, access my files or consume through a gazillion tokens of tools, skills, MCPs and what not. I just want a recipe for tika masala, c'mon :(

For that I normally have to log into the webapps from the provider (i.e. Mistral LeChat, Gemini, ChatGPT). But I live on the terminal. So I made a thin wrapper bc it is 2026 and programming is easy

FAQ:

  • Can I talk with LMs from different providers from the terminal? Yes :)
  • Does the app have access to my files? No
  • Can the app run terminal commands? Nope
  • Can the app execute code? Nein
  • Does the app have any sort of agentic loop? Negative
  • Can I connect the app to MCPs or other tools? Also no

Install

uv tool install lmti

Gettint started

# Start with the default model
lmti

# Start with a specific model
lmti -m vertex:gemini-2.5-flash

Config

Config is stored at ~/.config/lmti/config.yaml. It handles your credentials and default settings. Many of these can also be modified through commands in the TUI:

credentials:
  MISTRAL_API_KEY: your-key-here
settings:
  render_markdown: true
  model: mistral:mistral-small-2603
models:
- mistral:mistral-small-2603
- vertex:gemini-2.5-flash

Development

Structure

src/lmti/
├── cli.py      # Argument parsing and entry point
├── config.py   # Configuration management
├── errors.py   # Error handling
├── repl.py     # Main REPL loop logic
├── ui.py       # Terminal UI (prompt-toolkit and rich)
├── commands/   # Slash command implementations
└── __init__.py

Tooling

We use just for development tasks. Use:

  • just sync: Updates lockfile and syncs environment.
  • just format: Lints and formats with ruff.
  • just check-types: Static analysis with ty.
  • just analyze-complexity: Cyclomatic complexity checks with complexipy.
  • just test: Runs pytest with 90% coverage threshold.

Contribute

  1. Hooks: Install pre-commit hooks via just install-hooks.
  2. Issues: Open an issue first using the default template.
  3. PRs: Link your PR to the relevant issue.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lmti-1.4.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lmti-1.4.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file lmti-1.4.0.tar.gz.

File metadata

  • Download URL: lmti-1.4.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lmti-1.4.0.tar.gz
Algorithm Hash digest
SHA256 611fe15a75d61fd6cfacbc51517c400729d54cb8b3b76c5140e1e6455eed05a3
MD5 ce3df4e252cc63004151cb28e618b45f
BLAKE2b-256 387fa53abbfa103e47dbbe3fe9deb570bb23221a08479a8cb815889bf5f41b9f

See more details on using hashes here.

File details

Details for the file lmti-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: lmti-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lmti-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a065dad5693f92f1a6579b8bc832420e19c94755308ccf83b2662aa563eff4f
MD5 1504d82ca9d70f78f4f830ef2f31b819
BLAKE2b-256 0c57f0631dafa4a26abc1c4d277d19523e520040d620bb9340b708925687a1e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page