Skip to main content

Tamagonion

Instructions

This is Stinky, it's a Tamagonion and it's running your Tor relay. Tamagonions are cyber creatures that have bravely stepped out of the Tor network to learn what life is like in the clearnet and to help you monitor your relay. It mostly loafs around and browses the Web anonymously, but it's more entertaining than looking at a graph!

             ▌▌
             ▓▓▀
         ▄▄▄▀▀▀▀▄▄▄
        █   ─  ─   █
       █    ▄  ▄    █
      █     ▀  ▀     █
      █      ──      █
      █              █
       █▄▄▄▄▄▄▄▄▄▄▄▄█

More seriously, this program is meant to help you monitor your Tor relay in a more fun way. Start Tamagonion and just let it do its thing in the corner of your desktop or in a tmux split to get a general idea of the state of your relay. It is built to have minimal dependencies, only relying on Stem.

Activation

To activate the viewport, use the tamagonion command as such:

# Install tamagonion
# If you'd rather run it directly from this repository, you can use `uv run tamagonion` instead
$ pip install tamagonion

# By default, we will try to connect to the control port at 127.0.0.1:9051
$ tamagonion

# If you use password authentication, you can supply it with -P or with the TAMAGONION_PASSWORD environment variable
$ tamagonion -P my_password
$ TAMAGONION_PASSWORD=my_password tamagonion

# If the port is listening somewhere else, you can specify it with -i and -p
$ tamagonion -i 192.168.0.10 -p 9999

# If you are connecting using a Unix socket, you can point to it with -s
$ tamagonion -s /var/run/tor/control

Home screen

┌──────────────────────────────────────────────┐
│Relay nickname: exitgpjkoely                  │
│Uptime: 0d 02h 58m 19s                        │
│Connections (N/L/Co/F/Cl): 0/0/7/0/0          │
│Download (Cur/Avg/Tot): 353B / 201B / 2MB     │
│Upload (Cur/Avg/Tot): 1KB / 389B / 4MB        │
│Version: 0.4.9.11                             │
│                                              │
│                              ░░░░░░░░        │
│                             ░╔══════╗░   █▄  │
│             ▌▌              ░║ EXIT ║░ █████ │
│             ▓▓▀             ░╚══════╝░   █▀  │
│         ▄▄▄▀▀▀▀▄▄▄           ░░░░░░░░        │
│        █   ─  ─    ▄▄▄▄▄                     │
│       █    ▄  ▄   █  █  █                    │
│      █     ▀  ▀  █  ▀█▀  █  ╓───┬───╖╤═══╕   │
│ ____ █      ──    █  █  █   ║---│---║╧╤══╧╤  │
││oV2o│█             ▀▀▀▀▀    ║---│---║╒╧══╤╧  │
│╘════╛ █▄▄▄▄▄▄▄▄▄▄▄▄█        ╙───┴───╜╘═══╧   │
└───────────────────────|Home│Status│Hints│Quit┘

The top of the viewport contains various information about your relay. More specifically:

  • The relay nickname as defined in your Tor configuration
  • The uptime since the Tor daemon has started
  • The number of connections
    • NEW: We have received a new incoming OR connection, and are starting the server-side handshake
    • LAUNCHED: We have launched a new outgoing OR connection, and are starting the client-side handshake
    • CONNECTED: The OR connection has been connected and the handshake is done
    • FAILED: Our attempt to open the OR connection failed
    • CLOSED: The OR connection closed in an unremarkable way
  • The current, average and total amount of data that was downloaded and uploaded
  • The version of the Tor binary

You can always come back home by pressing H, and quit the app using Q.

Biology

Tamagonions are very attuned to a relay's operation. You can know how your relay is going by looking at how Stinky is feeling or behaving.

Behaviour Meaning
Sad The relay doesn't have the both the "Valid" and the "Running" flags, or it has the "NoEdConsensus" flag.
Confused The relay discarded expired statuses and server descriptors to fall below the desired threshold of directory information.
Embarrassed A directory authority rejected our descriptor.
Looking away The relay's ORPort is unreachable.
Bored The relay has the "MiddleOnly" flag.
Glitchy The relay doesn't have the "Stable" flag.
Old The relay has the "StaleDesc" flag.
Egg The relay is bootstrapping.
Slow The relay doesn't have the "Fast" flag.
Hurt The Tor binary version is either obsolete or unrecommended.
Asleep This just means that it's bed time for Stinky. What, you expected it to never sleep?

Room status check

Stinky's room can get a bit crowded with things it collected along the way. But everything it collects means something special to it.

Object or room state Meaning
Light's out The relay believes the network is unreachable.
Exit sign The relay has the "Exit" flag.
Broken exit sign The relay has the "BadExit" flag.
Books The relay has the "HSDir" flag.
Cassette The relay has the "V2Dir" flag.
Shield The relay has the "Guard" flag.
Sunglasses The relay is a bridge.

Status check

To get an explanation of Stinky's state, press S and you will be shown details about the reason behind its behaviour.

┌──────────────────────────────────────────────┐
│┌Status──────────────────────────────────────┐│
││Network liveness: Live                      ││
││Bootstrap progress: 100%                    ││
││Enough directory info: Yes                  ││
││Good server descriptor: Yes                 ││
││Reachability: Reachable                     ││
││Version status: none recommended            ││
││Flags: Exit, Fast, Guard, HSDir, Running    ││
││       V2Dir, Valid                         ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
│└────────────────────────────────────────────┘│
└───────────────────────|Home│Status│Hints│Quit┘

Caretaking hints

To get hints on how to address the various states of Stinky, press I. Use U and D to scroll.

┌──────────────────────────────────────────────┐
│┌Hints───────────────────────────────────────┐│
││Missing Stable flag: Your relay has         ││
││not been up for long enough or its mean time││
││between failure is too low. Is the Tor      ││
││process occasionally crashing? Is your      ││
││server rebooting? Is your network stable?   ││
││                                            ││
││Missing Fast flag: Your relay               ││
││doesn't have enough bandwidth to build high-││
││bandwidth circuits. Fit a bigger pipe, or   ││
││accept that your relay will be underused.   ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
││                                            ││
│└──────────────────────|Scroll up|Scroll down┘│
└───────────────────────|Home│Status│Hints│Quit┘

Adjusting the viewport

Here are a few examples of how you could typically launch Tamagonion:

# If you are using Kitty, you can start a new terminal running only tamagonion with the correct dimensions
$ TAMAGONION_PASSWORD=my_password kitty --override remember_window_size=no --override initial_window_width=48c --override initial_window_height=20c tamagonion

# If you are using tmux, you can add a bind as such to create a popup that will quickly show you tamagonion
echo 'bind-key T display-popup -E -w 50 -h 22 -x R -y S -- env TAMAGONION_PASSWORD=my_password /home/user/.pyenv/shims/tamagonion' >> ~/.tmux.conf

# Or if you want a permanent split
pane=$(tmux split-window -h -d -l 48 -P -F '#{pane_id}'); tmux split-window -v -d -l 20 -t "$pane" env TAMAGONION_PASSWORD=my_password tamagonion

Custom renderers

Looking at Stinky through the console is pretty cool, but you know what's cooler? Looking at it on your smart fridge! Custom renderers allow you to code your own renderer plugins so that you can process the frames however you want, and send them to any output device. This can be achieved in a few simple steps:

  1. Create a python file that contains a class that implements the RendererProtocol as defined in src/tamagonion/render.py.
  2. Implement the setup and tear_down methods. setup will be called once before rendering starts, and tear_down once when you exit the program.
  3. Implement the render method, which receives a single argument buffer. This is the method responsible for processing the frame (ex: handling color and effect codes) and sending them to the output device (over TCP for example).
  4. Start tamagonion with --custom-renderer path/to/my/file.py:MyRenderClass. You can also add --headless if you want to disable keyboard input.

You may also like...


This repository contains no AI-generated code and was made with ❤️ by @daxAKAhackerman

Metadata

Release files for tamagonion 1.7.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 tamagonion 1.7.2
File Size Uploaded Provenance Actions
tamagonion-1.7.2.tar.gz 16.0 kB With provenance Details for tamagonion-1.7.2.tar.gz

Built distribution (wheel)

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

Total release size: 34.4 kB

Release files / tamagonion-1.7.2.tar.gz

Download URL tamagonion-1.7.2.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2d78e8ce7743c4c0299bab21c964a5a9930ec87e94282c3df18f2961f409fe71
BLAKE2b-256 checksum
How to use checksums
46d44268184ec0cb605fbd2e6ab46febe3da2ff387d17674aa921b24ae60b94c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 6, 2026.

Transparency log

Release files / tamagonion-1.7.2-py3-none-any.whl

Download URL tamagonion-1.7.2-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
358e447b5f9f1dc8c47e47aa6e618e41c2424ab84bea011ee9769fa1243b3ede
BLAKE2b-256 checksum
How to use checksums
1c2a2d974d50b72948bb1f98f4779b2d2649a0b9fde38370835a1ae23c1753d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 6, 2026.

Transparency log

Security for tamagonion 1.7.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 tamagonion-1.7.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 Nov 6, 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