diff -pruN 1.17.0-1/debian/changelog 1.17.0-2/debian/changelog
--- 1.17.0-1/debian/changelog	2025-10-01 06:27:28.000000000 +0000
+++ 1.17.0-2/debian/changelog	2025-11-19 09:41:38.000000000 +0000
@@ -1,3 +1,12 @@
+litecli (1.17.0-2) sid; urgency=medium
+
+  * Adding patch to disable llm special command.
+  * Adding patch to disable llm python command.
+  * Adding patch to remove llm python depends.
+  * Removing llm special command from the package (Closes: #1120990).
+
+ -- Daniel Baumann <daniel@debian.org>  Wed, 19 Nov 2025 10:41:38 +0100
+
 litecli (1.17.0-1) sid; urgency=medium
 
   * Removing rules-requires-root, not needed anymore.
diff -pruN 1.17.0-1/debian/patches/debian/0001-llm-special-command.patch 1.17.0-2/debian/patches/debian/0001-llm-special-command.patch
--- 1.17.0-1/debian/patches/debian/0001-llm-special-command.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1.17.0-2/debian/patches/debian/0001-llm-special-command.patch	2025-11-19 09:40:39.000000000 +0000
@@ -0,0 +1,11 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Removing llm python command as src:llm is not in main (Closes: #1120990).
+
+diff -Naurp litecli.orig/litecli/packages/special/__init__.py litecli/litecli/packages/special/__init__.py
+--- litecli.orig/litecli/packages/special/__init__.py
++++ litecli/litecli/packages/special/__init__.py
+@@ -16,4 +16,3 @@ def export(defn: Callable[..., Any]) ->
+ 
+ from . import dbcommands
+ from . import iocommands
+-from . import llm
diff -pruN 1.17.0-1/debian/patches/debian/0002-llm-python-command.patch 1.17.0-2/debian/patches/debian/0002-llm-python-command.patch
--- 1.17.0-1/debian/patches/debian/0002-llm-python-command.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1.17.0-2/debian/patches/debian/0002-llm-python-command.patch	2025-11-19 09:40:40.000000000 +0000
@@ -0,0 +1,99 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Removing llm python command as src:llm is not in main (Closes: #1120990).
+
+diff -Naurp litecli.orig/litecli/main.py litecli/litecli/main.py
+--- litecli.orig/litecli/main.py
++++ litecli/litecli/main.py
+@@ -458,31 +458,6 @@ class LiteCli(object):
+                     self.echo(str(e), err=True, fg="red")
+                     return
+ 
+-                while special.is_llm_command(text):
+-                    try:
+-                        start = time()
+-                        assert self.sqlexecute is not None
+-                        cur = self.sqlexecute.conn and self.sqlexecute.conn.cursor()
+-                        context, sql, duration = special.handle_llm(text, cur)
+-                        if context:
+-                            click.echo("LLM Reponse:")
+-                            click.echo(context)
+-                            click.echo("---")
+-                        click.echo(f"Time: {duration:.2f} seconds")
+-                        assert self.prompt_app is not None
+-                        text = self.prompt_app.prompt(default=sql)
+-                    except KeyboardInterrupt:
+-                        return
+-                    except special.FinishIteration as e:
+-                        if e.results:
+-                            output_res(e.results, start)
+-                        return
+-                    except RuntimeError as e:
+-                        logger.error("sql: %r, error: %r", text, e)
+-                        logger.error("traceback: %r", traceback.format_exc())
+-                        self.echo(str(e), err=True, fg="red")
+-                        return
+-
+             if not text.strip():
+                 return
+ 
+diff -Naurp litecli.orig/litecli/packages/completion_engine.py litecli/litecli/packages/completion_engine.py
+--- litecli.orig/litecli/packages/completion_engine.py
++++ litecli/litecli/packages/completion_engine.py
+@@ -121,9 +121,6 @@ def suggest_special(text: str) -> list[d
+         else:
+             return [{"type": "table", "schema": []}]
+ 
+-    if cmd in [".llm", ".ai", "\\llm", "\\ai"]:
+-        return [{"type": "llm"}]
+-
+     return [{"type": "keyword"}, {"type": "special"}]
+ 
+ 
+diff -Naurp litecli.orig/litecli/packages/special/main.py litecli/litecli/packages/special/main.py
+--- litecli.orig/litecli/packages/special/main.py
++++ litecli/litecli/packages/special/main.py
+@@ -176,13 +176,5 @@ def quit(*_args: Any) -> None:
+     arg_type=NO_QUERY,
+     case_sensitive=True,
+ )
+-@special_command(
+-    "\\llm",
+-    "\\ai",
+-    "Use LLM to construct a SQL query.",
+-    arg_type=NO_QUERY,
+-    case_sensitive=False,
+-    aliases=(".ai", ".llm"),
+-)
+ def stub() -> None:
+     raise NotImplementedError
+diff -Naurp litecli.orig/litecli/sqlcompleter.py litecli/litecli/sqlcompleter.py
+--- litecli.orig/litecli/sqlcompleter.py
++++ litecli/litecli/sqlcompleter.py
+@@ -11,7 +11,6 @@ from prompt_toolkit.completion.base impo
+ from .packages.completion_engine import suggest_type
+ from .packages.parseutils import last_word
+ from .packages.special.iocommands import favoritequeries
+-from .packages.special import llm
+ from .packages.filepaths import parse_path, complete_path, suggest_path
+ 
+ _logger = logging.getLogger(__name__)
+@@ -539,19 +538,6 @@ class SQLCompleter(Completer):
+             elif suggestion["type"] == "file_name":
+                 file_names = self.find_files(word_before_cursor)
+                 completions.extend(file_names)
+-            elif suggestion["type"] == "llm":
+-                if not word_before_cursor:
+-                    tokens = document.text.split()[1:]
+-                else:
+-                    tokens = document.text.split()[1:-1]
+-                possible_entries = llm.get_completions(tokens)
+-                subcommands = self.find_matches(
+-                    word_before_cursor,
+-                    possible_entries,
+-                    start_only=False,
+-                    fuzzy=True,
+-                )
+-                completions.extend(subcommands)
+ 
+         return completions
+ 
diff -pruN 1.17.0-1/debian/patches/debian/0003-llm-python-depends.patch 1.17.0-2/debian/patches/debian/0003-llm-python-depends.patch
--- 1.17.0-1/debian/patches/debian/0003-llm-python-depends.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1.17.0-2/debian/patches/debian/0003-llm-python-depends.patch	2025-11-19 09:40:41.000000000 +0000
@@ -0,0 +1,16 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Removing llm python command as src:llm is not in main (Closes: #1120990).
+
+diff -Naurp litecli.orig/pyproject.toml litecli/pyproject.toml
+--- litecli.orig/pyproject.toml
++++ litecli/pyproject.toml
+@@ -15,9 +15,7 @@ dependencies = [
+     "prompt-toolkit>=3.0.3,<4.0.0",
+     "pygments>=1.6",
+     "sqlparse>=0.4.4",
+-    "setuptools",                   # Required by llm commands to install models
+     "pip",
+-    "llm>=0.25.0",
+ ]
+ 
+ [build-system]
diff -pruN 1.17.0-1/debian/patches/series 1.17.0-2/debian/patches/series
--- 1.17.0-1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 1.17.0-2/debian/patches/series	2025-11-19 09:40:41.000000000 +0000
@@ -0,0 +1,3 @@
+debian/0001-llm-special-command.patch
+debian/0002-llm-python-command.patch
+debian/0003-llm-python-depends.patch
diff -pruN 1.17.0-1/debian/rules 1.17.0-2/debian/rules
--- 1.17.0-1/debian/rules	2025-10-01 06:27:10.000000000 +0000
+++ 1.17.0-2/debian/rules	2025-11-19 09:41:38.000000000 +0000
@@ -9,5 +9,9 @@ execute_after_dh_auto_clean:
 	# help pybuild
 	rm -rf *.egg-info
 
+execute_after_dh_auto_install:
+	# removing llm as src:llm is not in main
+	rm -f debian/litecli/usr/lib/python*/dist-packages/litecli/packages/special/llm.py
+
 override_dh_auto_test:
 	# disabled, doesn't work yet
