Local AI-powered terminal assistant with explicit confirmation and safety controls
Project description
OTerminus
OTerminus is a local, safety-first terminal assistant. It turns natural-language requests into a single proposed shell action, shows a preview, and executes only after explicit confirmation.
Why OTerminus exists
Terminal copilots are useful, but unrestricted shell generation is risky. OTerminus exists to provide a practical middle ground:
- capability-first command support (curated workflows, not full shell emulation)
- deterministic rendering for structured command families
- explicit policy + validation gates before execution
- confirmation before every execution path
- local-first observability through JSONL audit logs
Core safety promise
OTerminus is designed around an inspect-and-confirm execution contract:
- detect direct commands first
- intercept vague natural-language requests as ambiguous when needed
- route specific natural-language requests by capability
- plan proposals in a structured-first format
- validate and policy-check the command
- show a deterministic preview
- require explicit user confirmation before execution
Direct shell commands are not blocked by natural-language ambiguity heuristics; they still go through validation and policy checks. Ambiguous natural-language requests stop before planning and execution and suggest safer read-only inspections. See the user guide and request lifecycle for details.
If ambiguity handling, validation, or policy checks block a request, OTerminus does not execute.
Quick install and setup
Requirements
Local development install
poetry install
poetry run oterminus
Local package artifact validation
Before any publish workflow is introduced, validate local package artifacts end-to-end:
poetry run python scripts/validate_package_install.py
This builds both sdist and wheel, installs the wheel into a temporary clean virtualenv, and runs CLI smoke checks.
On first run, OTerminus checks Ollama readiness (ollama on PATH, running service, local models),
then prompts you to select a model if one is not already configured.
Quick start examples
Common commands
poetry run oterminus
poetry run oterminus "show disk usage for this folder"
poetry run oterminus --dry-run "copy notes.txt to backup/notes.txt"
poetry run oterminus --explain "find processes matching python"
poetry run oterminus doctor
Interactive REPL
poetry run oterminus starts the interactive REPL after startup readiness checks.
Examples inside REPL:
find all .py filescapabilities/commands/exampleshelp capabilities/help filesystem_inspection/help lsshow running processesping example.com 4 timesshow HTTP headers for https://example.comlook up DNS for example.comtar -tf archive.tar/unzip -l archive.ziptar -xf archive.tar -C restored/unzip archive.zip -d restoredtar -czf backup.tar.gz src/zip -r docs.zip docsls -lahdry-run search TODO in srcexplain show disk spaceaudit status/audit tail/audit clear
One-shot and diagnostics modes
- One-shot requests such as
poetry run oterminus "show disk usage for this folder"plan, validate, preview, and then require confirmation before execution. --dry-runand--explainare mutually exclusive one-shot inspection flags for requests. Both validate and preview without confirmation or execution; explain mode also describes command choice, relevant flags/arguments, risk, and policy interpretation.doctoris diagnostics-only: it prints readiness checks and exits without starting the REPL, executing a request, or invoking the Ollama planner. It cannot be combined with--dry-runor--explain.
Proposal modes
OTerminus supports two first-class proposal modes:
- Structured: the preferred normal path for supported capabilities. Proposals use
command_family+ typedarguments, and Python renders the final command/argv deterministically. - Experimental: a constrained fallback for single-command text that cannot yet be represented safely as structured arguments. It is still strictly validated, previewed, and confirmed before execution.
See structured rendering, routing and planning, and the request lifecycle for details.
Network diagnostics
The network_diagnostics capability supports only fixed-count ping, HTTP HEAD (curl -I), dig,
and nslookup. These commands contact external hosts, show a network metadata warning in preview,
and still require confirmation. OTerminus does not support POST/PUT/DELETE requests, secret headers,
downloads, scanning, SSH, or arbitrary network automation.
Documentation
The README is the landing page. Full documentation is generated from docs/ and
published to GitHub Pages after merges to main (once Pages is enabled in repository settings).
- Hosted docs (after enablement):
https://pooriat.github.io/oterminus/ - Docs source of truth:
docs/ - Architecture overview:
docs/architecture/overview.md - Request lifecycle (central flow):
docs/architecture/request-lifecycle.md - User guide:
docs/product/user-guide.md - Configuration reference:
docs/reference/config.md - Contributor workflow:
docs/contributing.md - Contributor command-family guide:
docs/adding-command-families.md - Evals docs:
docs/architecture/evals.md
Work on docs locally
poetry install --with dev,docs
poetry run mkdocs serve
poetry run mkdocs build --strict
For the full local quality checklist, including Ruff format/lint and pytest commands, see the contributor workflow. When behavior changes, update docs in the same pull request.
- Optional local persistent REPL history is available via
OTERMINUS_HISTORY_ENABLED=true; reruns still go through normal validation + confirmation.
For a small set of deterministic natural-language requests, OTerminus can skip Ollama by producing a local structured proposal before normal validation and confirmation.
Project details
Release history Release notifications | RSS feed
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 oterminus-0.1.1.tar.gz.
File metadata
- Download URL: oterminus-0.1.1.tar.gz
- Upload date:
- Size: 73.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af12ab5b8997a760acfdc0626fa07d0bbeec3b27e0ece6cd24763a8e0a379c4f
|
|
| MD5 |
971a05efce55076fbd61f6f661153f07
|
|
| BLAKE2b-256 |
c442d1a01f81d6ba3db03db814957ac909dbc35346e380e9a0c87c26bdd8a5ee
|
Provenance
The following attestation bundles were made for oterminus-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on PooriaT/oterminus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oterminus-0.1.1.tar.gz -
Subject digest:
af12ab5b8997a760acfdc0626fa07d0bbeec3b27e0ece6cd24763a8e0a379c4f - Sigstore transparency entry: 1638584744
- Sigstore integration time:
-
Permalink:
PooriaT/oterminus@a13f60f85d9798588407132775ff1a2e6df1cf80 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/PooriaT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a13f60f85d9798588407132775ff1a2e6df1cf80 -
Trigger Event:
push
-
Statement type:
File details
Details for the file oterminus-0.1.1-py3-none-any.whl.
File metadata
- Download URL: oterminus-0.1.1-py3-none-any.whl
- Upload date:
- Size: 93.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f0381f6f1f2dba645a52d4b9122ecc2c7e10c4b3fdece69bb33ee09bb88e90
|
|
| MD5 |
de2d9857f07395d8490218bdd455ec63
|
|
| BLAKE2b-256 |
b9174a3ea2a9dad94d2cefa1ed0bfc85440d04f13dd9abcbed8fb1a311124d1a
|
Provenance
The following attestation bundles were made for oterminus-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on PooriaT/oterminus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oterminus-0.1.1-py3-none-any.whl -
Subject digest:
18f0381f6f1f2dba645a52d4b9122ecc2c7e10c4b3fdece69bb33ee09bb88e90 - Sigstore transparency entry: 1638585027
- Sigstore integration time:
-
Permalink:
PooriaT/oterminus@a13f60f85d9798588407132775ff1a2e6df1cf80 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/PooriaT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a13f60f85d9798588407132775ff1a2e6df1cf80 -
Trigger Event:
push
-
Statement type: