Scan your whole stack
From OX Research Newsroom
Are you using @upoch/guard?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.1
@upoch/guard was last scanned on 29 Nov 2026 at version 0.5.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.5.0 | 29 Nov 2026 | No rules fired |
| 0.4.0 | 28 Nov 2026 | No rules fired |
| 0.3.3 | 25 Nov 2026 | Not shown |
| 0.3.2 | 25 Nov 2026 | Not shown |
Findings for v0.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Give your AI agent a memory and an undo button.
Upoch Guard saves verifiable checkpoints of an agent's work on Robinhood Chain. If the agent crashes, gets a bad prompt or makes a bad trade, it restores the last good state, checked against the chain, or rolls back to the checkpoint before the mistake and keeps going. It also knows which of its actions already happened.
With Risk Check, the agent's actions and payments are checked against rules you set (approved recipients, limits per payment and per day, allowed action types) before anything is signed. A blocked action is recorded on-chain, and the agent can be tricked into trying a payment without it ever going out.
With approvals, larger payments wait for your Approve / Deny in Telegram, and a kill switch on your phone stops every action the agent takes until you resume it.
This package is the upoch command you set Upoch up with, an MCP server, and the engine behind the Upoch
framework plugins:
| Agent | One line |
|---|---|
| Claude Code | claude mcp add upoch -- upoch mcp |
| Cursor, Codex, Claude Desktop, any MCP client | an MCP server with the command upoch mcp (stdio) |
| ElizaOS | plugins: ["@upoch/plugin-elizaos"] in your character (@upoch/plugin-elizaos) |
| LangChain / LangGraph | callbacks: [new UpochCallbackHandler()] (@upoch/langchain) |
| Python agents (and LangChain in Python) | pip install upoch (upoch on PyPI) |
Website and debugger: https://upoch.tech. Contract (Robinhood Chain, 4663): 0x6179d9123c3c1f9e82f948101a4350cb55aa8c27
Needs Node.js 24 or later. In your own terminal:
npm install -g @upoch/guard
upoch setup
upoch setup creates your keys in ~/.upoch, shows the owner address, and waits while you send it a little ETH on
Robinhood Chain (0.001 ETH is plenty). Then it registers your agent and, if Claude Code is installed, offers to
add the MCP server to it. After that, connecting an agent is one line (table above).
Prefer separate steps? Run upoch init, then upoch register.
Recommended: upoch setup --owner 0xYourWallet does the same, then moves ownership to your own wallet so the owner key
does not stay on the agent's machine (see Owner key off this machine).
Each checkpoint is encrypted on your machine and stored on IPFS. Its fingerprint is committed to the Upoch contract, and then the checkpoint is read back and verified. Only someone with your checkpoint key can read it, and anyone can check that it has not been changed. Every checkpoint opens in the Time-Travel Debugger.
Two keys are created on your machine and never leave it:
upoch handover), which deletes it from this machine.upoch_send, makes the payments your Risk Check
rules allow. The agent never holds the owner key.A rollback restores the agent's state and memory. It cannot reverse transactions that already happened on-chain; those are listed so the agent can account for them.
| Tool | What it does | On-chain |
|---|---|---|
upoch_restore |
Restores the latest checkpoint after verifying it: state, note, completed and unresolved actions | read |
upoch_checkpoint |
Saves the current state as a checkpoint (progress, before_action, after_action, manual) |
1 transaction |
upoch_check_action |
Risk Check for an action the agent is about to take: passed, it is recorded as planned; blocked, the refusal is checkpointed and the agent is told not to run it | 1 transaction when blocked |
upoch_send |
Pays ETH or a token from the agent's Upoch wallet through Risk Check, with a checkpoint before and after. Nothing is sent without rules | 3 transactions (1 when blocked) |
upoch_record_action |
Records an external action (submitted, confirmed, failed) with its transaction hash | no (goes into the next checkpoint) |
upoch_rollback |
Goes back to an earlier checkpoint (e.g. before a bad trade) and continues from it; lists actions since then that were not undone on-chain | 1 transaction |
upoch_complete |
Saves a final checkpoint and marks the run finished | 1 transaction |
upoch_history |
Lists recent checkpoints | read |
upoch_verify |
Verifies one checkpoint without restoring it | read |
upoch_status |
Shows the workflow, executor funds, today's usage and whether approvals and the kill switch are on | read |
The server tells the agent when to use them: restore at the start, checkpoint after meaningful progress, check each
consequential action before it runs and record how it went, pay through upoch_send, roll back when something went
wrong, and complete at the end.
upoch rules # show the rules
upoch rules allow 0xRecipient… # approve a recipient (upoch rules disallow 0x… removes one)
upoch rules limit native 0.01 0.05 # at most 0.01 ETH per payment and 0.05 ETH per day
upoch rules limit 0xToken… 25 100 # the same for a token, in whole tokens
upoch rules types transfer,swap # the only action types allowed (upoch rules types any: no limit)
upoch rules clear # remove every rule
The rules live in ~/.upoch/config.json under riskCheck (amounts in base units) and apply to the agent's next
check, without a restart. The agent has no tool to change them, and upoch rules changes them only in an
interactive terminal.
upoch_send refuses every payment until the token has a per-payment limit and you have approved
recipients. A spend in a token without limits, or a daily total that cannot be read, is blocked.trigger to upoch_check_action or upoch_send. It is saved,
encrypted, with the checkpoint, so the owner reads the wording that fooled the agent next to the refusal. Never public,
never returned to the agent by restore; text that looks like a key is not stored.upoch_check_action first: recording one that skipped it is
refused.~/.upoch/spends.json) until it is recorded as failed.upoch_send is the only way it can pay.Guardrails for an agent that trades, on top of Risk Check, approvals and the kill switch:
upoch rules loss native 0.02 # daily loss limit: no new trades once today's net loss reaches 0.02 ETH
upoch rules loss 0xToken… 25 # the same in a token, in whole tokens
upoch rules trades swap,close # which action types count as trades (default swap, trade, order, buy, sell)
upoch approvals above native 0.05 # trades above this wait for your Approve in Telegram
upoch_record_action with pnl: { token, amount: "-0.004" }); while a limit is set, a confirmed trade without
it is refused. Once the net loss in the trailing 24 hours reaches the limit, upoch_check_action blocks every new
trade with the rule daily-loss, and the refusal is checkpointed. Profits count against losses. An unreadable
pnl.json blocks trading (fail closed)./kill in Telegram), approvals for big trades and the full record (every trade checkpointed
before it runs, every refusal on-chain) work as for any Upoch agent.Try it without real trades: examples/paper-trading-bot.mjs (in this package) runs simulated trades through your
guard, checkpoint by checkpoint, until the loss limit stops it. Replace its simulate() with your strategy.
If the agent keeps long-term memory in a store that pins versions, it passes the pinned version's pointer as
memory in upoch_checkpoint (for example mem://store.example/<folder>@<version>#sha256:<hash>). The pointer is
stored inside the encrypted checkpoint, so its hash is anchored on-chain with the state, and later checkpoints keep
it until the agent gives a new one. upoch_restore returns it, and upoch_rollback returns the pointer that
belonged to the checkpoint it goes back to: the agent restores its memory at exactly that version and checks the
hash. A pointer that looks like it holds a key is refused.
upoch approvals pair # link your Telegram chat (signed by the owner key; no transaction)
upoch approvals above native 0.01 # payments of more than 0.01 ETH wait for your Approve
upoch approvals above 0xToken… 25 # the same for a token, in whole tokens
upoch approvals timeout 10 # minutes you have to answer (default 5, at most 60)
upoch approvals # show them: chat linked, kill switch, thresholds
upoch approvals off # remove them here, then send /unlink <workflow id> in the chat
/kill <workflow id> in the chat stops the agent: every new action is blocked, and pending
approvals are refused, until /resume <workflow id>. Actions already done stay as they are./unlink <workflow id> in the linked chat. If they
are removed from ~/.upoch/config.json while the chat is still linked, the agent runs nothing (0.3.1+), so an
agent that edits the file cannot turn them off./above <workflow id> 0.01 (ETH) or /above <workflow id> USDG 25 in the linked
chat keeps your threshold on upoch.tech. The stricter of that and the file applies (0.3.2+), so raising it in the
file asks no less often. /above <workflow id> off removes it. Thresholds set only with upoch approvals above
live in the file alone; set them with /above for one the agent cannot loosen. From 0.3.3 the service is read once
per action, and with approvals on a failed read counts as the kill switch on.The owner key controls the workflow: guardians, the recovery timelock, executors, pause and ownership. Move it to your own wallet, so the file next to the agent no longer holds it:
upoch handover 0xYourWallet
https://upoch.tech/app/agents/<id>/owner), connect that wallet and press
Accept ownership.secrets.json (it prints the address the key
was for, never the key).Nothing changes hands until the wallet accepts, so a typo cannot lose the agent: upoch handover cancel withdraws the
offer, and upoch handover continues an interrupted handover. New agents: upoch setup --owner 0xYourWallet.
Right after accepting, check the Owner page: before the handover, whoever had the agent's machine had the owner key and could have added a guardian or executor, offered the workflow elsewhere or started a recovery. The page reads all of it from the chain and removes what you did not add. Use a phone or hardware wallet: a wallet in a browser on the agent's machine is within an agent's reach too. Guardians recover the workflow; keep the wallet's recovery phrase safe.
After the handover, upoch protect, guardian, timelock, export-owner and approvals pair point to the Owner
page. upoch status shows whether the owner key is still on the machine; since the agent can edit anything the CLI
prints, the Owner page (which reads the chain) is where to check. Restored state (upoch_restore, upoch_rollback)
comes labelled as a record of what happened, never instructions.
The rules, the approval settings and the keys live in ~/.upoch. Claude Code, Cursor and Codex give agents file
and shell tools that run as your user, so fence that folder off before you fund the agent: in Claude Code, deny
Read(~/.upoch/**) and Edit(~/.upoch/**) in ~/.claude/settings.json and turn on /sandbox; elsewhere, run
the agent in a container or as another OS user. Details: https://upoch.tech/docs/mcp#isolate
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.