Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In order to set proxy in Chromium browser, one needs to go to

Settings → Under the Hood → Change Proxy Settings → Network Proxy.

It's too complicated. How do I set http_proxy in shell? I've tried

export http_proxy=

But it doesn't seem to work.

Also, if you only want to set the proxy on the Chromium browser -- not your entire network -- the command line is the only way to set the proxy just for the browser. How can one set the proxy on Chromium -- using the command line -- to solve this problem?

share|improve this question

migrated from Sep 23 '12 at 14:51

This question came from our site for professional and enthusiast programmers.

Why do you want to use command line? – raam86 Sep 23 '12 at 0:17
Do you only want to have the proxy for Chromium, or do you want one system-wide? That is, every application that connects to the Internet would be forced through this proxy. – Makoto Sep 23 '12 at 0:30
I edited the question to demonstrate another problem. The Chromium GUI only changes the proxy for the entire network not just the browser. The command line allows one to override this. Thus, this question may be useful on Super User, if it can be migrated. – jmort253 Sep 23 '12 at 2:02
up vote 4 down vote accepted

You have to use the --proxy-server argument.

From the Chromium Network Settings page:

--proxy-server=<scheme>=<uri>[:<port>];.. | <uri>[:<port>] | "direct://"
This tells Chrome to use a custom proxy configuration. You can specify a custom proxy configuration in three ways:

1) By providing a semi-colon-separated mapping of list scheme to url/port pairs.
For example, you can specify:
to use HTTP proxy "foopy:80" for http URLs and HTTP proxy "foopy2:80" for ftp URLs.

2) By providing a single uri with optional port to use for all URLs.
For example:
will use the proxy at foopy:8080 for all traffic.

3) By using the special "direct://" value.
will cause all connections to not use a proxy.

You can also have a look at this List of Chromium Command Line Switches.

share|improve this answer
beat me to it 54 seconds. – raam86 Sep 23 '12 at 0:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .