Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sage-f6b5014e.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Sage agent is a Nanobot skill pack. It’s the only component that talks to the user — over Telegram — and it routes every message and button tap to the Sage API. The server handles deterministic screening and execution; the agent handles everything conversational. Its role is intentionally narrow: call endpoints, report the actual result, never fabricate.

Setup

1

Link the skill into Nanobot's workspace

mkdir -p ~/.nanobot/workspace/skills
ln -sf "$(pwd)/agents" ~/.nanobot/workspace/skills/sage
2

Restart the Nanobot gateway

nanobot gateway restart
3

Verify detection

nanobot skills check
Nanobot loads the skill from agents/SKILL.md and begins responding to Telegram commands.

Authentication

Every request to the Sage API carries the shared agent secret:
Authorization: Bearer $AGENT_SECRET
The same secret authorizes server-to-server calls (e.g. the queue handler self-calling /execute).

Owner Commands

Bare commands (no proposal ID) resolve to the latest in-review proposal for the vault.
CommandEndpointAction
approve [id]POST /executeCo-sign, execute, then POST /notify-resolve with the signature
reject [id]PATCH /transactions/:id (or /latest)Mark rejected, then update the Telegram message
mark for review [id]PATCH /transactions/:idFlag a proposal for manual review
check pendingGET /transactions?vaultAddress=List in-review proposals
get statusGET /status?vault=Screening mode, bot connection, patterns
screening on / offPATCH /statusToggle screening
update limitsPATCH /statusChange policy limits and thresholds

Analysis Commands

CommandEndpointAction
quick risk score [id]GET /transactions/:idStored score, verdict, reasons
deep analyze [id]GET /analyze/:id (or /latest)Live GoPlus + Rugcheck + threat-intel report
behavioral event logGET /events?vault=Recent event history

Rules Commands

CommandEndpoint
list rulesGET /rules?vault=
create rulePOST /rules
update rulePATCH /rules/:id
delete ruleDELETE /rules/:id

MCP Security Tools

Beyond the Sage API, the agent has access to security tools over MCP — GoPlus address & token intelligence, Rugcheck, and sanctioned-address lookups. This lets the owner ask open-ended questions (“is this address safe?”, “why was this flagged?”) and get a deep report inline, even outside a pending proposal.

Proposal Lifecycle

active → in_review → executed
                   → rejected
StatusDescription
activeQueued and risk-screened, not yet executed
in_reviewFlagged (REVIEW or BLOCK), awaiting the owner’s decision
executedCo-signed and confirmed on-chain
rejectedRejected by the owner

Environment Variables

AGENT_SECRET=   # shared bearer token; must match the server's AGENT_SECRET
The agent is conversational only. Scoring, thresholds, and execution all live on the server — the agent runs the call, waits for the response, and reports the real outcome.