> For the complete documentation index, see [llms.txt](https://guide.onionmobile.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.onionmobile.dev/mobile-concepts/all-the-ways-to-tor.md).

# Possible Ways to Tor Your App

Summary of different ways an app can integrate with Tor

{% embed url="<https://www.youtube.com/watch?v=DgWZjP1UkxQ>" %}
Tor Ecosystem on Mobile from Tor State of the Onion 2023
{% endembed %}

### Build Tor into your app

It is now easier than ever to directly build Tor into your app, hiding all complexity of setup and configuration from your users. Whether you use [Tor-Android](/tor-on-android/tor-android-library.md), [Arti](/tor-c-tor-vs-arti-what.md), or [Tor.framework](/tor-on-ios/tor.framework-for-ios.md), there are many options ready to go. Apps like Tor Browser for Android do this today, to provide a seamless, integrated experience for browsing the web over Tor.

### Integrate with external Orbot or TorServices app

If you do not want to add the additional code complexity and size directly into your app, you can instead only offer active Tor features if the user has [Orbot](/tor-on-android/netcipher-with-orbot-legacy.md) or [TorServices](/tor-on-android/torservices.md) installed on their device. Apps like [F-Droid](/mobile-concepts/mobile-apps-with-tor.md), [Save by OpenArchive](/mobile-concepts/mobile-apps-with-tor.md), and [ReThinkDNS](/mobile-concepts/mobile-apps-with-tor.md) do this today, to enable proxying through Tor without having to build in all of Tor.

### Implement Tor in a VPN or Network Extension

If you want to build your own VPN, or want to ensure that all possible network traffic from your app (and even the whole device) is automatically routed through Tor, then this might be the approach you take. Apps like Orbot do this today, to provide an easy Tor-based "VPN" for users.

### Run an OnionService in your app

Using Tor, you can turn your app into a server, that any other Tor client can connect to. This enables you to host content and services just like you are on the open web, directly from your device. Apps like [OnionShare](/mobile-concepts/mobile-apps-with-tor.md), [Briar](/mobile-concepts/mobile-apps-with-tor.md) and [Quiet](/mobile-concepts/mobile-apps-with-tor.md) do this today to enable file sharing and chat.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.onionmobile.dev/mobile-concepts/all-the-ways-to-tor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
