> For the complete documentation index, see [llms.txt](https://docs.tornadoeth.cash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tornadoeth.cash/generals/minified-ui-hosted-locally.md).

# Minified UI hosted locally

Tornado Cash protocol can be launched locally on your computer through a minified User Interface version made available by the core developers team.

{% embed url="<https://github.com/tornadocashdev/ui-minified>" %}
Tornado Cash UI Minified
{% endembed %}

### Step #1: Clone the Github repository on your computer <a href="#step-1-clone-the-github-repository-on-your-computer" id="step-1-clone-the-github-repository-on-your-computer"></a>

By opening your Command Line Interface, you can run the following commands to, first, clone the repository, then go inside the newly copied folder:

```
1 git clone https://github.com/tornadocashdev/ui-minified.git
2 cd ui-minified
```

### Step #2: Serve the Folder with Your Favorite HTTP Server <a href="#step-2-serve-the-folder-with-your-favorite-http-server" id="step-2-serve-the-folder-with-your-favorite-http-server"></a>

```
1 python -m SimpleHTTPServer 8080
```

You can obviously use any other http web server, such as[ npmjs.com/package/http-server](https://www.npmjs.com/package/http-server).

### Step #3: Run the UI on Localhost on your Favorite Web Browser <a href="#step-3-run-the-ui-on-localhost-on-your-favorite-web-browser" id="step-3-run-the-ui-on-localhost-on-your-favorite-web-browser"></a>

To finish, you just need to run <http://localhost:8080> on your Web Browser & let the magic happens 🪄

## Running a TOR service <a href="#running-a-tor-service" id="running-a-tor-service"></a>

If you wish to serve tornado cash UI on an .onion domain, there is an easy way to do it using docker-compose.

* You need to paste the following into `docker-compose.ym`

```
1 version: '2'
​
2 services:
3  tornado_ui:
4    image: tornadocashdev/ui
5    restart: always
6    container_name: tornado_ui
7  watchtower:
8    image: v2tec/watchtower
9    restart: always
10    volumes:
11      - /var/run/docker.sock:/var/run/docker.sock
12    command: --interval 60 tornado_ui
13  tor:
14    image: strm/tor
15    restart: always
16    depends_on: [ tornado_ui ]
17    environment:
18      LISTEN_PORT: 80
19      REDIRECT: tornado_ui:80
20      # Generate a new key with
21      # docker run --rm --entrypoint shallot strm/tor-hiddenservice-nginx ^torn
22      PRIVATE_KEY: |
23        -----BEGIN RSA PRIVATE KEY-----
24        ...
25        -----END RSA PRIVATE KEY-----
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tornadoeth.cash/generals/minified-ui-hosted-locally.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
