Autonomi combines the spare capacity of everyday devices to form a new, autonomous, data and communications layer of the Internet
Autonomi combines the spare capacity of everyday devices to form a new, autonomous, data and communications layer of the Internet
[!IMPORTANT] This repository is archived.
Development of the Autonomi Network has moved to the WithAutonomi GitHub organisation. Please refer there for the current source, issues, and releases.
Critical infrastructure of the next web. Assembled from everyday devices and owned by us all.
Autonomi is a fully autonomous data and communications network that provides:
If you wish to build a version of antnode from source, some special consideration must be given
if you want it to connect to the current beta network.
You should build from the stable branch, as follows:
git checkout stable
cargo build --release --bin antnodeTo run a node and receive rewards, you need to specify your Ethereum address as a parameter. Rewards are paid to the specified address.
cargo run --release --bin antnode -- --rewards-address More options about EVM Network below.
The Autonomi network uses quic as the default transport protocol.
We can explore the network's features by using multiple node processes to form a local network. We also need to run a local EVM network for our nodes and client to connect to.
Follow these steps to create a local network:
The latest version of Rust should be installed. If you already have an installation, use rustup update to get the latest version.
Run all the commands from the root of this repository.
If you haven't already, install Foundry. We need to have access to Anvil, which is packaged with Foundry, to run an EVM node: https://book.getfoundry.sh/getting-started/installation
To collect rewards for you nodes, you will need an EVM address, you can create one using metamask.
cargo run --bin evm-testnetThis creates a CSV file with the EVM network params in your data directory.
--rewards-address is the address where you will receive your node earnings on.
cargo run --release --bin antctl -- local run --build --clean --rewards-address The EVM Network parameters are loaded from the CSV file in your data directory automatically when the local mode is enabled.
cargo run --release --bin antctl -- statusThe Antctl run command starts the node processes. The status command should show twenty-five
running nodes.
To upload a file or a directory, you need to set the SECRET_KEY environment variable to your EVM secret key:
When running a local network, you can use the
SECRET_KEYprinted by theevm-testnetcommand step 2 as it has all the money.
SECRET_KEY= cargo run --bin ant -- --local file upload The output will print out the address at which the content was uploaded.
Now to download the files again:
cargo run --bin ant -- --local file download The node manager launches each node process with a remote procedure call (RPC) service. The workspace has a client binary that can be used to run commands against these services.
Run the status command with the --details flag to get the RPC port for each node:
…Now you can run RPC commands against any node.
The info command will retrieve basic information about the node:
$ cargo run --bin antnode_rpc_client -- 127.0.0.1:34416 info
Node info:
==========
RPC endpoint: https://127.0.0.1:34416
Peer Id: 12D3KooWJ4Yp8CjrbuUyeLDsAgMfCb3GAYMoBvJCRp1axjHr9cf8
Logs dir: /home/>/.local/share/autonomi/node/12D3KooWJ4Yp8CjrbuUyeLDsAgMfCb3GAYMoBvJCRp1axjHr9cf8/logs
PID: 62369
Binary version: 0.103.21
Time since last restart: 1614sThe netinfo command will return connected peers and listeners:
…Node control commands:
$ cargo run --bin antnode_rpc_client -- 127.0.0.1:34416 restart 5000
Node successfully received the request to restart in 5s
$ cargo run --bin antnode_rpc_client -- 127.0.0.1:34416 stop 6000
Node successfully received the request to stop in 6s
$ cargo run --bin antnode_rpc_client -- 127.0.0.1:34416 update 7000
Node successfully received the request to try to update in 7sNOTE: it is preferable to use the node manager to control the node rather than RPC commands.
When you're finished experimenting, tear down the network:
cargo run --release --bin antctl -- local killUse the open-metrics feature flag on the node / client to start
an OpenMetrics exporter. The metrics are
served via a webserver started at a random port. Check the log file / stdout to find the webserver
URL, Metrics server on http://127.0.0.1:xxxx/metrics
The metrics can then be collected using a collector (for e.g. Prometheus) and the data can then be imported into any visualization tool (for e.g., Grafana) to be further analyzed. Refer to this Guide to easily setup a dockerized Grafana dashboard to visualize the metrics.
The root of the repository provides a test.sh script that can run either unit tests, integration
tests, or a full suite of end to end tests. The integration tests do not require a running local
network, but the end to end tests do.
By default, test.sh will run the unit test suite.
See the sections below for further guidance.
The test suite provides three distinct testing levels:
./test.sh unit)Fast, isolated tests that don't require network connectivity:
./test.sh unitExample output:
Unit Tests Summary
================================================
✅ ant-bootstrap: 8 tests passed
✅ ant-logging: 12 tests passed
✅ autonomi (lib): 45 tests passed
✅ ant-networking: 23 tests passed
✅ ant-protocol: 15 tests passed
✅ node-launchpad: 7 tests passed
Total: 110 unit tests passed in 28.3s./test.sh integration)Network-based tests using a local test network:
./test.sh integration./test.sh full)Comprehensive end-to-end testing with complete logging infrastructure:
./test.sh fullThe test runner includes sophisticated logging capabilities for debugging and failure analysis:
# Enable debug logging and save all logs
./test.sh full --debug
# Save logs without debug verbosity
./test.sh full --save-logs
# Enable automatic failure analysis
./test.sh full --analyze-failures
# Combine options
./test.sh full --debug --analyze-failuresWhen logging is enabled, tests create a timestamped directory structure:
…When tests fail, the system automatically:
Example failure analysis:
FAILURE ANALYSIS
==================
Test: large.dat download failed
Location: /tmp/autonomi_test_run_2025-07-06_20-21-55/logs/tests/files.log:127
Error Pattern: "Connection timeout"
Node Logs: 3 nodes reported connectivity issues
Recommendation: Check network startup sequence and peer discovery
Detailed Logs:
- Network: /tmp/autonomi_test_run_2025-07-06_20-21-55/logs/network/
- Tests: /tmp/autonomi_test_run_2025-07-06_20-21-55/logs/tests/
- Nodes: /tmp/autonomi_test_run_2025-07-06_20-21-55/logs/nodes/The full test suite clearly separates:
Tests the core Rust client API and network integration:
When API tests pass → Core network functionality is healthy
Tests the comman
No open issues yet, or sync has not completed.