Documentation Index
Fetch the complete documentation index at: https://docs.iroh.computer/llms.txt
Use this file to discover all available pages before exploring further.
What is direct data rate?
When two iroh endpoints connect, traffic either flows directly between them (peer-to-peer) or gets routed through a relay server. Direct connections are faster and cheaper. Relayed traffic adds latency and burns relay bandwidth. Direct data rate is the percentage of your network’s traffic flowing directly. A high rate means NAT traversal is working and your users are getting the best possible connection. A low rate means too much traffic is falling back to relays, which is worth investigating. This guide walks you through hooking up your first endpoint to Iroh Services so you can see direct data rate and other connectivity metrics for your own network. You’ll need an Iroh Services account with an API key.Quickstart
1. Install Rust
2. Get your API key
Create one from your project’s Settings → API Keys tab. See API Keys for the full walkthrough. Then export it as an environment variable:3. Run the example
Clone the repository and run thequickstart example:


Build it into your own app
To wire Iroh Services into your own iroh application instead of running the example, follow the full setup below.Add the Iroh Services Client
Add theiroh-services crate to your Cargo.toml:
Connect Your Endpoint
Then, in your code, create a client and connect your endpoint to Iroh Services.View Your Endpoint on the Dashboard
Go to your project’s Endpoints page. You should see your endpoint listed as online. Click on it to view details.Next steps
Diagnose a connectivity issue
Run remote diagnostic reports on your users’ endpoints to find out why connections fail.
Add a relay
Configure dedicated relays for your endpoints and learn why they matter for production.
Build a chat app
Build a peer-to-peer chat application from scratch using the iroh gossip protocol.