Intelliterm
Chat with LLMs from your terminal!
Note
This is a side project I occasionally work on in my free time, report any bugs and/or desired features. Contributions are welcome!
Features
- 🧠 Anthropic + OpenAI Models — Chat with Opus, GPT4 and any every other Anthropic or OpenAI models!
- 👾 Code Execution — Copy and run code 1
- ⚙️ Configurations — Quickly switch between models (mid-chat!) and manage multiple configurations
- 📂 File Input — Dump files into prompts!
- 💬 Chat Manager — Create, save 2 and load chats!
!Command Palette — Do useful things with a variety of built-in commands!- ✍️ Auto-completion — Auto-complete commands with tab (and navigate history with ↑ / ↓)
Install
pip install intelliterm
How to use
Note
Make sure you've set yourANTHROPIC_API_KEYandOPENAI_API_KEYenvironment variables in~/.zshrcor~/.bashrc:export ANTHROPIC_API_KEY='YOUR-ANTHROPIC-KEY' export OPENAI_API_KEY='YOUR-OPENAI-KEY'
Basic usage:
ai
# or with a prompt
ai write a python program that prints a random chess position using emojis
Input a file:
ai -f file.py # -f or --file
# or via pipes
cat file.py | ai
git diff | ai
Note
Piping a git diff is a special case for which Intelliterm one-shot generates a commit message in conventional format, summarizing the diff (for better UX).
Options
| Short | Long | Description |
|---|---|---|
-f |
--file |
Pass a file as prompt |
-m |
--mini--oneshot |
Complete prompt without entering the Intelliterm CLI ("one-shot" usage) |
-c |
--copy |
Auto-copy entire response to clipboard |
-cc |
--copy-code |
Auto-copy code block to clipboard |
-h |
--help |
Show help message (this one) |
-v |
--version |
Show Intelliterm version |
! Command Palette
Note You must be in a chat to use Command Palette (start a chat via
aiorai <prompt>)
Intelliterm comes with a set of handy commands, triggered by entering ! followed by:
| Command Aliases | Command Options | Command Description | |
|---|---|---|---|
| General |
!help !h
|
Show available commands | |
!quit !q or Ctrl + c |
Quit Intelliterm | ||
!shell !os
|
Run basic shell commands within Intellitermusage: |
||
| Configuration |
!cfg !use !config !switch
|
edit reset
|
Manage Intelliterm configurations
|
| Chat |
!new !n
|
Start new chat / clear context | |
!file !f
|
Input a file as promptusage: |
||
!info !i
|
Show information about current chat | ||
!save !s
|
Save chat (to: <DOCUMENTS_DIR>/intelliterm/chats
|
||
!load !l
|
Load chat | ||
| Response |
!copy !c
|
code
|
Copy last response to clipboard
Note: to auto-copy every new response: |
!run !r
|
Run code block in last responseNote: currently supports: |
Contributing
Pull requests, suggestions and issue reports are very welcome 👽
-
Running generated code currently supported for Python, JavaScript and TypeScript code snippets. ↩
-
Intelliterm uses platformdirs to determine the file paths where configurations and chats are saved to and loaded from.
CONFIG_DIRandDOCUMENTS_DIRdirectory locations will thus vary based on your OS (Intelliterm displays them when saving/loading things). ↩
Metadata
Release files for intelliterm 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| intelliterm-0.5.2.tar.gz | 22.9 kB | Without provenance | Details for intelliterm-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| intelliterm-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for intelliterm-0.5.2-py3-none-any.whl |
Total release size: 48.1 kB
Release files / intelliterm-0.5.2.tar.gz
| Download URL | intelliterm-0.5.2.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcb0e2a84545eb44ef35750f632eda5b4c27f91bb775cad5ad48597c47e84d94
|
|
BLAKE2b-256 checksum How to use checksums |
a06ab0a180c1552f71a9479eddee3dffc129623f8fa4c4597ab640bde14a1beb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|
Release files / intelliterm-0.5.2-py3-none-any.whl
| Download URL | intelliterm-0.5.2-py3-none-any.whl |
|---|---|
| Size | 25.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ad9017ada7e51592489b297c0f9aa3f8c17ff4cafa1fe6f64782ca81d20a202
|
|
BLAKE2b-256 checksum How to use checksums |
568dd6cfb8496dcc396e1f391da8fbfeed4b7e22df3e2f845e51acb5946cb6fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|
Security for intelliterm 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.