WezTerm plugin for clx - AI-powered CLI command generator.
Press a keybinding, describe what you need, and get the command inserted into your terminal.
Add to your wezterm.lua:
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local clx = wezterm.plugin.require("https://github.com/mr-karan/wezterm-clx")
clx.apply_to_config(config)
return configOr clone locally and use:
local clx = require("path.to.clx-wezterm.plugin")
clx.apply_to_config(config)| Keybinding | Description |
|---|---|
Cmd+I / Super+I |
Open prompt and generate command |
Cmd+Shift+I / Super+Shift+I |
Open prompt with terminal context (shares recent output with AI) |
- Press
Cmd+I - Type: "find large files over 100mb"
- See the description and command appear in your terminal
Find files larger than 100MB in current directory
$ find . -type f -size +100M
The command is inserted but not executed, so you can review before pressing Enter.
clx.apply_to_config(config, {
-- Path to clx binary (default: "clx")
clx_path = "/usr/local/bin/clx",
-- Primary keybinding (default: Cmd+I)
keybinding = {
key = "i",
mods = "SUPER",
},
-- Keybinding with terminal context (default: Cmd+Shift+I)
keybinding_with_pane = {
key = "I",
mods = "SUPER",
},
-- Show loading indicator (default: true)
show_loading = true,
-- Number of terminal lines to share as context (default: 150)
share_n_lines = 150,
})On Linux, you might prefer Ctrl instead of Super:
clx.apply_to_config(config, {
keybinding = {
key = "i",
mods = "CTRL|ALT",
},
keybinding_with_pane = {
key = "I",
mods = "CTRL|ALT|SHIFT",
},
})- Plugin opens WezTerm's input prompt
- Your query is passed to the
clxbinary clxcalls your configured AI provider (OpenAI, Groq, Claude, etc.)- The generated command is inserted into your terminal pane
Make sure clx is configured with your preferred AI provider:
clx configureMIT