Resumable browser, API and MCP workflows for AI agents. Verify CSV/Excel batches locally.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y ritoko
MCP client config
{
"mcpServers": {
"ritoko": {
"command": "npx",
"args": [
"-y",
"ritoko"
]
}
}
}Solve a task once. Save the procedure. Run it again with new data.
Ritoko is an open-source browser automation and robotic process automation (RPA) tool for AI agents. Turn a solved task into a reusable browser, HTTP API or MCP workflow, run CSV or Excel batches, verify results and resume interrupted work with a local SQLite journal.
Use it as a Claude Code or Codex plugin, a local Model Context Protocol (MCP) server, or a standalone CLI. The direct replay engine runs saved workflows without calling an LLM; a connected MCP tool may itself use AI.
Try locally · Quick start · Use cases · How it works · Workflow example · FAQ · Advanced guide
Watch the 34-second demo — real-time execution against a local test application. Kill the process after the fifth submission, resume, then rerun the same CSV: 10 submissions received, 10 unique, one row still awaiting confirmation. Recorded results and environment.
An agent can figure out how to enter a customer, download a report or call a business tool. A recurring batch also needs an input format, a rule for identifying each record, a success check and a way to recover after interruption.
Ritoko keeps those decisions in a reusable procedure:
With a configured destination lookup, Ritoko can also check before creating a record (ensure) and settle an uncertain result by reading it back (reconcile). These 0.2.0 features require a direct HTTP GET or a trusted, explicitly read-only MCP tool, with separate rules proving presence and absence. A failed lookup blocks the row. Configuration and limits.
For example: teach your agent to create one customer, save customer-import, then ask it to process next week's spreadsheet and report each result.
| Task | Input | What the workflow does |
|---|---|---|
| Customer or supplier onboarding | CSV / Excel rows | Fill forms, submit each record and check its identifying details |
| Recurring report downloads | Account and period parameters | Open the report, wait for it and save the downloaded file |
| Back-office data exports | An HTML or ARIA table | Extract the rendered table to CSV for a later batch |
| HTTP API operations | Rows, parameters and environment-backed credentials | Send requests, check status and JSON results, save response files |
| Existing MCP tools | Rows and tool arguments | Call tools and check their returned data under the same journal rules |
| Mixed browser and API tasks | A spreadsheet plus workflow parameters | Pass saved values and files between supported browser, HTTP and MCP steps |
Ritoko fits repeated tasks with explicit rules and verifiable outcomes. A new task still needs an agent or a workflow author to understand the site and define the procedure.
With Node.js 24+, in an empty directory:
npm install ritoko@0.2.0
node node_modules/ritoko/examples/first-run/demo.mjs
The demo starts a loopback HTTP service, creates ten fake CSV customers, verifies each record by reading it back, then reruns and checks that all ten rows are skipped with no extra writes. It needs no account, API key or Chrome. The journal is isolated in a temporary directory printed by the command. This tests a local simulation; browser interruption and destination reconciliation are separate tests. English/French guide and expected results.
The published npm 0.2.0 includes this demo and the ensure, reconcile and doctor features.
Requires Node.js 24 or newer. Browser workflows using the direct runner also need Google Chrome. Standalone HTTP/MCP workflows can run without a browser.
ensure, reconcile, doctor and the first-try demo require 0.2.0 or newer. Check the versioned releases and release gates before upgrading a pinned installation.
Claude Code
claude plugin marketplace add Swih/ritoko
claude plugin install ritoko@ritoko
Codex CLI
codex plugin marketplace add Swih/ritoko
codex plugin add ritoko@ritoko
Restart the client after installation. The Git plugin includes the agent skill and a local MCP server; its launcher installs pinned runtime dependencies on first start, with npm lifecycle scripts disabled.
For long Codex batches, configure the tool-call timeout before running.
Add this stdio server configuration to a client that supports local MCP processes:
{
"mcpServers": {
"ritoko": {
"command": "npx",
"args": ["--yes", "--prefer-online", "ritoko@latest", "mcp"]
}
}
}
This uses the latest published npm release. Git marketplace installs use their Git revision, which may be newer. For repeatable production runs, pin a published version and test upgrades on a small batch.
Also load the Ritoko agent skill if your client supports skills. Claude Code and Codex CLI are the tested plugin clients; other clients need their own compatibility checks. See client setup.
Tell the agent which browser you want it to use. The direct runner connects to personal Chrome after you enable remote debugging at chrome://inspect/#remote-debugging and allow the connection. Choose RITOKO_BROWSER=clean explicitly for a separate profile.
A compatible agent browser can execute host workflows when it permits page-script execution. Codex's current computer-use evaluate is read-only, so it cannot execute host browser replay. Host API-only and connected MCP-tool batches remain available. See browser selection and trust boundaries.
Ask your agent:
Record a customer import with Ritoko on this back office. Use the browser I selected. Save it as
customer-importwith aninputspreadsheet parameter. Use Email as the business key and verify the created customer's email.
If the demonstration created a real record, the agent should adopt that already submitted row with run_adopt and evidence before replaying the batch.
Then:
Run
customer-importon the same back office withinputset to the absolute path ofcustomers.csv. Show me the confirmed, failed and review items, plus any saved files.
Later:
Resume my last Ritoko run.
Show the report for my last run and explain which items still need review.
flowchart LR
A["Describe a task"] --> B["Agent records or authors it"]
B --> C["Save a JSON workflow"]
C --> D["Replay with new data"]
D --> E["Journal and verify each item"]
E --> F["Report results and review holds"]
commit) and result checks (expect).| Item status | Meaning | Next action |
|---|---|---|
done | The workflow's checks passed | Kept on resume; normally skipped in a later run |
failed | Failed before submission | Retry safe failures when resuming; conflicting data is blocked |
review | The write may have happened | Check the actual business result and resolve with evidence |
skipped | Already confirmed under the same workflow, scope and key | No new submission |
A run is complete only when its items are confirmed or skipped and its final checks pass. A partial result or repair pause is visible in the report and returns CLI exit code 2.
Verification quality matters. A receipt, record ID or matching customer email can prove the intended result. A generic “Success” banner usually cannot. The journal tracks this Ritoko installation; it cannot prevent independent submissions or guarantee that a remote site is idempotent.
This illustrative browser workflow creates one customer per spreadsheet row. Adapt the URL, labels and result selector to your application before saving it.
{
"name": "customer-import",
"version": 1,
"description": "Create customers and verify their email.",
"params": {
"base": { "description": "Back-office base URL" },
"input": { "description": "Absolute CSV or XLSX path" }
},
"items": {
"from": "{{param.input}}",
"key": "{{item.Email}}",
"scope": "{{param.base}}"
},
"item": [
{
"do": "goto",
"url": "{{param.base}}/customers/new"
},
{
"do": "fill",
"target": { "primary": { "by": "label", "text": "Email" } },
"value": "{{item.Email}}"
},
{
"do": "click",
"target": {
"primary": { "by": "role", "role": "button", "name": "Create customer" }
},
"commit": true
},
{
"do": "expect",
"target": { "primary": { "by": "testid", "id": "customer-email" } },
"text": "{{item.Email}}"
}
]
}
key identifies the business record; this example's scope separates destination URLs. Include the account identifier in the scope if several accounts share a URL. The commit marks the irreversible action, and the following expect checks that specific row. Read-only batches declare readOnly: true.
See complete example workflows, the workflow schema and the HTTP/MCP reference.
From a Git checkout, the launcher can import and run an existing workflow without an agent or an LLM API key:
git clone https://github.com/Swih/ritoko.git
cd ritoko
node bin/ritoko.mjs import examples/rpa-challenge.json
node bin/ritoko.mjs run rpa-challenge
node bin/ritoko.mjs report
The RPA Challenge example downloads its own Excel input. Choose the direct browser as described above before running it. To intentionally run this same challenge again, add --repeat; review holds remain blocked.
For an interrupted direct run, use node bin/ritoko.mjs resume <runId>. Workflows, journals, evidence and output files live in ~/.ritoko by default; override with RITOKO_HOME.
Use node bin/ritoko.mjs doctor to inspect the local setup before troubleshooting a batch. For a review row with a configured destination lookup, node bin/ritoko.mjs reconcile <runId> <key> reads the result without submitting it again. Manual resolve requires a note and --confirm-checked after you inspect the destination yourself.
| Validation | Observed result | Evidence |
|---|---|---|
| Live RPA Challenge | 10 rows, 70/70 fields, 100% score; site timer 1.735 s | Screenshot, workflow |
| Local crash-and-resume demo | Process killed after submission 5; 10 unique submissions after recovery; 9 confirmed, 1 held for review | Video, recorded facts |
| Automated checks | Unit tests and real-Chrome E2E jobs configured for Windows, Linux and macOS | CI workflow and runs, release gates |
The recorded demos used Ritoko 0.1.0 on Windows with headless Chrome. The RPA site's timer excludes installation and setup; the recorded CLI wall time was 3.559 s. RPA Challenge has no per-row receipt, so its example relies on the final score. These demonstrations and controlled tests do not establish a reliability rate or throughput for every website.

Ritoko's deterministic runner does not require one. When you use the plugin, your client agent supplies the reasoning through its existing subscription or API configuration. Recording, repairing and host orchestration still use that client, and connected tools may call models themselves. External APIs, OCR providers or paid generation services require their own access and may charge separately.
Document reading is optional. document_image returns a downloaded JPEG/PNG to the client agent for its model to read. Ritoko includes no local OCR engine or invoice parser. A chosen external OCR service uses user-configured credentials. Each new image still needs the agent or that service; ordinary browser and API replay does not.
The direct runner can connect to personal Chrome with your remote-debugging permission. You can explicitly choose a separate clean profile. Integrated browser support depends on the client's permitted actions; see driver limits. Complete login or MFA in the selected browser when needed.
A local client that can launch a stdio process can connect to the server. Claude Code and Codex CLI are the tested plugin clients. Other clients need configuration and capability checks. An isolated cloud client cannot access your local MCP process or files without a separate connection mechanism.
No. It skips confirmed items and blocks uncertain writes within its journal, including on future runs. The workflow needs the correct business key, destination scope and result checks. Independent submissions and remote system behavior remain outside that journal. Resolving a review item requires evidence about what actually happened.
Optional network capture provides fetch/XHR metadata to help the agent investigate an API. It does not convert recordings into executable API steps automatically. Verify the API contract and authentication, test an authorized row, then explicitly save the replacement. See network hints.
For development, use Node.js 24+ and pnpm:
pnpm install
pnpm check
pnpm test
pnpm build
pnpm test:e2e
Ritoko automates services you are authorized to use. It does not bypass CAPTCHAs or anti-bot protections. Workflows and API/MCP commands are executable configuration and require a trusted author.
Built by Swih with Claude (Anthropic) and Codex (OpenAI), credited as contributors in the Git history. Released under the MIT license.