Metadata-Version: 2.4
Name: hugpy-terminal
Version: 0.1.40
Summary: Shared Hugpy terminal chat, resources, settings and session runtime
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: hugpy-resources<0.2,>=0.1.18.2
Requires-Dist: hugpy-settings<0.2,>=0.1.17
Requires-Dist: hugpy-tools>=0.2.19
Requires-Dist: abstract-toolserver[server]>=0.0.107

# hugpy-terminal

Hugpy Terminal provides an interactive chat client for local workers, fleets and saved OpenAI-compatible endpoints. Harness, Fleet and Agent reuse its terminal, journals and session clients.

## Installation

Use Python 3.11 or later. For chat, have a reachable inference endpoint and at least one model it can serve.

```sh
python -m pip install hugpy-terminal
```

## Quick start

Register a fleet running on the local host and inspect the saved endpoints.

```sh
hugpy-terminal endpoint add local-core http://127.0.0.1:7002
hugpy-terminal endpoint list
hugpy-terminal --base http://127.0.0.1:7002 --list-models
```

Run `hugpy-terminal --base http://127.0.0.1:7002` in an interactive terminal to open chat. Use `--model` to select a model and `--workspace` to set the working directory.

## Sessions and settings

The terminal can open a named session on a session server with `--serve` or keep its own local history. `/settings local` opens the shared local settings editor. Applications that need a fixed target can use `hugpy-harness` for one Wrapper or `hugpy-fleet` for Core.

Saved endpoint records are shared by the terminal clients. The address used for an individual invocation can be supplied explicitly without editing the saved record.

When connected to Core through Fleet, enter `/compute` to inspect workers, browse model variations and manage allocations. With the Fleet package installed, `hugpy-fleet compute --tui` opens the panel directly and `hugpy-fleet compute --worker NAME` returns the same worker data as JSON.
