Tutorials#
Tutorials are the entry point for learning OpenRath. They are organized in the order you are likely to use the project: build a Session, understand where tools run, then move into the v1.2 numbered example ladder.
Each tutorial focuses on code snippets, key-line notes, and observed behavior. Together they cover the common path from basic API usage to Workflow customization.
Core Learning Path#
Order |
Page |
What it covers |
|---|---|---|
1 |
Create user and agent sessions, and understand |
|
2 |
Open a local Backend directly and see how file, command, and code payloads run around a workspace. |
|
3 |
Understand model tool calls, tool dispatch, |
|
4 |
Define your own tool schema and Python execution logic, then pass it into the Session loop. |
|
5 |
Move into the v1.2 01-10 learning ladder, including streaming, compression, memory, and provider variation. |
Example Groups#
Group |
Use it for |
Entry |
|---|---|---|
Basics |
See the smallest runnable paths through agents and lineage. |
|
Runtime & Tools |
Check where tools execute and how tool calls are represented. |
|
Integrations |
Try MCP tools, streaming, compression, memory, and provider variation. |
06 MCP Tool, 07 Streaming, 08 Compress, 09 Memory, 10 Provider Variation |
Choose by Task#
Task |
Start with |
|---|---|
Understand OpenRath’s state model |
|
Check which directory tools run in |
|
See how an agent calls tools across turns |
|
Wrap an external API as a model-callable tool |
|
Connect OpenSandbox |
|
Try a streaming UI callback |
|
Use an Anthropic model |
|
Wrap an MCP server as tools |
|
Inspect session lineage |
|
Try key-free local memory |
How to Read#
Each page uses the same structure:
Read the coverage table first to confirm what the page explains.
Follow the code steps to understand the API boundary.
Compare the key-line notes to see where state changes.
Run or rewrite the exercises to turn the example into your own code.
If behavior is unexpected, check the troubleshooting table first, then use Developer Notes for source-level details.
Tutorials
- Session Basics
- Coverage
- Step 1: Create Agent and User Sessions
- Step 2: Understand the Chunk Table
- Step 3: Preserve Origin with Fork
- Step 4: Create a New Starting Point with Detach
- Step 5: Set the Local Backend Target
- Step 6: Open and Close the Sandbox Handle
- Step 7: Fork Shares an Open Handle
- Troubleshooting
- Exercises
- Summary
- Local Sandbox Tools
- Session Loop Tool Calls
- Custom FlowToolCall
- Runnable Examples