Preview Contract v0.5.3, on simulated money. Nothing is on npm yet; agents connect to the hosted MCP endpoint.

Orvelo docs

Create an API key, link it to a wallet and give the key to your agent. It spends within your limits, but never sees the private key, the wallet address or any amounts.

Contents

Get started

Introduction

You create an API key in the control panel, link it to a wallet and give the key to your AI agent through a plugin or a skill. The agent can then buy things and swap tokens within your limits, but it never sees the wallet's private key, its address or any amounts. When it wants something, it says what: a catalog item, a token pair and a size, or a preset you made. Orvelo works out how much on its side, from rules you set in the control panel.

The agent gets back a request id, a status and a receipt id. You see everything else: amounts, wallet addresses, transaction signatures, the agent's reason and the rule that decided it.

Preview. Nothing is published on npm yet. The hosted demo runs on simulated money and agents reach it over remote MCP, so there is nothing to install. Package names below are working names.

Packages

PackageWhat it is
Remote MCPhttps://orvelo.dev/mcp. The same tools over MCP's HTTP transport, for any client that can send a header. Live today.
@orvelo/mcpThe local plugin, for clients that only run local servers, such as Claude Desktop. It holds no keys and no rules and forwards to the hosted API. Not on npm yet.
@orvelo/skillA Claude Skill that teaches the agent when and how to use the Orvelo tools.
@orvelo/agentA typed client and tool definitions for frameworks without MCP. Framework adapters are not built yet.
@orvelo/panelA typed client for the control panel API. Not built yet; the REST API is the contract.

Get started

Quickstart

Four steps from nothing to a first purchase.

1. Create an API key

In the control panel, create an API key for your agent and link it to the wallet it spends from. The key starts with orv_agent_ and is shown once, so copy it now.

Keep the API key out of prompts. The key goes in the plugin's environment, never in a chat. Rotating it in the panel stops the old one at once.

2. Connect your agent

Pick your client. Each one reaches the same Orvelo tools with the API key you just copied. The remote endpoint needs no install; the local plugin is for clients that can only start local servers.

MCP settings (remote, no install)
{
  "mcpServers": {
    "orvelo": {
      "type": "http",
      "url": "https://orvelo.dev/mcp",
      "headers": { "Authorization": "Bearer orv_agent_…" }
    }
  }
}
Terminal
claude mcp add --transport http orvelo \
  https://orvelo.dev/mcp \
  --header "Authorization: Bearer orv_agent_…"
claude_desktop_config.jsonLocal plugin · not on npm yet
{
  "mcpServers": {
    "orvelo": {
      "command": "npx",
      "args": ["-y", "@orvelo/mcp"],
      "env": {
        "ORVELO_API_KEY": "orv_agent_…",
        "ORVELO_API_URL": "https://orvelo.dev"
      }
    }
  }
}

Until @orvelo/mcp is published, run it from a checkout with node server/src/mcp/main.ts and the same two variables.

Prefer a skill? Add @orvelo/skill next to the plugin. It tells the agent when to reach for Orvelo and to describe what it wants rather than a price.

3. Set its rules

Every API key needs limits before it can spend. A sensible start: at most 25 USD a request and 50 USD a day, USDC and SOL only. Requests within your limits go through on their own. Under Approval you can instead be asked above an amount you pick, or before every request. See Rules and limits.

4. Ask for something

Tell the agent what you want in plain words. It calls a tool, and a request within your limits goes through on its own. The key in this example requires approval, so the swap waits for you in the control panel.

orvelo_request_swap
{
  "from_token": "USDC",
  "to_token": "SOL",
  "size": "medium",
  "reason": "Low on SOL for fees"
}
AgentRequestView
{
  "request_id": "req_7Qm2…",
  "kind": "swap",
  "status": "pending_approval",
  "next_step": "wait_for_person",
  "receipt_id": null
}
GET /api/v1/activity/req_7Qm2…
{
  "amount": "20", "token": "USDC", "usd_value": "20",
  "swap": { "size": "medium", "expected_out": "0.140350877", … },
  "decision": {
    "rule": "approval_required",
    "detail": "This API key requires approval for every purchase, swap and transfer."
  }
}

Your agent

Agent tools

The plugin gives the agent ten tools. None of them takes an address, and only orvelo_send takes an amount: the one you named. The API rejects any unknown field with invalid_request.

The tools

ToolInput
orvelo_get_capabilitiesNone. Returns what this agent may do: actions, merchants, tokens, sizes and presets.
orvelo_list_catalogmerchant_id. Items without prices.
orvelo_request_purchasemerchant_id, item_id, quantity (1–10), reason
orvelo_request_swapfrom_token, to_token, size, reason
orvelo_run_presetpreset_id, reason
orvelo_sendrecipient (an @username), token, amount, reason. See Sending.
orvelo_check_recipienthandle. Whether the @username exists.
orvelo_check_requestrequest_id, wait_seconds (0–25, long-polls)
orvelo_list_requestsstatus, limit. Only this agent's requests.
orvelo_cancel_requestrequest_id, while it is still waiting for you

reason is the agent's own words, up to 280 characters. You see it on the approval card. Every request tool also takes an optional idempotency_key, so a retry returns the first request instead of making a second one.

What every tool returns

Request tools return an AgentRequestView. quantity is the only number an agent ever receives.

AgentRequestView
{
  "request_id": "req_7Qm2…",
  "kind": "purchase",
  "summary": "Buy House blend beans from Lumen Coffee Roasters",
  "quantity": 1,
  "status": "pending_approval",
  "reason_code": null,
  "message": "Waiting for the person to approve this in the Orvelo control panel.",
  "next_step": "wait_for_person",
  "receipt_id": null,
  "expires_at": "2026-11-22T23:01:03.120Z"
}

Your agent

How much, without a number

An agent has exactly three ways to say how much. None of them is a number of tokens or dollars.

Three ways to ask

WayAgent saysOrvelo works out
Catalog itemmerchant_id, item_id, quantityThe merchant's price times the quantity
Sizesmall, medium or largeThe USD value you set for that size on this agent, at the current price
Presetpreset_idA fixed action you made in the panel

Still checked. A preset is a shortcut, not a bypass. Every request goes through the same limits and approvals.

Presets

A preset is something like “Weekly coffee” or “Top up API credits”. Its label and description are shown to agents, so the API refuses them if they contain numerals in any script or currency signs. That stops a label like “Buy 15 USDC of SOL” from leaking an amount.

Your agent

Sending to @usernames

An agent can send SOL or USDC to another Orvelo account by its @username, for example “send 0.5 SOL to @peter123”. It never sees or types a wallet address, and neither do you: the @username is all either side needs.

The tools

ToolInput
orvelo_sendrecipient (an @username), token (SOL or USDC), amount (the amount you named), reason
orvelo_check_recipienthandle. Answers whether the @username exists, and nothing else.

This is the one request where an agent passes an amount: the one you told it. No response repeats it, and no response contains your balance, your limits or anyone's address (but see what the agent can tell). The result is an AgentRequestView with kind: "transfer" and the recipient.

What the agent gets back
{
  "request_id": "req_…",
  "kind": "transfer",
  "recipient": "@peter123",
  "status": "approved",
  "next_step": "poll",
  "receipt_id": null
}

Your rules still apply

  • The API key must be allowed to send, and you can limit it to a list of @usernames. That list is checked before the name is looked up, so a limited agent can't probe other names.
  • Sends count towards the same per-request, daily and monthly limits as everything else. A send over a limit isn't refused: it's held for you in Approvals, like a purchase that needs approval. Approve sends it this once: your approval stands in for the limits on that one send, its amount then counts towards your daily and monthly usage, and your limits stay as they are.
  • A name that doesn't exist is refused with unknown_recipient, and counts as a strike towards the auto-pause.
  • What the agent can tell. Unless the API key asks before every request, a send within your limits goes straight out and one over them waits for you, so the agent can tell whether an amount fit your limits and your balance. Each send that waits is a strike, so it gets about 5 such answers a day (your max_refusals_per_day) before the agent is paused, and every send that fits is a real payment within your limits. Holding a send doesn't hide this; to close it, set the key's Approval to Ask me before every request, and then every send waits the same way.

Your @username

Claim one in the control panel and choose which wallet receives payments to it. A handle is 3 to 20 letters, digits or underscores, starting with a letter. Capitals show the way you typed them but don't make a different name: @Elizabeth and @elizabeth are the same name. You can hold one at a time and change it up to 3 times a day; a released handle stays reserved for you for 30 days. Payments you receive show the sender's @username, or “Private sender” when they sent privately.

Route payments privately

Turn on Route payments privately for an API key and its sends and purchases go through a Husher private exchange order instead of straight to the recipient, so your transaction never touches the recipient's address. The recipient gets the amount at Husher's rate minus its network fee; the panel shows the fee and what was delivered, and each step as it happens: waiting for deposit, confirming, exchanging, sending, delivered. Swaps aren't routed.

Simulated. Private orders run on a simulation of Husher's order flow with real quote shapes. No real orders are placed and no real money moves.

Your agent

Statuses and reasons

An agent follows a request by its status and next_step.

Statuses

StatusMeaningnext_step
pending_approvalWaiting for you in the panelwait_for_person
approvedApproved, queued to runpoll
processingSent to Solana, waiting for confirmationpoll
doneConfirmed; receipt_id is setdone
refusedYour rules said nostop
deniedYou said nostop
expiredNobody approved it in timestop
cancelledCancelled by the agent, by you, or by pausing all agentsstop
failedExecution failed; nothing was spentstop

Reason codes

When a request is refused, the agent gets one of paused, not_allowed, over_budget, rate_limited, invalid_request, not_found, execution_failed, unauthorized, unknown_recipient or idempotency_key_reused. over_budget deliberately covers both a spending limit and the wallet balance, so the agent can't tell which, or by how much. You can: the panel shows the exact rule.

Your side

Rules and limits

Each API key has its own policy. You set it in the control panel; the API is GET and PUT /api/v1/agents/:agent_id/policy.

The policy

Policy
{
  "allowed_actions": ["purchase", "swap", "transfer"],
  "limits": { "per_request_usd": "25", "daily_usd": "50", "monthly_usd": "300" },
  "transfers": { "recipients": null },
  "private_routing": false,
  "require_approval": false,
  "approval": { "mode": "above_threshold", "threshold_usd": "10" },
  "allowlists": { "merchants": ["mer_…"], "tokens": ["USDC", "SOL"] },
  "swap_sizes_usd": { "small": "5", "medium": "20", "large": "50" },
  "max_slippage_bps": 100,
  "max_requests_per_hour": 30,
  "max_refusals_per_day": 5,
  "approval_ttl_minutes": 60
}

How limits apply

  • Limits are hard for purchases and swaps: one over the per-request, daily or monthly limit is refused, not sent to you. A send over a limit is held for you instead, and approving it sends it that once. Under automatic approval the agent can still tell a send that fit from one that was held; only Ask me before every request hides that (see Sending).
  • Requests that are waiting or running count against limits, so an agent can't queue its way past them.
  • Daily is a rolling 24 hours and monthly a rolling 30 days. Any limit can be null for no limit.
  • require_approval is false by default, so requests within your limits run on their own. Set it to true and every purchase, swap and send waits for you in the panel. In between, approval with "mode": "above_threshold" asks you only above threshold_usd; the panel calls this Ask me above an amount.
  • The token allowlist applies to both sides of a swap.
  • max_refusals_per_day stops an agent probing its hidden limits. Refusals for over_budget or not_allowed, requests the agent cancels and approvals that expire all count; reaching the number in 24 hours pauses the agent until you turn it back on, and the audit log records agent.auto_paused.

Your side

Approvals

By default nothing waits for you: requests within your limits run on their own. If an API key asks for approval above an amount or before every request, those requests wait in the panel's approvals queue with the amount, the wallet and the agent's reason, and so does any send over a limit. They expire after approval_ttl_minutes. Calls carry your session cookie, which the browser sends for you.

Approve or deny

Control panel API
POST /api/v1/approvals/req_7Qm2…/approve
X-CSRF-Token: <csrf_token from GET /api/auth/session>

{ "note": "Fine this once" }
Control panel API
POST /api/v1/approvals/req_7Qm2…/deny
X-CSRF-Token: <csrf_token from GET /api/auth/session>

{ "note": "Not this week" }
Control panel API
GET /api/v1/approvals
// pending only, oldest first

Your note is never shown to the agent. Approving re-checks the agent's current rules first. It fails with 409 if the request is no longer waiting, while all agents are paused, if the wallet can no longer cover it, or with policy_refuses if your rules changed since the agent asked. A send held over a limit is the exception: approving it sends it once even though it's over, but the off switch, a paused agent, the recipient list and the balance still stop it.

Your side

Pause all agents

To stop every agent at once, use Pause all agents in the control panel header. It asks you to confirm, then refuses every new request with paused, cancels everything waiting for you and every approved request that hasn't been sent, and blocks approvals until you resume.

It can't undo the chain. A transaction already sent to Solana can't be recalled.

Control panel API
POST /api/v1/off-switch
{ "engaged": true, "reason": "Going on holiday" }

To stop one agent, choose Pause agent from its menu in the API keys list, or call PATCH /api/v1/agents/:agent_id with { "status": "paused" }.

Reference

Control panel API

What the website calls. Base path /api/v1, with the session you get from Sign In With Solana; every change also needs the X-CSRF-Token header. API keys can't call it.

Conventions

  • JSON in snake_case. Ids are prefixed: wal_, agt_, req_, rcp_ and so on.
  • Amounts are decimal strings in token units, next to a token symbol. usd_value is a decimal string too.
  • Lists return { data, next_cursor }. Errors are { error: { code, message, details } }.
  • Activity items carry settled_at, the time a request reached done. Settled requests count against limits from then.

Endpoints

AreaEndpoints
OverviewGET /api/v1/overview, GET /api/v1/prices
Sign-inPOST /api/auth/siws/nonce and /verify, GET /api/auth/session, POST /api/auth/logout and /logout-everywhere
WalletsGET and POST /api/v1/wallets, GET /api/v1/wallets/:id, POST /api/v1/wallets/:id/deposits (simulated top-up)
AgentsGET and POST /api/v1/agents, PATCH and DELETE /api/v1/agents/:id, POST /api/v1/agents/:id/api-key
PoliciesGET and PUT /api/v1/agents/:id/policy
PresetsGET and POST /api/v1/presets, PATCH and DELETE /api/v1/presets/:id
ApprovalsGET /api/v1/approvals, POST /api/v1/approvals/:id/approve and /deny
ActivityGET /api/v1/activity, GET /api/v1/activity/:id, GET /api/v1/receipts/:id
@usernameGET, POST, PATCH and DELETE /api/v1/username, GET /api/v1/usernames/:handle
TransfersGET /api/v1/transfers/incoming, GET /api/v1/private-routing
Pause allGET and POST /api/v1/off-switch
Audit logGET /api/v1/audit

Draft contract. This API is version 0.5 and will change. The site calls it through /api on its own domain, signed in with your wallet.

Reference

Privacy rules

These hold for every agent API response, every tool result and every error message.

What an agent never receives

Never sent

  • Amounts of any kind, including limits and quotes
  • Wallet, merchant and token addresses
  • Transaction signatures and explorer links
  • Private keys and seed phrases
  • Your notes and which rule fired

Sent

  • Request id and status
  • Reason code and next step
  • Receipt id
  • Item names and quantity

How it's enforced

  • Agent responses are built from a list of allowed fields, never by stripping fields from a full record.
  • A guard checks every outgoing payload for forbidden keys, numbers other than quantity, long base58, hex or base64 strings, and known secrets. The plugin runs the same check again.
  • Agent inputs are strict, so fields like amount are rejected.

Known side channels. Refusal codes like over_budget are coarse signals. Under automatic approval, whether a send went straight out or waited tells the agent if that amount fit your limits and balance, about 5 times a day before it is paused; Ask me before every request closes this. Merchant item names are merchant text that could mention a price.