@cmdoss/senro
v0.1.3
Published
Senro, powered by Agent Pass — local trading strategies, explicit permissions and an independent execution loop
Keywords
Readme
Senro
Senro, powered by Agent Pass. Package and CLI: @cmdoss/senro
(senro), MCP server senro, and SENRO_* environment variables.
Local Sui trading strategies for Claude Code and Codex. One local service owns execution; the browser and MCP are interfaces to it.
Default: Sui Testnet. Uses the official Agent Pass SDK and its demo-asset, protocol stand-in pools. Mainnet is disabled. Paper is a separate simulator.
npm package
The compiled CLI is distributed as @cmdoss/senro. After an
approved registry release, install it with npm or invoke the selected version
through npx:
npx @cmdoss/senro@<version> setup --client codex --register --start
# Use --client claude for Claude Code.Setup pins a durable runtime outside the npm cache before writing MCP registration.
State and SDK keys default to ~/.senro/data; executable versions and
assets live in ~/.senro/runtimes. Override these independently with
SENRO_DATA_DIR and SENRO_INSTALL_DIR. An already-running
different build requires an explicit stop/restart; setup never replaces it silently.
No wallet authorization or trading Start occurs during installation.
senro --help, --version, start and mcp use compiled JavaScript;
consumers do not need TypeScript or tsx. Source-checkout instructions follow below.
The package includes an npm shrinkwrap so consumer and managed installations use
the reviewed production dependency tree. See npm CI and release
for validation, release channels and first-publication setup.
Quick start
Requires Node 22.13+, npm and a Sui wallet extension.
npm ci
npm run devOpen localhost:4317. Connect wallet → choose a strategy → set amounts, price and limits → review and sign in Agent Pass → Start explicitly. Connecting or authorizing never starts a plan.
For MCP, run one of:
npm run build
node scripts/setup.mjs --client codex --register --start
node scripts/setup.mjs --client claude --register --startSetup updates only the selected client entry and starts/reuses the matching local
service. Reopen the client if needed. Call marketplace_status, then onboard and
poll onboarding_status; onboarding opens the wallet connection page automatically.
See the trading skill for tool sequencing.
Operation
- Keep the machine and local service running. Closing chat/browser or logging out does not stop an active plan. Restarted plans pause and require explicit Resume.
- Pause/Stop prevent new trades. Revoke requires the owner to choose Stop the agent now (or Close the pass) on the official Agent Pass page, approve in the wallet, and chain confirmation. Holdings are not automatically sold; submitted transactions still reconcile.
- Delegated keys stay in the official local SDK's
agent-pass/data directory. Never commit runtime data or signer sessions. No owner seed is requested. - Buying PnL uses verified fills and the last confirmed venue mark. A mark older than 60 seconds stays visible with its time and is not a live quote. Missing cost basis, including SUI sales, stays unavailable. Gas is recorded separately. Funding is not profit.
- One active plan per runtime. No hosted custody, futures or copy-trading engine.
Paper experiment, isolated from Testnet:
SENRO_MODE=paper SENRO_DATA_DIR=.data/paper-demo PORT=4318 npm run devConfiguration: .env.example. Scripts read shell variables; they do
not automatically load .env. Never run two processes against one data directory.
A stale lock requires inspecting its process before removing only runner.lock.
Develop and verify
npm run check
npm run smoke
npm run smoke:packagecheck runs formatting, typecheck, tests, build and repository hygiene.
Smoke uses temporary Paper data and actual HTTP/MCP processes; it does not trade,
register clients or touch normal plans. npm run doctor -- --probe optionally
reads a Testnet quote without trading. Build before npm start or after client changes.
Deploy the website
The hosted website serves the same Home/catalog UI. Setup prompts and local-app links hand off to the user's installation. Wallet sessions, plans, SDK signing and execution stay local; the public server has no trading or session-token endpoints.
npm run build
npm run start:web # public catalog, port 3000Production uses Railway's GitHub integration and root Dockerfile, port 8080 and
/api/health as the health check. No persistent storage or keys are needed.
See deployment instructions. npm start remains the local
trading runtime and must not be used as the hosted container command.
Code map
| Path | Responsibility |
| ----------------------------------- | ------------------------------------------------------------------- |
| src/client/ | Browser pages, controllers, components, wallet and SDK presentation |
| src/runtime/, src/shared/ | Configuration, process lock and shared defaults |
| src/testnet/ | Plan lifecycle, storage, read models and durable runner |
| src/testnet/chain/ | SDK loading, policy checks, prepared transactions and receipts |
| src/engine.ts, src/workflows.ts | Isolated Paper execution and review workflows |
| src/http.ts, src/mcp.ts | Loopback HTTP and stdio MCP transports |
| public/styles/ | Ordered Sui styles; generated JS lives in ignored public/assets/ |
| tests/ | Client, Paper, Testnet, runtime and transport regression suites |
References
- Architecture and invariants
- Testnet owner runbook
- Testing and evidence
- Epic 1 scope · Design system
- This morning’s test history: live Testnet evidence and post-cleanup checks. Both final plans are revoked.
