Quick start
Prebuilt binaries for Windows are available on Github
Installing emissary-cli
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shBuild emissary-cli from source
git clone https://github.com/altonen/emissary
cd emissary
cargo build --releaseInstall emissary-cli from crates.io
cargo install --locked emissary-cliBuilding emissary-cli for Headless Mode
The native UI can be disabled entirely during compilation, meaning emissary-cli will run in headless mode. In headless mode, a web UI is available and the default port of the UI is 7657
cargo install --locked --no-default-features --features web-ui emissary-cliRunning emissary-cli
Start the emissary-cli binary:
emissary-cliOn the first boot, the router performs the following tasks:
- creates a directory for itself under
$HOME/.emissary - generates router and transport keys
- creates a default configuration for the router
- reseeds the router over HTTPS
- downloads
hosts.txtfromhttp://i2p-projekt.i2p/hosts.txt
For more information on how to configure the router, see router configuration.
Default listening ports:
| Service | Port |
|---|---|
| SAMv3 TCP | 7656 |
| SAMv3 UDP | 7655 |
| I2CP | 7654 |
| HTTP | 4444 |
| SOCKS | 4447 |
| Web UI | 7657 |
Graceful shutdown
emissary-cli supports graceful shutdown. When it receives a SIGINT, it starts a graceful shutdown process that lasts about 10 minutes until all transit tunnels have expired. If there are no transit tunnels the router shuts down immediately.
While not recommended, if you wish to skip graceful shutdown, send a second SIGINT which forcefully shuts down the router.