Skip to content

Installation

This page covers installing the Rhylthyme CLI tools for local development and program execution. The web app at www.rhylthyme.com requires no installation.

Prerequisites

  • Python 3.12 or higher
  • pip (Python package installer)
  • Git (for cloning repositories)

Install Core Packages

# Create a virtual environment
python3.12 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Clone and install (rhylthyme depends on rhylthyme-spec)
git clone https://github.com/rhylthyme/rhylthyme-spec.git
git clone https://github.com/rhylthyme/rhylthyme.git

pip install -e ./rhylthyme-spec
pip install -e ./rhylthyme      # add [all] for the importers and the timeline renderer

Verify Installation

rhylthyme --help

Your First Program

Create a simple program and run it in the terminal:

cat > hello.json << 'EOF'
{
  "programId": "hello-world",
  "name": "Hello World",
  "tracks": [
    {
      "trackId": "main",
      "name": "Main Track",
      "steps": [
        {
          "stepId": "greet",
          "name": "Greet",
          "task": "greeting",
          "duration": {"type": "fixed", "seconds": 5},
          "startTrigger": {"type": "programStart"}
        }
      ]
    }
  ]
}
EOF

# Run the program
rhylthyme run hello.json

Common CLI Operations

# Validate a program
rhylthyme validate program.json

# Run a program interactively
rhylthyme run program.json

# Run with environment for resource validation
rhylthyme run program.json -e environments/kitchen.json

# Optimize a program schedule
rhylthyme plan input.json optimized.json

# Run at 10x speed with auto-start
rhylthyme run program.json --time-scale 10 --auto-start

See the CLI Commands Reference for the full list of commands and options.

Claude Plugin and Skill

If you work in Claude Code, the plugin gives Claude the hosted MCP tools and a skill for writing schedules, with nothing else to install:

These are two commands. Send the first on its own:

/plugin marketplace add rhylthyme/rhylthyme-mcp

then, once it says the marketplace was added, the second:

/plugin install rhylthyme@rhylthyme

The command-line tool on this page and the MCP server are different things: the CLI is a program you run on files in a terminal (and the only one with a terminal runner and local run records); the MCP server is what an assistant calls. rhylthyme analyze, publish and generate are themselves clients of that server. See MCP Server.

Optional Packages

# Example programs and environments
git clone https://github.com/rhylthyme/rhylthyme-examples.git

# Import plugins (TheMealDB, protocols.io)
git clone https://github.com/rhylthyme/rhylthyme-importers.git
pip install -e ./rhylthyme-importers

Package Overview

rhylthyme-spec/              # Schema definitions and validation
├── src/rhylthyme_spec/
│   └── schemas/             # JSON schemas
└── pyproject.toml

rhylthyme/                   # Library and command-line interface (formerly rhylthyme-cli-runner)
├── src/rhylthyme/
│   ├── cli/                # Command-line interface (cli/main.py, cli/tui.py)
│   ├── program_runner.py   # Program execution
│   ├── program_planner.py  # Schedule optimization
│   ├── validate_program.py # Program validation
│   ├── environment_loader.py  # Environment management
│   └── environment_schemas.py # Environment type schemas
└── pyproject.toml

rhylthyme-importers/         # Import plugins
├── src/rhylthyme_importers/
│   ├── themealdb.py        # TheMealDB importer
│   └── protocolsio.py      # protocols.io importer
└── pyproject.toml

rhylthyme-examples/          # Example programs and environments
├── programs/               # Example programs
└── environments/           # Environment catalogs

Development Installation

pip install -e ./rhylthyme-spec[dev]
pip install -e './rhylthyme[dev]'

Troubleshooting

"Command not found: rhylthyme"

  • Ensure the virtual environment is activated
  • Verify installation: pip list | grep rhylthyme
  • Reinstall: pip install -e ./rhylthyme

Import errors for rhylthyme_spec

  • Install the spec package first: pip install -e ./rhylthyme-spec

Schema validation errors

  • Ensure the schema package is up to date
  • Use rhylthyme validate program.json --verbose for details