{
"title": "Agents",
"intro.1": "Give an agent a token, and it starts its own sessions and drives them, over MCP or plain HTTP. You watch any of them from the admin page and take over when you want.",
"mcp-on-the-server.title": "MCP on the server",
"mcp-on-the-server.1": "The installer adds easi.run to Claude Code and to Codex with these lines, each one installed for the account that runs it; once its summary says MCP is ready, easi.run is in them from their next session. They are the lines for any MCP client that runs a command (stdio), here or from another computer over SSH, with the login you already use for the server in place of you@your-server:",
"mcp-on-the-server.2": "admin mcp relays the client’s stdio to the running admin over a socket in its own state directory (mode 0600, answered only for the admin’s own user). No token, port or certificate is involved: whoever can run docker exec on the server can use it, and SSH carries it from another computer.",
"mcp-on-the-server.3": "Its clients have an agent token’s rights, together: they start sessions and drive the ones they started and the runs of the persistent sessions you allow them, and the admin page shows the sessions they start like any token’s.",
"mcp-on-the-server.4": "The same tools as below. ADMIN_LOCAL_MCP=0 turns the socket off; the public demo has none.",
"tokens.title": "Tokens",
"tokens.1": "Create one under Agent tokens on the admin page (or POST /api/tokens {\"name\"}). It is shown once: copy it then.",
"tokens.2": "A token starts sessions and uses their desktop tools. It reaches only the sessions it started and the runs of the persistent sessions you allow it, whoever started them: no other session, and never the viewer stream, downloads, takeovers, settings or tokens.",
"tokens.3": "Requests carry it as Authorization: Bearer easi_…, with no cookie or CSRF token. A request from a page on another site (another Origin) is refused.",
"tokens.4": "Revoking a token refuses it at once and stops every session it started, one still starting included.",
"tokens.5": "A token’s sessions count toward ADMIN_MAX_SESSIONS, with yours: close them from the session list, or revoke the token, to free their places.",
"tokens.6": "The admin keeps only each token’s SHA-256, in tokens.json in its state volume. Up to 32 tokens; none in the public demo.",
"your-logins-for-an.title": "Your logins for an agent",
"your-logins-for-an.1": "A token, or the local MCP clients, may resume the persistent sessions you allow it. It then acts on those sites as you, logged in, and stopping the session saves it again. While one runs, even one you resumed from the admin page, the agent sees it in list_sessions and works in it, waiting while you hold control. A run someone else started it reaches only while you allow it; a run it started stays its own until it stops.",
"your-logins-for-an.2": "list_saved_sessions (or GET /api/agent/saved-sessions) lists them as saved sessions; pass one’s id as resume to start_session. Any other answers “no such saved session”.",
"mcp-over-https.title": "MCP over HTTPS",
"mcp-over-https.1": "For clients that connect over HTTP with a token, the endpoint is /mcp: Streamable HTTP, JSON answers, no session state. It serves MCP 2026-07-28 and, for clients that open with initialize, 2025-11-25 and 2025-06-18. With Claude Code (tested with 2.1.303):",
"mcp-over-https.2": "The tools:",
"mcp-over-https.3": "start_session {url, egress?, resume?, idle_fps?, max_fps?}: returns the session’s id and its watch_url; resume resumes a saved session, which reopens the pages it had open instead of url. url is an http(s) address, or about:blank for an empty page.",
"mcp-over-https.4": "list_sessions, session_status {session} (with the calls running on it and the last ones made), call_status {session, call_id}, stop_session {session}.",
"mcp-over-https.5": "list_saved_sessions: the saved sessions it may resume, each with when it was last saved and its problem, if any.",
"mcp-over-https.6": "The driver’s desktop tools and inspect_page (The agent lists them), and easi.run’s own for files and for calling a person (below), each taking {session, arguments, call_id?}, its own arguments under arguments. call_id is for the desktop tools and navigate.",
"mcp-over-https.7": "request_person and wait_for_control, each taking {session, arguments} too: see When the agent needs you, below.",
"http-api.title": "HTTP API",
"http-api.1": "Route",
"http-api.2": "What it does",
"http-api.4": "A session’s agent runs one call at a time; The agent says how many may wait, and for how long.",
"when-you-take-over.title": "When you take over",
"when-you-take-over.1": "Open the session from its watch_url (it logs you in first) or from the session list. Control stays where it was left: if you held it, reloading the page gives it back to you; if your agent started the session, you gave control back, or your agent is using the session, you watch and take it with the control (cursor) button in the session’s bar. The agent lists every case.",
"when-you-take-over.2": "While you hold control, its desktop tools are refused (409 over HTTP, isError over MCP; controlled says so), and they work again when you give it back. The agent says what a takeover does to its calls and results.",
"when-you-take-over.3": "The tools are the ones a session without Developer tools runs: the driver’s own definitions, pinned, and easi.run’s for files, for calling a person and for reading a page. Sessions a token starts never have Developer tools.",
"needs-you.title": "When the agent needs you",
"needs-you.1": "When only a person can go on (a login, a challenge for humans, a choice that is yours), the agent calls request_person with {reason, message?}: reason is login, captcha, confirm or other, and message says what it needs, in up to 300 characters. The session shows the request with Take control, the session list marks it Needs you with the time it asked, the timeline keeps it, and your webhook, if set, is told.",
"needs-you.2": "Then it calls wait_for_control {timeout_s?}, which waits while you hold control or the request is open, up to 50 seconds a call, and answers control (agent, person or waiting) and person_acted. Giving control back closes the request; so does Skip, or DELETE /api/sessions/{id}/help. A desktop tool refused while you hold control says to call it too. Skip also tells the agent to go on without you: wait_for_control answers skipped, or, if a tool result comes first, that result says so, once.",
"needs-you.3": "After a person held control, the agent’s next tool result says so once, so it reads the page again before acting on what it saw before.",
"needs-you.4": "When a call’s result does not reach the agent (a timeout, a lost connection), the call may still have run. So the agent gives each desktop call that changes something (a submit, a payment, a message) a call_id of its own, over REST the Idempotency-Key header: sent again with the same id and arguments, the call is not made twice, and the answer says how the first went (ok, error, failed, or unknown when no answer said). call_status reads it too; session_status lists the desktop calls running now in running_calls and the last 5 in recent_calls. Results are not kept, so the agent reads the window again. A session keeps up to 1,000 call ids, until it stops; easi.run never repeats a call for the agent.",
"needs-you.5": "A saved session whose last save failed, or could not be confirmed because easi.run stopped while it ran (a crash, a power loss), says so: list_saved_sessions gives its problem (save-failed, save-too-large, save-not-durable or save-unconfirmed) and when it was last saved, and a session resumed from it carries the same in saved_session. It may then miss what its last run did, logins included.",
"needs-you.6": "While easi.run stops for an update or a restart, a call is refused with admin-stopping (503 over HTTP, isError over MCP): no person holds control. Call again with the same id once it is back. A call the stop cut short may have acted, so read the window before you repeat it. After an update or a restart of easi.run, a session that was running starts again under a new id once the administrator has entered their password. Until then, a call that names the old id is refused with session-waits (409 over HTTP, isError over MCP). After that, the refusal is session-resumed and gives the new id: use that one, and read its window before acting, since its pages were loaded again.",
"notify.title": "Notifications",
"notify.1": "Set a webhook on the Settings page (or PUT /api/notifications {url}), and easi.run posts to it when a person is needed: person.needed (an agent asked for you: its reason and message), approval.needed (an agent’s file waits for your answer: its kind, never the file’s name) and unlock.needed (an agent tried to resume a saved session while they are locked).",
"notify.2": "Each post is JSON with event, at, the session (id, label, watch_url) and one sentence in text and content, so Slack and Discord incoming webhooks show it as it comes. It is signed: easi-run-signature: t=<t>,v1=<hex HMAC-SHA256(\"t.body\", secret)>. The secret is shown once, when you set the webhook.",
"notify.3": "Only https:// addresses. A post waits up to 10 seconds, and one that fails or answers 5xx is tried again twice, after 2 and then 10 seconds. Send a test (POST /api/notifications/test) says how it answered. The public demo sends none.",
"files.title": "Files",
"files.1": "While your agent holds control, it can save what the browser downloads and give the page’s file chooser files of its own, as you allow:",
"files.2": "list_files: the downloads waiting, the files it sent, the page’s open file chooser, and the permissions.",
"files.3": "save_download {download}: a URL to GET once, within 5 minutes, for the download’s exact bytes.",
"files.4": "send_file {name, size}: a URL to PUT the file’s exact bytes to once, within 5 minutes; the answer gives its id.",
"files.5": "choose_files {request, files}: answers the page’s file chooser with files it sent; none cancels it.",
"files.6": "Set the permissions on the admin’s Settings page, or with PUT /api/agent-files: downloads and transfers (files it sends into the browser) ask, allow or deny, ask by default. Giving the files it sent to the page’s file chooser follows the session’s uploads switch. With ask, the session’s page asks you, and the agent waits up to 2 minutes for your answer. A session's Upload files and Download files switches limit its agent too.",
"files.7": "A file URL needs no token and works once, during the agent’s turn: when you take over, the URLs and the files it sent go.",
"route.get-api-agent-sessions-id-files-ticket": "A download save_download gave: its exact bytes, once.",
"route.put-api-agent-sessions-id-files-ticket": "A file send_file named: its exact bytes, once; answers {file, name, size}.",
"route.post-api-agent-sessions": "{url, egress?, resume?, idle_fps?, max_fps?}: starts a session, through an egress by its name (refused with 424 {code, error, detail} when its check fails), or with resume, resumes the saved session of that id this token may use, at the pages it had open instead of url (with no egress named, through the one its last session left through: refused with 409 if that egress is gone); returns it with its watch_url and saved_session (the one it resumed, or null). url is an http(s) address, or about:blank for an empty page.",
"route.get-api-agent-saved-sessions": "The saved sessions this token may resume: id, name, running, saved, problem; and whether they are unlocked.",
"route.get-api-agent-sessions": "The sessions this token reaches: those it started, and the runs of the saved sessions it may resume.",
"route.get-api-agent-sessions-id": "One of them: its URL, controlled (a person holds it), help (its open request for a person), failed, watch_url, and recent_calls (its last 5 calls: the tool, a summary of the action, how it ended, when, and who made it). Also saved_session (the one it resumed, with its problem) and running_calls (its desktop calls running now: tool, started, call_id, who made it).",
"route.delete-api-agent-sessions-id": "Stops it.",
"route.get-api-agent-tools": "The tools: the driver’s desktop tools, and easi.run’s own for files, for calling a person and for reading a page.",
"route.post-api-agent-sessions-id-tools-tool": "The body is the tool’s arguments; the answer is its MCP result. An Idempotency-Key header is a desktop call’s call_id.",
"route.get-api-agent-sessions-id-calls-call-id": "The desktop call made on it with that call_id: state (waiting, running, ok, error, failed or unknown), started, ended, and who made it."
}