OpenTF
Autonomous AI coding agent for your terminal.
Install
pip install opentf
Requires Python 3.12+. Then run:
export ANTHROPIC_API_KEY="sk-ant-..."
opentf
Or let OpenTF prompt you for your API key on first launch.
What It Does
OpenTF reads, writes, and edits code in your project. It runs shell commands, searches your codebase, and uses a 9-strategy fuzzy edit engine so code changes land even when the AI gets indentation or whitespace slightly wrong. LSP diagnostics catch type errors after every edit. File changes are backed up and undoable.
Commands
| Command | Description |
|---|---|
/plan |
Create a structured execution plan |
/janitor |
Scan code for quality issues |
/model |
Switch between Claude models |
/provider |
Switch between Anthropic / OpenAI / Ollama |
/compact |
Compress conversation history |
/save |
Save session |
/resume |
Resume a saved session |
/undo |
Undo last file change |
/cost |
Show token usage and cost |
/status |
Show current session info |
/login |
Set API key |
/clear |
Clear conversation |
/exit |
Quit |
Install Methods
pip (recommended)
pip install opentf
pipx (isolated)
pipx install opentf
Install script
curl -fsSL https://raw.githubusercontent.com/itscool2b/opentf/main/install.sh | bash
Creates an isolated environment at ~/.opentf/ and adds the opentf command to your PATH.
From source
git clone https://github.com/itscool2b/opentf.git
cd opentf
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
opentf
Modes
opentf # Full terminal UI (default)
opentf --repl # Lightweight REPL mode
opentf -p "prompt" # Single-shot headless mode
Development
git clone https://github.com/itscool2b/opentf.git
cd opentf
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
License
MIT
Metadata
Release files for opentf 0.1.3
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 |
|---|---|---|---|---|
| opentf-0.1.3.tar.gz | 163.2 kB | Without provenance | Details for opentf-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opentf-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for opentf-0.1.3-py3-none-any.whl |
Total release size: 331.7 kB
Release files / opentf-0.1.3.tar.gz
| Download URL | opentf-0.1.3.tar.gz |
|---|---|
| Size | 163.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dea792b28571db56feba07c3e1b0e5ba0ef96c62de2a23055f0a4ca28c9ff576
|
|
BLAKE2b-256 checksum How to use checksums |
ea1f3278826d0dfdd2ff7e5f5003c4b8b6e4f36d9d28d25dde3f90799e0384a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / opentf-0.1.3-py3-none-any.whl
| Download URL | opentf-0.1.3-py3-none-any.whl |
|---|---|
| Size | 168.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
346eab08207b1bdc59be65687de80a82f4b9467dd37b3559fef368ceb12424df
|
|
BLAKE2b-256 checksum How to use checksums |
b48b32f3994259c93b0c5b0de94371a3e019355bd2a795a4b984ca002012cb61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for opentf 0.1.3
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.