An AI assistant for your terminal.
Project description
term-assist
project / repo / mailing list / issues
ℹ️ Note
The canonical project locations are linked above. Other locations are mirrors.
An AI assistant for your terminal.
Features
- Works with Anthropic and OpenAI models
- Configurable parameters: change models, system prompt, response length, and other parameters
- Automatic environment detection: automatically detects your system and shell environment for accurate responses
Installation
-
Install
term-assistusingpipx:pipx install term-assist
-
In your terminal, configure your API keys depending on which model(s) you want to use.
Usage
usage: ta [-h] prompt [prompt ...]
term-assist: an AI assistant for your terminal.
positional arguments:
prompt prompt for the AI model
options:
-h, --help show this help message and exit
Examples
> ta unzip a tgz archive
> ta how to exit vim
Configuration
The configuration file is ~/.config/term-assist/config.json and will
be created on first run and initialized with default configuration
parameters if it does not already exist.
See ~/.config/term-assist/config_default.json for the default
configuration.
model
The AI model to use.
This parameter should be set in the format BRAND:MODEL. For example,
to use OpenAI's GPT-4o model, set this parameter
to openai:gpt-4o.
See ~/.config/term-assist/models.json for available models.
max_tokens
The maximum number of tokens that will be generated for output.
temperature
The amount of randomness injected into the response. Ranges from 0.0 to 1.0.
system_prompt
The system prompt that is given to the model.
This prompt must contain the format strings {system} and {shell},
which the program will replace with information it gathers from your
system.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file term_assist-0.3.0.tar.gz.
File metadata
- Download URL: term_assist-0.3.0.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7efa1f662fbbd02b256620b9148532105301c92d2355c426c6ab370e5e26992e
|
|
| MD5 |
23ea5c71a7c77c47b2a59b1b1e47056d
|
|
| BLAKE2b-256 |
a83ae04ee74e88860e643291b048da881c6d3a9dadb1ec7d05e5b490e33d65ec
|
File details
Details for the file term_assist-0.3.0-py3-none-any.whl.
File metadata
- Download URL: term_assist-0.3.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3764e9d418bbf864584bcfee8195f781e6b3c3fe17123b0e4d2be6e6e6fa476f
|
|
| MD5 |
b20a6a8300f4e8c93a21cb155f20d831
|
|
| BLAKE2b-256 |
03d751164bd10e60e3acff663c369a42282f17e86ecc3472ee9f84778b11bf4b
|