Installation and CLI usage
Have npm and Node.js installed already? Skip to step 6. If not, read below
Update your repo
sudo apt-get update --yesInstall npm
sudo apt-get install npm --yesInstall Node Version Manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bashUpdate the terminal
source ~/.bashrcInstall Node.js version 20
nvm install 20Use Node.js version 20
nvm use 20Install the anyone-client
npm install @anyone-protocol/anyone-clientIf you wish to use it personally, start the anyone-client.
npx anyone-clientResource: https://www.npmjs.com/package/@anyone-protocol/anyone-client
Have npm and Node.js installed already? Skip to step 4. If not, read below NPM installation replicates the installation guide here. You can follow this guide on the Terminal app on your Mac.
Install nvm by
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bashUse nvm to install Node.js 20
nvm install 20Verify that you have installed Node.js and npm by ensuring you get a version code for each of these commands
node -v
npm -vInstall the anyone-client
npm install @anyone-protocol/anyone-clientIf you wish to use it personally, start the anyone-client.
npx anyone-clientResource: https://www.npmjs.com/package/@anyone-protocol/anyone-client
Have npm and Node.js installed already? Skip to step 4. If not, read below NPM installation replicates the installation guide here. You can follow this guide on the Command Prompt app on your Desktop.
Install fnm (fast node manager) by
winget install Schniz.fnmUse fnm to install Node.js 20
fnm env --use-on-cd | Out-String | Invoke-Expression
fnm use --install-if-missing 20Verify that you have installed Node.js and npm by ensuring you get a version code for each of these commands
node -v
npm -vInstall the anyone-client
npm install @anyone-protocol/anyone-clientIf you wish to use it personally, start the anyone-client.
npx anyone-clientResource: https://www.npmjs.com/package/@anyone-protocol/anyone-client
Run from CLI
The Anyone Protocol NPM package provides a command-line interface (CLI) that allows you to easily run and configure the Anyone client. This page details how to use the CLI and the available options.
Running the Anyone Client
To run the Anyone client using the CLI, use the following command:
npx anyone-clientThis command will start the client with default port settings.
Default Port Settings
When run without any options, the Anyone Client uses the following default ports:
SocksPort: 9050
ControlPort: 9051
OrPort: 9001
CLI Options
You can customize the client's behavior using various command-line options:
-s
Set the SocksPort
9050
-c
Set the ControlPort (use 0 to disable)
9051
-o
Set the OrPort
9001
-v
Enable verbose mode for full client logs
Disabled
-f
Set the path to a custom anonrc config file
None
-b
Set the path to a custom anon binary
None
Example Usage
Here's an example of how to use these options:
npx anyone-client -s 9150 -c 0 -o 9101 -f ./customAnonrc -b /usr/local/bin/anon -vThis command will:
Set the SocksPort to 9150
Disable the ControlPort
Set the OrPort to 9101
Use a custom anonrc file located at './customAnonrc'
Use a custom anon binary located at '/usr/local/bin/anon'
Enable verbose mode
Important Notes
When changing ports, ensure they don't conflict with other services on your system.
The
-boption allows you to use a preinstalled anon binary instead of the one that comes with the package.
Terms and Agreements
To bypass the user agreement automatically, you can create a file named 'terms-agreement' in the working directory. This file should contain the line 'agreed' to be considered valid.
Last updated