# Install cjdns with Homebrew, apk, MacPorts, Nix, pacman

Advanced mesh routing system with cryptographic addressing. Version 22.3 via Homebrew; verified 2026-08-02. Also installable with nix: nix profile install nixpkgs#cjdns.

## Install

```sh
sudo av install brew:cjdns
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cjdns
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cjdns
```

  Evidence: MacPorts ports tree: net/cjdns/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cjdns
```

  Evidence: Alpine Linux edge package indexes: cjdns from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cjdns
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cj/cjdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cjdns
```

  Evidence: Arch Linux sync databases: cjdns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cjdns
- **Package manager:** Homebrew
- **Version:** 22.3
- **Source summary:** Advanced mesh routing system with cryptographic addressing
- **Homepage:** <https://github.com/cjdelisle/cjdns/>
- **Repository:** <https://github.com/cjdelisle/cjdns>
- **Last updated:** 2026-08-02T01:55:35+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cjdnstool (alias)
- cjdroute (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 22.3
## Project history and usage

cjdns is an encrypted IPv6 mesh-routing system that derives addresses from public keys and uses a distributed hash table for routing. It is packaged as a command-line/network daemon stack centered on `cjdroute`.

### Project history

The official repository was created in 2011 and describes cjdns as an encrypted IPv6 network using public-key cryptography for address allocation and a distributed hash table for routing. Its whitepaper frames the project as a clean-slate response to Internet routing, security, decentralization, and ease-of-configuration problems.

The project goals document emphasizes built-in security, auto-configuration, decentralization, and scalability for mesh-like networks.

### Adoption history

The batch input records cjdns packages in Homebrew, Alpine, MacPorts, Nix, and Arch/pacman. The upstream README includes Linux and macOS build instructions, an installer-project option, and localized README translations, all signs of a project aimed at technically capable operators across Unix-like systems.

### How it is used

Users build or install cjdns, generate `/etc/cjdroute.conf` with `cjdroute --genconf`, protect that file because it contains node identity material, and run the router to join encrypted peer networks.

### Why package nerds care

cjdns is package-nerd significant because it is not just a daemon: it packages a whole alternate-networking experiment with crypto identity, TUN/TAP setup, peer configuration, and routing assumptions. It stresses distro policy around networking privileges, service setup, generated secrets, and fast-moving low-level dependencies.

### Timeline

- 2011: Official GitHub repository created.
- 2011: Early tags include cjdns-0.1, cjdns-0.2, and cjdns-0.3.
- 2026: Official GitHub repository metadata shows continuing activity.

### Related projects

- The official README points to cjdns.sh as a pre-built binary installer option.
- The official whitepaper compares the problem space with IPsec, DNSSEC, LISP, OLSR, HSLS, and BATMAN.

### Sources

- <https://github.com/cjdelisle/cjdns/blob/master/README.md>
- <https://github.com/cjdelisle/cjdns/blob/master/doc/Whitepaper.md>
- <https://github.com/cjdelisle/cjdns/blob/master/doc/projectGoals.md>
- <https://api.github.com/repos/cjdelisle/cjdns>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/cjdroute.conf

## Credential files

- Unix: /etc/cjdroute.conf
## Other Package-Manager Records

- Nix - cjdns: normalized package name match | nixpkgs package indexes: pkgs/by-name/cj/cjdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cjdns - 22.3-r0: normalized package name match | Alpine Linux edge package indexes: cjdns from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A routing engine designed for security, scalability, speed and ease of use | https://github.com/cjdelisle/cjdns
- apk - cjdns-doc - 22.3-r0: normalized package name match | Alpine Linux edge package indexes: cjdns-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A routing engine designed for security, scalability, speed and ease of use (documentation) | https://github.com/cjdelisle/cjdns
- apk - cjdns-openrc - 22.3-r0: normalized package name match | Alpine Linux edge package indexes: cjdns-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A routing engine designed for security, scalability, speed and ease of use (OpenRC init scripts) | https://github.com/cjdelisle/cjdns
- pacman - cjdns - 22.3-2: normalized package name match | Arch Linux sync databases: cjdns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Routing engine designed for security, scalability, speed and ease of use | https://github.com/cjdelisle/cjdns
- MacPorts - cjdns: normalized package name match | MacPorts ports tree: net/cjdns/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/cjdns.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cjdns.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
