Skip to main content

AI-Agent Roadbook CLI

Project description

Roadbook CLI

English | 简体中文

Welcome to Roadbook, your AI agent's "Wilderness Trekking Guide" for browser automation.

Standard web automation often relies on fixed scripts that easily break when websites change—like a rigid map in a shifting landscape. Roadbook solves this by acting as an Expedition Log. It provides not just the necessary steps, but also environment diagnosis and flexible operational guidance.

When your AI Agent (the Explorer) gets lost or a script fails, Roadbook (the System/Sherpa) provides the context and semantic hints needed to autonomously find a new path, fix the script, and complete the task.

Key Concepts

alt text

  • Roadbook: The Expedition Log. It records key landmarks (UI features), required paths, and actionable advice to dynamically navigate web interfaces.
  • Agent: The Explorer. The AI agent that reads the Roadbook, makes decisions, and performs visual/semantic reasoning when standard scripts fail.
  • Guide/CLI: The CLI and runtime system that handles the heavy lifting (browser driving, context management) and provides semantic guidance.

Installation

Install via pip (Recommended)

When Roadbook is published to PyPI, you can install the CLI directly:

pip install roadbook

Install from Source

To install the latest version from source, clone the repository and install it in editable mode:

git clone https://github.com/roadbook-site/roadbook-cli.git
cd roadbook-cli
pip install -e .

Quick Start & Examples

Roadbook is designed to be used in two main phases: Exploring (creating the roadbook) and Executing (running the task).

1. Creating a New Roadbook (Explorer Phase)

Initialize a new roadbook via the CLI. This sets up the necessary workspace and scaffolding, allowing an agent to explore a website and test interactions.

# Initialize a new roadbook for searching on Amazon
roadbook init my-first-task --description "Search for a product on Amazon" --entry-url "https://www.amazon.com"

This creates a new directory in your project containing the standard roadbook.md template and starter test scripts to begin exploration.

2. Executing a Roadbook (Executor Phase)

You can run a roadbook automatically (if a stable script exists) or in interactive guide mode where the agent gets semantic instructions to explore the environment.

# List available local roadbooks
roadbook list

# Run roadbook via script execution
# This will attempt to use pre-compiled automation scripts for fast execution.
roadbook run my-first-task

3. Managing Roadbooks

The CLI provides tools to organize and review execution logs.

# View detailed information about a single roadbook
roadbook inspect my-first-task

# Link local roadbooks to the global library to share across your machine
roadbook link

# View execution logs and history for a specific roadbook
roadbook logs list my-first-task

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roadbook-0.2.5.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roadbook-0.2.5-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file roadbook-0.2.5.tar.gz.

File metadata

  • Download URL: roadbook-0.2.5.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for roadbook-0.2.5.tar.gz
Algorithm Hash digest
SHA256 6899fe820c327f2c3fbe7f608b3bade58cc4d4bad761a8157b8b761be03d8148
MD5 4c83593250b1e2e14912fd8346db610e
BLAKE2b-256 16f93bf690000d05a35e7340eb4b28e113df340e1dde580f09effa31e8b790f8

See more details on using hashes here.

File details

Details for the file roadbook-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: roadbook-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for roadbook-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e2dde51f2b3a40219533aafdd4b0a450085be31f22dc2d3faee8a3554430e242
MD5 022335b13c969331a2fa1c2195b34642
BLAKE2b-256 85432765ed36914a3e006803b976f209a1e90284a4cc2230adafb701582db3ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page