ravi cloud drives it with your ravi login session.
You need a
ravi login session, a Console project (--project <slug>, or your default project) and an agent published to the Library with ravi agents publish.Braking
Everything that spends money, creates provider objects, sends a secret or lets an agent act on your machine is braked: without--execute the command prints its plan and exits 3, and nothing is sent. Stopping, denying, archiving, removing, disabling and lowering a cap apply at once. Every command takes --json.
Set the organization’s key
An owner or admin sets the Anthropic API key once. The key is read only from redirected stdin, and only with--execute; it never comes back, only its last characters.
--monthly-alert notifies owners and admins when the month’s cost passes the amount. Agents never set the key.
Deploy and run
--budget <usd>(0.5 to 200) caps one run; without it the agent’s budget applies (5 by default). A run that reaches it endsbudget_exceeded.--repo owner/name[@branch]mounts a repository the organization’s GitHub App covers; repeat it for more.--file <path>(repeatable, up to 10 files and 3 MB in all) uploads an input; the run reads it at/mnt/session/inputs/<name>. Files are deleted with the run.--outcome "<rubric>"with--max-iterations <n>(1 to 5) makes the run check its result against the rubric and revise until it passes.--rows-view <id>with--rows-limit <n>(up to 500) works through the rows of a Base view with theravitools; it needs a budget.--idempotency-key <key>makes a retry return the same run instead of starting a second one.runs follow --jsonprints one event per line and ends with{"type":"run","run":{...}}.
starting, running, waiting_approval, waiting_input, completed, failed, stopped, budget_exceeded.
A run acts as the person who started it (or who created its schedule or trigger): the Console checks that person’s access for every Ravi tool it calls.
Results in the chat
A run started inside an agent’s conversation (Slack, WhatsApp, the CLI session) brings its result back to that conversation when it ends: the result quoted as untrusted text, the cost in US, and its files.--no-deliver keeps it in the Console only. Runs started in the Console’s UI stay there; runs started from a page chat answer in that room.
Thread = run
From a Slack thread,ravi cloud runs start ... --bind-thread --execute binds the thread to the run: the thread’s root becomes the run card, updated on every status change, and later replies from the run’s person go to the run instead of the local agent. In a WhatsApp group bound to a run, only messages from the run’s person that start with @run, or reply to the run card, go to the run. The binding ends with the run.
Approvals
Withtools.writes: "ask" (the default), a run pauses in waiting_approval before a write outside its container, such as a Ravi tool that changes something. Some writes always ask, even with writes: "auto": shipping a page, replying to a page comment, sending mail, notifying someone and posting into a chat.
aprovar <code> or negar <code> on WhatsApp; a reply from anyone else does not count. Owners and admins can also decide in the Console’s run page. In an agent turn where Ravi cannot tell who asked (another agent, an unidentified speaker), approve and answer stop with ACTOR_UNKNOWN (exit 3) before calling the Console.
Questions (ask_human)
A run can ask its person a question and wait (statuswaiting_input). The question reaches the chat where the run started and the Console inbox. The answer goes back with:
"askHuman": false in the agent’s tools to turn it off.
Files
Secrets
Secrets let a run call an API without the value ever entering its container: the Console stores the value encrypted and substitutes it when a request leaves for one of the secret’s hosts. An owner or admin sets each one from stdin:- Names are
A-Z,0-9and_, starting with a letter. Each secret is bound to 1 to 10 hosts. - Without
--projecta secret is organization-wide; with it, only that project’s runs get it. - The agent names the secrets it uses in its
cloudblock ("secrets": ["STRIPE_API_KEY"]). A run whose agent names a missing secret is refused before it starts (CLOUD_SECRET_MISSING). listshows names, hosts and the last characters only. Agents never set secrets.
Triggers
A trigger turns Console events into runs, as the person who created it: Bases rows, approvals and agent columns (--source bases), inbound mail (mail), meetings ended or transcribed (meetings) and page comments (pages_comments).
- The prompt must contain
{{event}}: that is where the events go, quoted as untrusted data. - The Console waits
--batch-windowseconds (default 60) and starts one run with up to 25 events.--dedupe-windowdrops repeats,--daily-cap(1 to 200, default 20) limits runs per day,--budgetsets each run’s budget. - Rows the trigger’s own agent wrote never fire it, so a run never loops.
--deliver-to <session>sends each result to a session (nonefor no delivery). Inside an agent’s conversation the default is that conversation.testshows the prompt the trigger would send now, from its pending events or a sample one; it starts no run.
Schedules
Each tick starts a paid run as the person who scheduled it, with the schedule’s prompt (default: the agent’sHEARTBEAT.md) and budget.
--disabled creates a schedule turned off, with no brake. Inside a conversation, each tick’s result comes back to it (--no-deliver turns that off).
Memory and outcomes
"memory": "agent" in the cloud block gives the agent one memory store that every run reads and writes; "person" gives one store per person. "outcome": { "rubric": "...", "maxIterations": 3 } makes every run check its result against the rubric (or pass --outcome per run). An owner or admin clears the memory with:
Credits, caps and settings
An organization pays for runs with its own Anthropic key (byok, the default) or with Ravi credits in BRL (credits). Credits cost the provider’s list price converted at the rate shown on every entry, with no markup.
topup(R 5,000) creates a Pix charge and prints the payment link and the copy-paste code; the credit posts when the payment clears. In credits mode a run starts only when the balance covers its budget (CLOUD_CREDITS_INSUFFICIENT).- A monthly cap in US$ pauses spending when the month’s runs cross it: schedules and triggers skip and new runs are refused (
CLOUD_MONTHLY_CAP_REACHED) until the 1st (UTC) or until an admin raises it. Running runs keep their own budget. The organization has one cap (settings set --monthly-cap), each agent can have its own:
--daily-event-runs (event runs per day for the organization, 1 to 1000) and switching the billing mode are braked; lowering a cap applies at once.
Capability approval and the catalog
Deploying computes a manifest of what the agent can do: model, writes, network and hosts, MCP servers, Ravi tool families, secrets, repositories, memory, placement, provider, Office skills, web filters, ask_human and workflows. When an owner or admin deploys, the manifest is approved. Otherwise an agent with writesauto, open network, secrets, external MCP servers, a worker placement or the Ravi provider waits in awaiting_approval (runs refused with CLOUD_AGENT_AWAITING_APPROVAL) until an owner or admin approves it:
Provider webhook
With the provider’s webhook registered, the Console syncs a run as soon as it changes instead of on its periodic pass. An owner or admin copies the URL, registers it for session events in the provider console, and stores the signing secret it shows:Workers on your machine
An agent with"environment": { "placement": "installation" } runs its model in the cloud and its tools (bash, files) on a Ravi installation: the one that deployed it, unless the deploy names another. Only owners and admins place an agent on a machine, and the manifest says so. The daemon runs one worker per agent, in ~/.ravi/cloud-workers/<agent>/work, and heartbeats every 30 seconds; a run starts only when its worker was seen in the last 2 minutes (CLOUD_WORKER_OFFLINE).
enableis braked and terminal only: from then on bash from those agents runs on this machine, as the daemon’s user.disablestops every worker within 30 seconds and the Console refuses their runs.- Each worker needs its environment key, generated in the provider console.
key setstores it in~/.ravi/cloud-workers/keys/(mode 0600); it is never sent to the Ravi Console. listshows each worker’s Console status, whether its key is here, and what the daemon is doing with it (running,waiting_key, orbackoffwith the last error). A worker that fails restarts after 30 seconds, then longer.
Ravi provider (prototype)
"provider": "ravi" in the cloud block runs the agent with the Ravi runtime in a disposable E2B sandbox, with the organization’s model key, for organizations that need zero data retention. It is a prototype, off unless the Console enables it, and it needs the organization’s E2B key. The sandbox runs ravi cloud worker session: it reads its session from the Console, runs the agent with the Console’s ravi tools, waits for a person before each write, and uploads the files the agent leaves in /mnt/session/outputs. Approvals, questions, results and costs work as above. The agent’s tools can read the sandbox’s environment, model key included, so the Ravi provider runs only on the organization’s own Anthropic key: in credits mode its runs are refused with CLOUD_AGENT_PROVIDER_UNSUPPORTED.
Run a task in the cloud
in_progress, and the daemon follows the run every 30 seconds:
- a pending approval reaches the session (
--report-to, or the session that dispatched) with the approve command; - when the run ends, the task becomes
doneorfailedand the result reaches the session once, quoted as untrusted text.
CLOUD_AGENT_NOT_PUBLISHED. From a terminal, pass --report-to <session>: a cloud task needs a session for its result (CLOUD_TASK_SESSION_REQUIRED otherwise).
The cloud block
The agent’s agent.json can carry a cloud block. ravi agents publish validates and publishes it; ravi agents install writes it back, so publishing again keeps it. Every key is optional:
The block never carries credentials: keys that look like secrets (token, secret, password, apiKey, authorization, cookie, credential), URLs with a user or a query string, and unknown keys are refused with
CLOUD_AGENT_DEFINITION_INVALID. Secret values live in ravi cloud secrets; the block names them only.