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.0

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.0
File Size Uploaded Provenance Actions
thetaterm-0.5.0.tar.gz 18.0 kB With provenance Details for thetaterm-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 38.7 kB

Release files / thetaterm-0.5.0.tar.gz

Download URL thetaterm-0.5.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
900d02955e9ba0550b99a1f5e334e2e50c439f804b0af6405336c8278daad373
BLAKE2b-256 checksum
How to use checksums
1e5ebfd2363d6c417a4c33eddce60189f30923b13990fcf8d7a279498729f1f4
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 11, 2026.

Transparency log

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

Download URL thetaterm-0.5.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
735bf0a8b8ee42b402dbee630016aa144a74d97c293ee641f290a3fe17405e94
BLAKE2b-256 checksum
How to use checksums
914c269f99ddec2685f19495e8ebf26386f99d22dd994c4d569feabe17080315
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 11, 2026.

Transparency log

Security for thetaterm 0.5.0

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.0.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 11, 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