One binary to provision and configure your infrastructure.
Conn3x creates your servers and sets them up, from one tool. You write one configuration
for the cloud resources and for the packages, files and services on them. conn3x plan
shows every change before it's made, and conn3x apply makes it. It works on servers you
already run, too.
That job usually takes two tools: Terraform or OpenTofu to create the machine, then Ansible to set it up, plus the glue scripts and inventory files that hold the two together. Conn3x does it from one binary, with one plan and one state, its record of what it manages. We call that an IaCC tool: infrastructure as code and configuration management in one plan. Here's why that matters.
Somebody changed nginx's port by hand on web1. The next conn3x plan reads the file back, shows the line that moved, and queues the reload that goes with it:
# conn3x_file.web__config["web1"] will be updated in-place
~ resource "conn3x_file" "web__config" {
~ content = <<-EOT
server {
- listen 8080;
+ listen 80;
server_name web1;
root /var/www/html;
}
EOT
id = "127.0.0.1:38587:/etc/nginx/conf.d/web.conf"
# conn3x_service_action.web__reload["web1"] will be updated in-place
~ resource "conn3x_service_action" "web__reload" {
~ runs = false -> (known after apply)
Plan: 0 to add, 2 to change, 0 to destroy.
That's a real run, trimmed, of a circuit like the quick start below. The second change is the reload handler, and runs = false -> (known after apply) means it reloads nginx once the file it watches has changed. Nothing touches the server until you run conn3x apply.
Linux, macOS and Windows, amd64 and arm64. Every release is signed and comes with SBOMs; the docs show how to check one.
On macOS, with Homebrew:
brew install conn3xorg/tap/conn3x
To take a release only once it has been out for a week, use conn3xorg/tap/conn3x@stable instead, or the :stable image tag.
Or download a release:
VERSION=0.51.0 OS=linux ARCH=amd64 # or darwin / arm64
curl -fsSLO "https://github.com/conn3xorg/conn3x/releases/download/v${VERSION}/conn3x_${VERSION}_${OS}_${ARCH}.tar.gz"
tar -xzf "conn3x_${VERSION}_${OS}_${ARCH}.tar.gz" conn3x && sudo install conn3x /usr/local/bin/
On Debian, Ubuntu, Rocky Linux, RHEL, AlmaLinux and Fedora, since v0.20.0, apt install conn3x and dnf install conn3x work from our signed repositories once you add them, and apt upgrade or dnf upgrade keeps Conn3x current. The install page has the commands. Each release also has a .deb and an .rpm for amd64 and arm64, listed in the same signed checksums.txt.
On Windows, with Scoop:
scoop bucket add conn3x https://github.com/conn3xorg/scoop-bucket
scoop install conn3x/conn3x
Or take the zip, which holds conn3x.exe, and put it somewhere on your PATH:
$v = "0.51.0"
Invoke-WebRequest "https://github.com/conn3xorg/conn3x/releases/download/v$v/conn3x_${v}_windows_amd64.zip" -OutFile conn3x.zip
Expand-Archive conn3x.zip -DestinationPath conn3x
It logs in with keys from the Windows OpenSSH agent, like ssh does.
A circuit is a set of steps for a group of servers, written in HCL, the language Terraform and OpenTofu use. If you know Ansible, it's like a playbook. Each step reads the server, shows a diff, then applies it once you approve.
This circuit needs no cloud account, just a server you already have. It installs nginx,
writes its config from a template, keeps it running, and reloads it when the config
changes. Save it as main.circuit.hcl with your own address and login, and put your nginx
config beside it as nginx.conf.tftpl.
circuit "web" {
hosts = { web1 = "203.0.113.10" }
ssh {
user = "deploy"
private_key_file = "~/.ssh/id_ed25519"
become = true
}
step "nginx" {
package {
name = "nginx"
}
}
step "config" {
template {
source = "${path.module}/nginx.conf.tftpl"
destination = "/etc/nginx/nginx.conf"
vars = { server_name = each.key }
}
notify = [handler.reload]
}
step "running" {
service {
The web UI keeps its fleet store in one SQLite file, so it can't run as more than one instance
https://github.com/conn3xorg/conn3x/issues/1769
Labels: enhancement
conn3x run -m command -a 'echo hi' says "isn't NAME=VALUE", where ansible runs the command
https://github.com/conn3xorg/conn3x/issues/1749
Labels: bug, good first issue
conn3x run has no -connection, so ansible -c local has no equivalent
https://github.com/conn3xorg/conn3x/issues/1748
Labels: enhancement, good first issue
Upstream advisory for openssl: CVE-2026-120665 and 2 more
https://github.com/conn3xorg/conn3x/issues/1698
Labels: security, upstream-advisory
Upstream advisory for freeipa: CVE-2026-109159 and 1 more
https://github.com/conn3xorg/conn3x/issues/1693
Labels: security, upstream-advisory
Vendor advisory from Node.js: Wednesday, December 9, 2026 Security Releases
https://github.com/conn3xorg/conn3x/issues/1691
Labels: security, upstream-advisory
Thanks for helping out. Conn3x is early, so the most useful things right now are bug reports, design feedback in Discussions, and small, focused pull requests.
You don't need to write Go, or build anything, to help with the docs. Everything below works from the browser.
apps/docs/src/content/docs/.internal/conn3x/provider/moddoc/pages/ in this repository. Change them
here: the copies in conn3xorg/web are overwritten each time the pages are
regenerated.docs: the install page skipped a step. In the extended
description, add your sign-off line at the end (see below).A sign-off is a line at the end of a commit message:
Signed-off-by: Your Name <you@example.com>
With it, you certify that you wrote the change, or have the right to submit it, under the project's license. That's the Developer Certificate of Origin. It lets the project show where every change came from without asking you to sign an agreement or hand over your copyright. Your name stays on your commit.
GitHub's editor doesn't add the line for you, so type it in yourself. The
email has to match the one GitHub puts on the commit, or the DCO check on your
pull request fails. If you keep your email private on GitHub, that's the
@users.noreply.github.com address shown in
your email settings. From a terminal,
git commit -s adds the line for you.
Issues for writers carry the writers wanted label. If you're unsure of a fact, ask on the issue: we check every claim before it goes out. To tell us what you'd like to write, post in Discussions. Get involved lists other ways to help.
The rest of this file is about the code.
For anything bigger than a bug fix, open a discussion or an issue first. It's much easier to agree on an approach before the code exists than to rework a finished PR.
You need Go at the version named in go.mod. If your local Go is older,
the Go toolchain downloads the right version for you.
git clone https://github.com/conn3xorg/conn3x.git
cd conn3x
go build ./cmd/conn3x
./conn3x version
Run the checks CI runs:
go test ./internal/conn3x/... ./cmd/conn3x/... ./internal/dag/... ./internal/configs/... ./internal/addrs/...
go test -run Conn3x ./internal/tofu/
go test -run TestTest_Idempotent ./internal/command/
golangci-lint run ./internal/conn3x/... ./cmd/conn3x/... ./cmd/conn3x-agent/...
bash scripts/upstream/hook-budget.sh "$(cat internal/conn3x/version/UPSTREAM)" 9
bash scripts/upstream/sync_test.sh
bash scripts/upstream/commit_payload_test.sh
bash scripts/upstream/hook-budget_test.sh
bash scripts/dco-check_test.sh
bash scripts/build-agent_test.sh
The dag, configs, and addrs packages are upstream code that Conn3x
changes or leans on, so their tests run on every PR, along with the Conn3x
tests in internal/tofu. The hook budget caps how many upstream files carry
a Conn3x change at 9, and all 9 are taken:
internal/addrs/provider.go: conn3x is a built-in providerinternal/configs/parser_config.go: circuits lower to resourcesinternal/configs/parser_config_dir.go: *.circuit.hcl files, and circuit
names unique across filesinternal/command/meta_providers.go: the built-in providers are registeredinternal/tofu/transform_reference.go: a circuit with
strategy = "per_host" chains its steps per hostinternal/configs/test_file.go: a test run block takes idempotentinternal/command/test.go: an idempotent run plans again after applyinternal/tofu/context_plan.go: -limit targets circuit steps by hostinternal/tofu/node_resource_abstract_instance.go: plan reads each.key
and each.value from the expansion, not a fresh for_each per instanceA new hook has to free one of these slots first.
Conn3x is built on OpenTofu. The
upstream code is imported as-is and kept in sync with OpenTofu releases by
scripts/upstream/sync.sh. Conn3x's own code lives in:
cmd/conn3x/, the CLI entry pointinternal/conn3x/, everything else that's oursTo add a host module, the most common first PR, follow
docs/adding-a-module.md. It walks through sysctl
from the host up.
Keep changes to upstream files to a minimum, since every one of them has to
be carried through each sync. If you really need to touch one, mark the
change with a // CONN3X: comment that