Skip to main content

tiny-harness

tiny-harness runs an AI agent that can hold a conversation, call tools and survive a crash. You can use it in two ways:

  • In your terminal. Install one command and chat with the agent in a terminal user interface (the TUI).
  • In your Python application. Start the agent from your own code and serve it to your users over the A2A protocol.

Full documentation: madarauchiha-314.github.io/tiny-harness

Quickstart: chat in your terminal

You need Python 3.14 and an OpenAI API key.

pip install tiny_harness
export OPENAI_API_KEY=sk-...
tiny-harness

The TUI opens. Type a message and press Enter.

On the first run, tiny-harness creates its configuration file at ~/.tiny-harness/config.toml. It also downloads the Temporal server one time. Temporal keeps your tasks safe when the program stops.

No OpenAI key? Use a local model with Ollama. See Models.

Read more: CLI guide.

Quickstart: run it in your Python application

pip install tiny_harness
export OPENAI_API_KEY=sk-...

Write a configuration file, config.toml:

[temporal]
mode = "embedded"                  # tiny-harness starts Temporal for you

[openai]
model = "gpt-6.1-sol"

[server]
base_url = "http://127.0.0.1:8080"

Start the agent from your code:

import asyncio
from pathlib import Path

from tiny_harness.config import Settings
from tiny_harness.service import running_harness


async def main() -> None:
    settings = Settings.load(Path("config.toml"))  # secrets come from the environment
    async with running_harness(settings) as harness:
        print(f"Agent ready at {harness.base_url}")
        await harness.wait()  # serve until the process stops


asyncio.run(main())

Any A2A client can now talk to the agent at harness.base_url.

Read more: SDK guide.

Documentation

I want to … Read
Chat with an agent in my terminal CLI guide
Run the agent in my Python application SDK guide
Add one or more agents to my Starlette or FastAPI app Mount agents on your app
Change a setting Configuration
Put the agent in production Deploy
Work on tiny-harness itself Developer guide

License

Apache-2.0. See LICENSE.

Metadata

Release files for tiny-harness 0.8.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 tiny-harness 0.8.0
File Size Uploaded
tiny_harness-0.8.0.tar.gz 221.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tiny-harness 0.8.0
File Interpreter ABI Platform
tiny_harness-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 513.5 kB

Release files / tiny_harness-0.8.0.tar.gz

Download URL tiny_harness-0.8.0.tar.gz
Size 221.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a73e8cb1a8b5ccd23b91983e5c3095ed8b2f5522e240ad38ce2d632ea6ee6f66
BLAKE2b-256 checksum
How to use checksums
fe84722a4ba054d0fada0cfcd599b4830e2b2f37d88b2b15e365fd91dff8ecee
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 14, 2026.

Transparency log

Release files / tiny_harness-0.8.0-py3-none-any.whl

Download URL tiny_harness-0.8.0-py3-none-any.whl
Size 291.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39e07cd9eda0a0bbb945f00422a66604c2dc396149abc9d095154e194289ca25
BLAKE2b-256 checksum
How to use checksums
98b2e4652ed0bcb2afd660ffb3aaf812aed009130ff2e37125b0b8abb443132c
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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