---
title: "Pathfinder — Build your own AI router."
description: "Train and evaluate routing models on your agent’s tasks. See which model can finish each job and what it costs."
url: https://rayline.ai/pathfinder
---

# Build your own AI router.

Train a router with Pathfinder to choose the right model for each task.

Explore Pathfinder

## How a router learns

Replay a decision from the same starting point. Select a model to see how its choice affected the run.

Pathfinder / Build repairs Sample project

A build fails on a fresh install

Three models start with the same files and error log.

Fix dependency

Pinned the missing dependency. The clean build passed for 15¢ less than Model C.

## Built with Pathfinder

We trained ARC, Rayline’s open-weight router, to predict how likely each model is to finish a task and how many tokens it will use.

[Read the ARC technical report ↗](https://rayline.ai/research/report)

**97.5%**Quality retained

**92.9%**Lower inference cost

ARC compared with Opus 5.5 in Rayline’s hybrid edge–cloud evaluation. See page 13 of the report.

## What does a higher pass rate cost?

Set a target for how many builds need to pass. See which combination of models meets it at the lowest cost in this example.

Builds passing out of 100

Cost per build (USD)

Target pass rate

90%

**$12 per 100 builds**

90 passed using models B and C.

## Keep experiments reproducible

When you add a model or change how you train, rerun the same tests to see what improved and where performance slipped.

01 / Data

### Trace every example

Follow a training example back to the task, model response, and test result that produced it.

02 / Training

### Compare runs

Check which settings changed between runs and how each router scored on the same tasks.

03 / Evaluation

### Test on unseen tasks

Compare the router with each model on tasks held out of training. Measure success and cost together.

## Which tasks would you route?

Tell us which models you use and what counts as a successful result. We’ll help you plan your first router experiment.
