Skip to main content

ThetaTerm

Supercharge your terminal with AI: describe what you want, get a shell command that is correct for your system, confirm, run.

Why

You shouldn't have to remember whether it's tar -xzf or tar -zxvf, or which sed -i your Mac accepts. Say what you want in plain words and thetaterm writes the command for you. It's right for your system, because thetaterm checks whether your tools are GNU, BSD or BusyBox and shows the model the installed tool's man page. It runs on a small model on your own machine, so there is no subscription and no per-token bill. And it stays private: you're not pasting commands full of file paths, hostnames and project names into a chat website to work out what they do. With the default local model, your requests never leave your computer.

Requirements

  • macOS or Linux
  • uv. It installs Python 3.13 or later for you if needed.
  • A model served over an OpenAI-compatible API, with at least 3 billion parameters: smaller ones write wrong commands too often. The default is gemma4:e4b on Ollama: ollama pull gemma4:e4b

Install

uv tool install thetaterm

Quickstart

tterm -q "list files in this directory, largest first"
$ ls -lS .
Run it? [Y/n]:

New to it? Follow the tutorial.

Usage

tterm                                  # interactive; Ctrl-D to exit
tterm -q "find files modified in the last 2 days"
tterm -m qwen2.5-coder:3b -q "replace foo with bar in notes.txt in place"   # another model
tterm -y -q "show git status"          # run without confirming
tterm --think -q "show the date 30 days from now"   # model reasons first, about 2x slower
tterm --version                        # installed version
tterm --install-completion             # tab completion for your shell
tterm-mcp                              # MCP server for AI agents, needs thetaterm[mcp]
tterm --help

In interactive mode, a line that starts with ! is your own command and runs as typed, without the model and without asking: !git status.

Warning: -y runs whatever the model writes, unreviewed. In interactive mode that applies to every line you type. Commands pass a syntax check, not a safety check.

Commands that look like they reach outside the current directory (absolute, ~ or .. paths, variables such as $HOME, cd home or back, or sudo) are shown in red and always ask first, defaulting to no, even with -y. This is a pattern match, not a sandbox. See the safety model.

Settings (THETATERM_MODEL, THETATERM_BASE_URL, THETATERM_API_KEY) are read from the environment or ~/.config/thetaterm/.env, never from a .env in the current directory. See the command-line reference and how to use another model server.

To let an AI agent such as Claude Code use thetaterm, see how to use thetaterm from an AI agent.

Documentation

License

Apache-2.0

Metadata

Release files for thetaterm 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thetaterm 0.5.2
File Size Uploaded Provenance Actions
thetaterm-0.5.2.tar.gz 18.2 kB With provenance Details for thetaterm-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thetaterm 0.5.2
File Interpreter ABI Platform Actions
thetaterm-0.5.2-py3-none-any.whl Python 3 none any Details for thetaterm-0.5.2-py3-none-any.whl

Total release size: 39.3 kB

Release files / thetaterm-0.5.2.tar.gz

Download URL thetaterm-0.5.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
31a20b330b4c3c78da27ad86b2373c0662732f1e8624bb2ea35336425bf65f42
BLAKE2b-256 checksum
How to use checksums
eced891e60dffce80eded5e3cba2a74ce0f6b9317248f985ad71b5ec5a251c2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / thetaterm-0.5.2-py3-none-any.whl

Download URL thetaterm-0.5.2-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48bec3b0519ee6202fe5b04f328709ea5d5320af58d61fe2a6e423fad5f2cf9e
BLAKE2b-256 checksum
How to use checksums
d208a97db960188dc623e98663bfd71f4475c1c3212b2779a9b028e6f06b0f0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for thetaterm 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thetaterm-0.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page