# Is there any way to programatically open the mitmproxy?

**URL:** <https://discourse.mitmproxy.org/t/is-there-any-way-to-programatically-open-the-mitmproxy/49>\
**Category:** help\
**Created:** [June 19, 2016, 4:36am UTC](https://discourse.mitmproxy.org/t/is-there-any-way-to-programatically-open-the-mitmproxy/49 "2016-06-19T04:36:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XericZephyr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/xericzephyr/32/29_2.png) [@XericZephyr](https://discourse.mitmproxy.org/u/XericZephyr)\
**Post date:** [June 19, 2016, 4:36am UTC](https://discourse.mitmproxy.org/t/is-there-any-way-to-programatically-open-the-mitmproxy/49/1 "2016-06-19T04:36:16Z")

</div>

For example, like

```auto
from mitmproxy import mitmproxy_main

if __name__ == " __main__":
  mitmproxy_main(parameters...)

```

Is there anyway to do so?

---

<div class="post-metadata">

**Author:** ![dufferzafar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/dufferzafar/32/24_2.png) [@dufferzafar](https://discourse.mitmproxy.org/u/dufferzafar)\
**Post date:** [June 19, 2016, 5:07am UTC](https://discourse.mitmproxy.org/t/is-there-any-way-to-programatically-open-the-mitmproxy/49/2 "2016-06-19T05:07:30Z")

</div>

You were almost there. 😛

```auto
from mitmproxy import main

if __name__ == " __main__":
    main.mitmproxy(args="--no-mouse")

```
