                 "names":[loginCouch[0]]
                 "roles":[]
             "readers":
-                "names":[loginCouch[0]]
+                "names":[loginCouch[0], 'proxy']
                 "roles":[]
         couchClient.setBasicAuth(loginCouch[0],loginCouch[1])
         couchClient.put 'cozy/_security', data, (err, res, body)->
             callback err
+
+    addCozyUser = (callback) ->
+        loginCouch = initLoginCouch()
+        data = 
+            "_id": "org.couchdb.user:proxy",
+            "name": "proxy",
+            "type": "user",
+            "roles": [],
+            "password": process.env.TOKEN
+        couchClient.setBasicAuth(loginCouch[0],loginCouch[1])
+        couchClient.post '_users', data, (err, res, body)->
+            callback err
+
 
     ### Logger ###
 

            if err
                logError(err)
            else if (process.env.NODE_ENV is 'production')
                addCozyAdmin (err) =>
                    if err
                        logError(err)
                    else
                        logCreated()
            else
                logCreated()


                    couchClient.setBasicAuth(loginCouch[0],loginCouch[1])
                    couchClient.get 'cozy/_security', (err, res, body)=>
                        if not body.admins? or
                                body.admins.names[0] isnt loginCouch[0] or
                                body.readers?.names[0] isnt 'proxy'
                            addCozyUser (err) ->
                                if err
                                    compound.logger.write "Error on database" +
                                    " Add user : #{err}"
                                else
                                    addCozyAdmin (err) =>
                                        if err
                                            compound.logger.write "Error on database" +
                                            " Add admin : #{err}"
                                        else
                                            logFound()
                        else
                            logFound()
                else
