Skip to content

Commit 2718cb3

Browse files
docs: add optional system dependencies section (#897)
* docs: add optional system dependencies section Documents non-Python dependencies that enable specific gptme features: - playwright: browser automation - lynx: text-based web browsing - tmux: long-running commands - gh: GitHub CLI integration - wl-clipboard: Wayland clipboard support - pdftotext: PDF text extraction Fixes #246 * docs: move optional dependencies to separate page Per review feedback, keep getting-started guide short by moving the detailed system dependencies table to a dedicated page and linking to it. - Create docs/system-dependencies.rst with full details - Simplify getting-started.rst with just a tip/link - Add system-dependencies to User Guide toctree
1 parent cca057c commit 2718cb3

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

docs/getting-started.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ If ``uv`` is not installed, you can install it using pip, pipx, or your system p
2626

2727
Windows is not directly supported, but you can run gptme using WSL or Docker.
2828

29+
.. tip::
30+
31+
Some gptme tools require additional system dependencies (playwright, tmux, gh, etc.).
32+
See :doc:`system-dependencies` for details.
33+
2934
Usage
3035
-----
3136

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ See the `README <https://github.com/gptme/gptme/blob/master/README.md>`_ file fo
2626
:caption: User Guide
2727

2828
getting-started
29+
system-dependencies
2930
usage
3031
concepts
3132
examples

docs/system-dependencies.rst

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
System Dependencies
2+
===================
3+
4+
Some gptme features require additional non-Python dependencies. These are optional and only needed for specific tools.
5+
6+
Optional Dependencies
7+
---------------------
8+
9+
.. list-table::
10+
:header-rows: 1
11+
:widths: 20 40 40
12+
13+
* - Dependency
14+
- Purpose
15+
- Installation
16+
* - ``playwright``
17+
- Browser automation for the browser tool
18+
- ``pipx inject gptme playwright && playwright install``
19+
* - ``lynx``
20+
- Text-based web browser (alternative to playwright)
21+
- ``apt install lynx`` (Debian/Ubuntu) or ``brew install lynx`` (macOS)
22+
* - ``tmux``
23+
- Terminal multiplexer for long-running commands
24+
- ``apt install tmux`` (Debian/Ubuntu) or ``brew install tmux`` (macOS)
25+
* - ``gh``
26+
- GitHub CLI for the gh tool
27+
- See `GitHub CLI installation <https://cli.github.com/>`_
28+
* - ``wl-clipboard``
29+
- Wayland clipboard support
30+
- ``apt install wl-clipboard`` (Debian/Ubuntu)
31+
* - ``pdftotext``
32+
- PDF text extraction
33+
- ``apt install poppler-utils`` (Debian/Ubuntu) or ``brew install poppler`` (macOS)
34+
35+
Details
36+
-------
37+
38+
playwright
39+
~~~~~~~~~~
40+
41+
The ``playwright`` library enables browser automation capabilities. After installing with ``pipx inject gptme playwright``, run ``playwright install`` to download the required browser binaries.
42+
43+
lynx
44+
~~~~
45+
46+
An alternative to playwright for web browsing. Uses less resources and works in text mode, but has limited JavaScript support.
47+
48+
tmux
49+
~~~~
50+
51+
Required for the tmux tool which enables running long-running or interactive commands in persistent terminal sessions.
52+
53+
gh (GitHub CLI)
54+
~~~~~~~~~~~~~~~
55+
56+
The GitHub CLI is needed for the gh tool to interact with GitHub repositories, issues, and pull requests. Installation instructions vary by platform - see the `official documentation <https://cli.github.com/>`_.
57+
58+
wl-clipboard
59+
~~~~~~~~~~~~
60+
61+
Needed for clipboard operations on Wayland-based Linux systems. Not required on X11 systems or other platforms.
62+
63+
pdftotext
64+
~~~~~~~~~
65+
66+
Part of the poppler utilities, used for extracting text from PDF files. Install the ``poppler-utils`` package on Debian/Ubuntu or ``poppler`` on macOS.

0 commit comments

Comments
 (0)