id: installation
title: Installation
description: Install and configure Rye OS — MCP server and terminal CLI for your AI agent
category: getting-started
tags: [install, setup, mcp, configuration]
version: "1.0.0"Rye OS is distributed as pip packages. Install to give your AI agent access to the .ai/ directory system.
pip install ryeos-mcpThis pulls in the full dependency chain:
ryeos-mcp— the MCP server that exposes Rye OS to any MCP-compatible AI agent.ryeos— the standard bundle (~3MB) with agent, bash, file-system, MCP, primary, core, authoring, and guide items. Depends onryeos-core.ryeos-core— the core runtimes, primitives, and extractors (rye/core/*items). Depends onryeos-engine.ryeos-engine— the orchestration layer with the resolver, executor, signing, and metadata.lillux— the unified Rust binary providing process execution, CAS operations, signing, verification, and integrity hashing.
# Add web tools (browser automation, fetch, search)
pip install ryeos[web] # or: pip install ryeos-web
# Add code tools (git, npm, typescript, LSP, diagnostics)
pip install ryeos[code] # or: pip install ryeos-code
# Everything
pip install ryeos[all]Without MCP: Install just
ryeosto call the executor directly from Python — useful for scripting, CI, or wrapping in a CLI.Minimal install: Install
ryeos-corefor the core runtimes, primitives, and extractors (rye/core/*items) without the full standard library.ryeosdepends onryeos-core, so you get core items either way.Engine only: Install
ryeos-enginefor the engine with no.ai/data bundles at all.ryeos-coredepends onryeos-engine.See Packages and Bundles for the full breakdown.
pip install ryeos-cliThe CLI maps shell verbs directly to the three primitives plus convenience verbs — no MCP transport, no JSON-RPC:
rye search directive "lead generation"
echo '{"command": "ls"}' | rye execute tool rye/bash
rye graph run my-project/graphs/pipeline
rye test my-project/tools/scraper
rye install my-bundle@1.0.0
rye uninstall my-bundle
rye registry bundle search "utilities"See the CLI documentation for the full verb reference.
Add ryeos-mcp as an MCP server in your AI client's configuration. The server runs over stdio.
Add to your OpenCode MCP configuration (.opencode/opencode.json or via the UI):
{
"mcp": {
"rye": {
"command": "ryeos-mcp",
"env": {
"USER_SPACE": "/home/you/my-ai-workspace"
}
}
}
}Add to your Amp MCP configuration:
{
"amp.mcpServers": {
"rye": {
"command": "ryeos-mcp",
"env": {
"USER_SPACE": "/home/you"
}
}
}
}Add to ~/.config/claude/claude_desktop_config.json (Linux) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"rye": {
"command": "ryeos-mcp",
"env": {
"USER_SPACE": "/home/you"
}
}
}
}Tip: If you installed into a virtual environment, use the full path to the
ryeos-mcpbinary (e.g.,/home/you/.venv/bin/ryeos-mcp) or activate the venv before launching your MCP client.
Once connected, the server registers three tools that your AI agent can call:
| MCP Tool | Purpose |
|---|---|
rye_fetch |
Find items by ID or discover by query |
rye_execute |
Run a directive, tool, or knowledge item |
rye_sign |
Validate and cryptographically sign an item file |
These are the only three tools — every interaction with the .ai/ directory goes through them.
| Variable | Default | Description |
|---|---|---|
USER_SPACE |
~ (home directory) |
Base path for the user-level .ai/ directory. The system looks for $USER_SPACE/.ai/ for user-scoped items. |
RYE_DEBUG |
false |
Set to true to enable debug-level logging from the Rye OS server and core library. |
export USER_SPACE="/home/you/my-ai-config"
# Rye OS will look for items in /home/you/my-ai-config/.ai/export RYE_DEBUG=true
ryeos-mcpAfter configuring your MCP client, verify that Rye OS is running by having your agent call rye_fetch:
rye_fetch(query="create", scope="directive", project_path="/path/to/your/project")
If the installation is correct, this will return results from the system space — the built-in directives that ship with ryeos, such as rye/core/create_directive, rye/core/create_tool, and rye/core/create_knowledge.
You can also search for tools:
rye_fetch(query="bash", scope="tool", project_path="/path/to/your/project")
This should find the built-in rye/bash tool, confirming that the system bundles are discoverable.
- Quickstart — Create your first directive, tool, and knowledge entry in under 5 minutes.
- The .ai/ Directory — Understand the directory structure, item IDs, and the 3-tier space system.