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

Status check

┌──────────────────────────────────────────────┐
│Relay nickname: exitafpwrwmm                  │
│Uptime: 0d 05h 53m 06s                        │
│Connections (N/L/Co/F/Cl): 0/0/7/0/0          │
│Download (Cur/Avg/Tot): 338B / 116B / 2MB     │
│Upload (Cur/Avg/Tot): 1KB / 152B / 3MB        │
│Version: 0.4.9.11 (none recommended)          │
│                                              │
│                              ░░░░░░░░        │
│                             ░╔══════╗░   █▄  │
│             ▌▌          z   ░║ EXIT ║░ █████ │
│             ▓▓▀        Z    ░╚══════╝░   █▀  │
│         ▄▄▄▀▀▀▀▄▄▄   Z       ░░░░░░░░        │
│        █   ─  ─    ▄▄▄▄▄                     │
│       █           █  █  █                    │
│      █    ──  ── █  ▀█▀  █  ╓───┬───╖╤═══╕   │
│ ____ █      ∙     █  █  █   ║---│---║╧╤══╧╤  │
││oV2o│█             ▀▀▀▀▀    ║---│---║╒╧══╤╧  │
│╘════╛ █▄▄▄▄▄▄▄▄▄▄▄▄█        ╙───┴───╜╘═══╧   │
└───────────────────────────Hit ctrl+c to exit─┘

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, as well as the recommendation from the consensus (if any)

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
Asleep The relay is "dormant", meaning it has gone idle due to lack of use or some similar reason.
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.

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.

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

You may also like...


This repository contains no AI-generated code and was made with :heart: by @daxAKAhackerman

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tamagonion-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tamagonion-1.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file tamagonion-1.1.0.tar.gz.

File metadata

  • Download URL: tamagonion-1.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","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}

File hashes

Hashes for tamagonion-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6ce818e65e2793b712f65372193cb2500c98cbbdde2c700b2c89dcdf9d62aa17
MD5 26b8de3d59c1e7464abe90708c3643a6
BLAKE2b-256 6476d9068bae2ef2cb054c5d423203a8f00bfc97cf8ea7b92e64138955106430

See more details on using hashes here.

Provenance

The following attestation bundles were made for tamagonion-1.1.0.tar.gz:

Publisher: release.yml on daxAKAhackerman/tamagonion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tamagonion-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tamagonion-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","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}

File hashes

Hashes for tamagonion-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8597d45e0533b093164dc184a67ae6d69029b2ad8775d077d252ad761be325fe
MD5 64fdad0865c8eb0ab459bd887bb8206a
BLAKE2b-256 7446b8c549ad3d3a06217ebccf6d2f8bd97ceba046ee8380970f72b2be444fa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tamagonion-1.1.0-py3-none-any.whl:

Publisher: release.yml on daxAKAhackerman/tamagonion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

0.0.0

2 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