Voyager docs: Solana MCP server, SDK and API
Voyager is a hosted Solana MCP server, TypeScript SDK and REST API for AI agents. Each agent has its own Solana wallet and an API key. Every call it makes, whether through MCP, the SDK or REST, goes through the same checks against the limits its owner set, then routes through Jupiter for the best price.
- Sign in with your wallet and create an agent.
- Fund the agent's wallet with only what it may trade, plus about 0.02 SOL for network fees.
- Set its limits, create an API key, and connect your agent with one of the options below.
Before you fund an agent, read Safety and risks.
Connect
Every option sends the agent's API key as Authorization: Bearer …. Clients that can't send a header can run the local MCP server instead.
Step-by-step guides: Claude · ChatGPT · Claude Code · Cursor · VS Code · Gemini CLI · Codex · Windsurf · Zed · Cline · OpenAI API
Claude
Claude Desktop or claude.ai: Customize → Connectors → Add custom connectorName: Voyager URL: https://www.runvoyager.com/api/mcp Then Connect: sign in with your wallet and choose the agent.
To use an API key instead, set Authentication to “No sign in” and add the request header Authorization: Bearer vgr_live_….
ChatGPT
chatgpt.com/plugins → + → Add custom MCP serverName: Voyager MCP server URL: https://www.runvoyager.com/api/mcp Authentication: OAuth Then sign in with your wallet, choose the agent and whether it may trade.
Custom MCP servers are added on chatgpt.com, and workspace admins may need to allow them.
Claude Code
Terminalclaude mcp add --transport http voyager https://www.runvoyager.com/api/mcp \ --header "Authorization: Bearer vgr_live_…"
Leave out --header to sign in with your wallet instead: run /mcp in Claude Code and choose Authenticate.
OpenAI API
Responses API, remote MCP tool (ChatGPT models)import OpenAI from "openai";
const openai = new OpenAI();
const response = await openai.responses.create({
model: "gpt-5",
input: "How much of my daily budget is left?",
tools: [{
type: "mcp",
server_label: "voyager",
server_url: "https://www.runvoyager.com/api/mcp",
headers: { Authorization: "Bearer vgr_live_…" },
require_approval: "never",
}],
});OpenAI Agents SDK
TypeScript, @openai/agentsimport { Agent, run, hostedMcpTool } from "@openai/agents";
const agent = new Agent({
name: "Trader",
instructions: "Trade on Solana within the owner's Voyager limits.",
tools: [hostedMcpTool({
serverLabel: "voyager",
serverUrl: "https://www.runvoyager.com/api/mcp",
headers: { Authorization: "Bearer vgr_live_…" },
requireApproval: "never",
})],
});
const result = await run(agent, "Swap $20 of USDC into SOL.");Cursor
~/.cursor/mcp.json (or .cursor/mcp.json in a project){
"mcpServers": {
"voyager": {
"url": "https://www.runvoyager.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:VOYAGER_API_KEY}" }
}
}
}VS Code
.vscode/mcp.json (GitHub Copilot agent mode){
"inputs": [
{ "type": "promptString", "id": "voyager-key", "description": "Voyager API key", "password": true }
],
"servers": {
"voyager": {
"type": "http",
"url": "https://www.runvoyager.com/api/mcp",
"headers": { "Authorization": "Bearer ${input:voyager-key}" }
}
}
}Gemini CLI
Terminal, or ~/.gemini/settings.jsongemini mcp add --transport http \ --header "Authorization: Bearer vgr_live_…" \ voyager https://www.runvoyager.com/api/mcp
Codex
~/.codex/config.toml (OpenAI Codex)[mcp_servers.voyager] url = "https://www.runvoyager.com/api/mcp" bearer_token_env_var = "VOYAGER_API_KEY"
Windsurf
Cascade panel → … → Open MCP config file{
"mcpServers": {
"voyager": {
"serverUrl": "https://www.runvoyager.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:VOYAGER_API_KEY}" }
}
}
}Zed
Zed settings.json{
"context_servers": {
"voyager": {
"url": "https://www.runvoyager.com/api/mcp",
"headers": { "Authorization": "Bearer vgr_live_…" }
}
}
}Cline
MCP Servers → Configure → cline_mcp_settings.json{
"mcpServers": {
"voyager": {
"type": "streamableHttp",
"url": "https://www.runvoyager.com/api/mcp",
"headers": { "Authorization": "Bearer vgr_live_…" }
}
}
}Local MCP
Any client that runs stdio servers, e.g. claude_desktop_config.json{
"mcpServers": {
"voyager": {
"command": "npx",
"args": ["-y", "@voyager/mcp"],
"env": {
"VOYAGER_API_KEY": "vgr_live_…",
"VOYAGER_BASE_URL": "https://www.runvoyager.com"
}
}
}
}TypeScript SDK
npm i @voyager/sdkimport { VoyagerClient, createVoyagerTools, toVercelAITools } from "@voyager/sdk";
const voyager = new VoyagerClient({ apiKey: process.env.VOYAGER_API_KEY!, baseUrl: "https://www.runvoyager.com" });
// Direct calls
await voyager.swap({ inputToken: "USDC", outputToken: "SOL", amountUsd: 25 });
// Or hand the tools to your framework (also: toOpenAITools, toAnthropicTools)
const tools = toVercelAITools(createVoyagerTools(voyager));REST
Any HTTP clientcurl -X POST https://www.runvoyager.com/api/v1/swaps \
-H "Authorization: Bearer vgr_live_…" \
-H "Content-Type: application/json" \
-d '{"inputToken":"USDC","outputToken":"SOL","amountUsd":25}'Tools
The same tools are served over MCP and returned by the SDK adapters.
get_accountReturns this agent's Solana wallet address, the spending policy its owner set (per-trade cap, daily and monthly caps, allowed tokens, max slippage, approval threshold) and how much budget is left. A null cap means the owner set none, and the budget left under a cap that is not set is null too. Call this before trading so you stay inside the limits.
get_balancesLists the tokens held by the agent's wallet with amounts and USD values.
search_tokensFinds Solana tokens by symbol, name or mint address. Returns mint, decimals, USD price, liquidity, and whether Jupiter has verified the token or flagged it as suspicious. Many scam tokens copy popular symbols, so use the returned mint address when trading anything outside the majors.
(query)
get_pricesCurrent USD prices for up to 50 tokens, with the 24h change in percent. usdPrice is the price jup.ag shows, which limit-order and grid triggers use; amountUsdPrice values the amounts in balances and trades, and differs only for scaled tokens such as xStocks.
(tokens)
get_quoteQuotes a swap through Jupiter without executing it: expected output, minimum output after slippage, price impact, fees, and whether the owner's spending policy would allow it (policy.allowed, policy.requiresApproval, policy.violations). Give exactly one of amount or amountUsd.
(inputToken, outputToken, amount, amountUsd, slippageBps)
swapmoves fundsSwaps tokens from the agent's wallet through Jupiter, at the best route available, and waits for the result. The owner's spending policy is enforced: a trade over a limit is rejected with the rule it broke, and a trade over the approval threshold returns status "awaiting_approval" until the owner approves it in the dashboard. Give exactly one of amount or amountUsd. Pass an idempotencyKey if you might retry.
(inputToken, outputToken, amount, amountUsd, slippageBps, idempotencyKey)
get_tradeReturns the current status of a trade by ID, including the transaction signature and explorer link once it lands.
(tradeId)
list_tradesLists the agent's most recent trades, newest first, including rejected and pending ones.
(limit)
create_limit_ordermoves funds when the order firesPlaces a price-triggered order: when the trigger token's USD price crosses triggerPriceUsd in the given direction, Voyager swaps the input token for the output token at market. Use it for buy-the-dip ("buy SOL with 50 USDC if SOL goes below $120"), take-profit ("sell 2 SOL if SOL goes above $250") or stop-loss ("sell 2 SOL if SOL goes below $90"). Funds stay in the wallet until the order fires, and the spending policy is checked again at that moment. If other waiting orders already sell the same token and, with this one, would sell more than the wallet holds, the call fails with a "conflict" error whose details.orders lists them. Do not choose for your user: show them those orders and ask which they mean, then call again with the same request plus onOverlap. "link" makes them one-cancels-other, so only the first to fire trades (the usual take-profit plus stop-loss). "replace" cancels them and places this order instead; use it to change an existing order, since orders cannot be edited. "independent" keeps them all, and any that fires after the tokens are gone fails. Pass overlapOrderIds to link or replace only some of them. Orders that fit within the balance together, such as a ladder of partial take-profits, are placed with no question asked.
(inputToken, outputToken, amount, amountUsd, condition, triggerPriceUsd, triggerToken, slippageBps, expiresInHours, idempotencyKey, onOverlap, overlapOrderIds)
list_limit_ordersLists the agent's limit orders, optionally filtered by status (open, held, triggered, filled, cancelled, expired, failed). Orders with the same ocoGroupId are one-cancels-other: while one is triggered the others are "held", and once it fills they are cancelled.
(status)
cancel_limit_orderCancels an open or held limit order. Nothing moves on-chain, since funds never left the wallet. Other orders in its one-cancels-other group stay as they are.
(orderId)
create_trailing_stopmoves funds when the order firesProtects a position with a stop that follows the price up: "sell my 2 SOL if it falls 10% from its high" (token: "SOL", amount: "2", trailPct: 10). The stop starts trailPct below today's price, rises whenever the price makes a new high (checked about once a minute) and never falls; when the price drops to it, Voyager sells at market into outputToken (USDC by default). A fast fall can fill below the stop. It is a limit order with trailPct set: list_limit_orders shows it, triggerPriceUsd is where it fires now and trailPeakUsd is the high it trails, and cancel_limit_order cancels it. Like any order, the spending limits are checked when it fires, so a stop larger than the per-trade limit is refused at placement and one that the daily cap blocks at that moment fails; tell the user to keep it inside their limits. If other waiting orders already sell the same token, the same "conflict" and onOverlap rules as create_limit_order apply: to pair it with a take-profit, place the take-profit, then this stop with onOverlap "link" so the first to fire cancels the other.
(token, outputToken, amount, amountUsd, trailPct, slippageBps, expiresInHours, idempotencyKey, onOverlap, overlapOrderIds)
create_gridmoves funds when the order firesRuns a grid between two prices: the grid buys amountPerLevelUsd of the base token at each level below the current price, sells each purchase at the next level up, and arms the buy again once it sells, so it earns the spacing between levels every time the price crosses them. It only sells what it bought, so it never touches other holdings. Use it for a token you expect to range. The simplest call is a preset and an amount, for example "a balanced grid on SOL with 200 USDC" (preset: "balanced", investmentUsd: 200); cautious, balanced and bold set the range, the levels and the floor around the current price, from the smallest drawdown to the deepest. Or give the numbers yourself: "SOL between $80 and $120 in 9 levels, $20 a level, floor at $70". Levels are spaced evenly in percent; keep them 3% or more apart since a round trip costs about 1.2% in fees, plus about 0.02 USD of network fees, which matters on a few dollars a level. The result's profitability says what one cycle keeps after fees, slippage and network fees (netPerCyclePct, netPerCycle) and carries a warning when the spacing loses money or leaves a thin margin: tell the user that warning, and offer fewer levels or a wider range. Unless the owner turned it off, a grid that would lose money on every cycle is refused with a policy_violation (rule losing_grid) that says what spacing breaks even. The wallet must hold (levels - 1) × amountPerLevelUsd of the quote token, each level must fit the owner's per-trade limit, and every fill is checked against the spending policy like any swap. With stopPriceUsd, a fall to that price makes the grid cancel its orders, sell at market everything it holds and stop; without one it keeps what it bought through a drop. The grid stops buying above upperPriceUsd and does nothing in a steady rise above the range, unless trailTopPct is set: then its top level keeps what it bought once the price clears the range and sells when the price falls that many percent from its high, or back to upperPriceUsd, so a breakout is not sold at the top. That sale skips the per-trade, daily and monthly limits and does not count toward them, so tell the user it can be larger than their limits after a long run.
(baseToken, quoteToken, preset, lowerPriceUsd, upperPriceUsd, levels, amountPerLevelUsd, investmentUsd, stopPriceUsd, trailTopPct, slippageBps, expiresInHours, idempotencyKey)
list_gridsLists the agent's grids with their status, level prices and running totals: open rungs, filled buys and sells, realized profit in the quote token after swap fees, and the base token still held with what it cost. profitability estimates what one cycle keeps after fees, with a warning when the levels sit too close together to pay for them. levelDetails breaks each grid down per buy level: its buy and sell price, whether it waits to buy, holds and waits to sell, trails the price above the range (the top level of a grid with trailTopPct: trailStopUsd is where its sell fires now; inside the range that level holds with no order), is executing or is resting after a failure, what it holds, its completed cycles and its realized profit. Each rung is also listed by list_limit_orders with the grid's id.
(status)
cancel_gridmoves fundsCancels a grid and withdraws its waiting orders. The base token it bought stays in the wallet unless sellHoldings is true, which sells it at market right away, inside the spending policy. A rung that is executing when the grid is cancelled finishes on its own.
(gridId, sellHoldings)
create_recurring_buymoves funds on its scheduleDollar-cost averaging: buys a fixed USD amount of a token on a schedule, for example "buy $25 of SOL every day for 30 days" (outputToken: "SOL", amountUsd: 25, intervalHours: 24, totalBuys: 30). Voyager runs each buy with the input token (USDC by default) at market, about on time; the first runs within a minute unless startInHours delays it. Each buy is an ordinary swap, checked against the owner's spending limits when it runs, so a buy over a limit is refused and one over the approval threshold waits for the owner. A buy that is refused or fails is skipped, not made up later, and the plan stops after 3 missed buys in a row. While the agent is paused the plan waits and resumes with it. The plan never spends more than amountUsd × totalBuys; the wallet only needs the funds for each buy when it runs. The result carries limitWarning when the limits will refuse or hold some buys, such as a daily cap below what the plan spends a day: tell the user. Its trades appear in list_trades with its dcaPlanId.
(outputToken, inputToken, amountUsd, intervalHours, totalBuys, startInHours, slippageBps, idempotencyKey)
list_recurring_buysLists the agent's recurring buys (DCA plans) with their schedule and progress: buys run and left, the next buy's time, what the confirmed buys spent and received, the average price paid, and missed or pending buys. limitWarning says when the owner's limits get in the way.
(status)
cancel_recurring_buyStops a recurring buy: no further buys run. What it already bought stays in the wallet. A buy executing at that moment finishes on its own.
(planId)
set_vetted_stockschanges what the agent may buyLets this agent buy, or stops it buying, the tokenized stocks Voyager has vetted: BB (BlackBerry, Backpack Securities), DELL (Dell Technologies, Backpack Securities), DELLx (Dell Technologies xStock, xStocks), plus every Backpack Securities and xStocks token Voyager syncs daily from Jupiter's verified list and checks against the issuer's on-chain addresses. search_tokens marks vetted ones with vettedStock: true. Their issuers can freeze accounts, move tokens out of any wallet and pause transfers, as regulated securities require, so the token rules refuse them unless this is on. It is on by default. Turning it off always works; turning it back on works only if the owner has not turned it off in the dashboard. Ask your user before turning it on. get_account shows the current setting in policy.allowVettedStocks and policy.agentVettedStocksOff.
(enabled)
REST API
Authenticate with Authorization: Bearer vgr_live_…. Bodies and responses are JSON.
| GET | /api/v1/account | Wallet address, spending policy and remaining budget |
| GET | /api/v1/balances | Wallet balances with USD values |
| GET | /api/v1/tokens/search?q= | Look up tokens by symbol, name or mint |
| GET | /api/v1/prices?tokens=SOL,JUP | USD prices for up to 50 tokens |
| POST | /api/v1/quote | Quote a swap and get the policy verdict, without executing |
| POST | /api/v1/swaps | Execute a swap (supports an Idempotency-Key header) |
| GET | /api/v1/trades | Recent trades, newest first |
| GET | /api/v1/trades/:id | One trade |
| POST | /api/v1/limit-orders | Create a price-triggered order (see Limit orders for onOverlap) |
| GET | /api/v1/limit-orders?status=open | List limit orders |
| DELETE | /api/v1/limit-orders/:id | Cancel an open or held limit order, trailing stops included |
| POST | /api/v1/trailing-stops | Place a trailing stop: a sell whose stop follows the price up (see create_trailing_stop) |
| POST | /api/v1/grids | Start a grid: buys at each level below the price, each sold one level up (see create_grid) |
| POST | /api/v1/account/vetted-stocks | Turn vetted tokenized stocks on or off for this agent: { "enabled": true | false } |
| GET | /api/v1/grids?status=active | List grids with their fills, realized profit and holdings |
| GET | /api/v1/grids/:id | One grid |
| DELETE | /api/v1/grids/:id?sellHoldings=true | Cancel a grid; sellHoldings also sells at market what it bought |
| POST | /api/v1/recurring-buys | Start a recurring buy: a fixed USD amount every N hours, M times (see create_recurring_buy) |
| GET | /api/v1/recurring-buys?status=active | List recurring buys with their progress, spend and average price |
| GET | /api/v1/recurring-buys/:id | One recurring buy |
| DELETE | /api/v1/recurring-buys/:id | Cancel a recurring buy; what it bought stays in the wallet |
| POST | /api/mcp | MCP endpoint (Streamable HTTP) exposing the same operations as tools |
// POST /api/v1/swaps
{ "inputToken": "USDC", "outputToken": "SOL", "amountUsd": 25, "idempotencyKey": "rebalance-2026-10-21" }
// 200
{ "id": "trd_…", "status": "confirmed", "inAmount": "25", "outAmount": "0.2341…",
"usdValue": 25, "feeBps": 50, "signature": "5Kj…", "explorerUrl": "https://solscan.io/tx/5Kj…" }
// 403
{ "error": { "code": "policy_violation",
"message": "Trade would bring the last 24h total to $215.00, over the $200.00 daily limit ($25.00 left)",
"violations": [{ "rule": "daily_limit", "limit": 200, "attempted": 215 }] } }Limit orders
Several orders can sell the same tokens, for example a take-profit and a stop-loss. This is what happens when together they would sell more than the wallet holds.
- Overlap check
- A new order overlaps when other waiting orders sell the same token and, together with it, would sell more than the wallet holds. A one-cancels-other group counts once, at its largest order. Orders that fit, such as a ladder of partial take-profits, are placed with no question asked.
- Choosing
- An overlapping order sent without
onOverlapis refused with aconflicterror whosedetails.orderslists the orders it collides with. The agent should show them to its user and ask which they mean, never pick one itself, then send the order again with the choice.overlapOrderIdsnarrows link or replace to some of the listed orders. - link
- One-cancels-other. The new order and the overlapping orders share an
ocoGroupId, and only one of them can trade: when one triggers, the others are held; once it fills, they are cancelled. Two orders of a group crossing in the same tick still fire only one. - replace
- Cancels the overlapping orders and places the new one in the same step; if the new one is refused, nothing is cancelled. It takes their place in any group they were in. Orders cannot be edited, so this is how an agent changes a trigger price or amount.
- independent
- Keeps every order separate, as orders were before groups existed. Each fires on its own, and one that fires after the tokens are gone fails.
// POST /api/v1/limit-orders, with a take-profit on the same 2 SOL already waiting
{ "inputToken": "SOL", "outputToken": "USDC", "amount": "2", "condition": "below", "triggerPriceUsd": 90 }
// 409
{ "error": { "code": "conflict",
"message": "This order would sell 2 SOL, but the wallet holds 2 SOL and another order already waits to sell up to 2 SOL of it (…). Ask your user which they mean, …",
"details": { "reason": "overlap", "walletBalance": "2", "alreadyCommitted": "2", "requested": "2",
"orders": [{ "id": "lo_…", "status": "open", "summary": "sell 2 SOL for USDC when SOL ≥ $250",
"sells": "SOL", "buys": "USDC", "inAmount": "2", "condition": "above", "triggerPriceUsd": 250, "ocoGroupId": null }],
"choices": { "link": "…", "replace": "…", "independent": "…" } } } }
// The user wants a stop-loss for the same coins: send it again, linked
{ "inputToken": "SOL", "outputToken": "USDC", "amount": "2", "condition": "below", "triggerPriceUsd": 90, "onOverlap": "link" }
// 201: both orders now carry the same "ocoGroupId"Order statuses
openWaiting for its trigger price.heldAnother order in its group triggered. Cancelled if that order fills. Open again if it goes back to open for a retry or fails without trading (an error, a policy block, a rejected or expired approval), so a take-profit that could not sell does not take its stop-loss with it.triggeredThe price crossed: the swap is executing or waiting for the owner's approval. The rest of its group is held. If the keeper stops mid-swap without sending anything, the order is re-armed after 10 minutes.filledSwapped. The rest of its group is cancelled.failedFired but did not trade, after up to three attempts for errors worth retrying.cancelledBy the agent or owner, by a replace, because an order in its group filled, or because the owner turned limit orders off.expiredReached its expiry without firing.
Trailing stops
A trailing stop protects a position: it sells when the price falls a set percent from its highest point since the stop was placed.
- The stop
trailPct(1 to 50) sets the stop that far below the token's price when it is placed. Each keeper tick, about once a minute, a new high movestrailPeakUsdup and the stop,triggerPriceUsd, totrailPctbelow it. The stop never moves down. When the price falls to it, the token is sold at market intooutputToken, USDC by default. A fast fall can fill below the stop.- A limit order
- A trailing stop is a limit order that watches the token's own price, so
list_limit_orderslists it withtrailPctset,cancel_limit_ordercancels it, it counts toward the open-order cap and expires like one (7 days by default). The token must not be a stablecoin. - Limits
- It is checked against the spending limits when placed and again when it fires, like any order: unlike a grid's trailing top level, it is not exempt. Keep it inside the per-trade limit, and know that a daily cap already used up refuses it at the moment it fires.
- With a take-profit
- If other orders already sell the same tokens, the overlap rules above apply. Place the take-profit first, then the trailing stop with
onOverlap: "link", and whichever fires first cancels the other.
// POST /api/v1/trailing-stops: sell 2 SOL if it falls 10% from its high
{ "token": "SOL", "amount": "2", "trailPct": 10 }
// 201, with SOL at $150
{ "id": "lo_…", "status": "open", "condition": "below", "triggerPriceUsd": 135, "trailPct": 10, "trailPeakUsd": 150, … }
// later, after SOL reached $180: the stop moved up and stays there
{ "id": "lo_…", "status": "open", "triggerPriceUsd": 162, "trailPeakUsd": 180, "lastPriceUsd": 171.4, … }Grid bots
A grid bot buys a fixed amount at each price level below the market, sells each fill one level up and arms the buy again, between two prices, with an optional floor. It earns the spacing between levels while the price ranges and loses while it trends.
- Presets
presetshapes the grid around the current price, so a user only picks the token and the amount:cautiousbuys from 10% below the price up to 10% above, in 5 levels, with the floor 18% below;balancedbuys from 20% below the price up to 20% above, in 8 levels, with the floor 30% below;boldbuys from 30% below the price up to 30% above, in 10 levels, with the floor 45% below. Levels stay 5% or more apart in all three; what changes is how deep the grid buys and how far the floor sits. Any oflowerPriceUsd,upperPriceUsd,levelsandstopPriceUsdgiven alongside overrides the preset, and the floor keeps its distance below the lower bound.investmentUsdsplits a total over the buy levels instead ofamountPerLevelUsd.- Levels
- Spaced evenly in percent between
lowerPriceUsdandupperPriceUsd, at least 1% apart. The grid buys at every level but the top one, so it places up to levels − 1 orders, which count toward the agent's open-order cap, and the wallet must hold (levels − 1) ×amountPerLevelUsdof the quote stablecoin before it starts. - Fees per cycle
- A cycle earns the spacing between two levels, less Voyager's fee on the buy and on the sell, a 0.1% slippage allowance on each and about 0.01 USD of network fees on each. The network fees are a fixed sum, so on a few dollars a level they can cost more than the fee. Every grid's
profitabilitysays what that leaves for one level's amount, innetPerCyclePctandnetPerCycle, with averdict:loseswhen the spacing does not cover the costs,thinwhen they take more than about 40% of it,okotherwise. A grid that loses or runs thin carries awarningto pass on to the user; the dashboard marks it, lists it on the overview, and its Telegram start alert says so. If a running grid's verdict gets worse, because the costs it is checked against changed, the owner gets a Telegram alert. Unless the owner turns off Refuse losing grid bots in the agent's limits, a grid that would lose money on every cycle is refused withlosing_grid. It is an estimate: a thin token's fills, or a busy network, can cost more. - Rungs
list_gridsreturnslevelDetails, one entry per buy level with its prices, state, holding, cycles and realized profit; the dashboard shows it under Details. Every rung is a limit order carrying the grid's id and level, listed bylist_limit_orders. The keeper reconciles each level every tick: a filled buy gets a sell one level up for exactly what it received (the top level of a trailing grid waits for the price to clear the range instead), a filled sell gets the buy again, and a level the price has risen above gets its first buy. A rung that failed is armed again after an hour.- Only what it bought
- A grid sells only the tokens its own buys received and reserves no quote, so an agent's other orders see no overlap conflict from it. Its rungs cannot be cancelled, linked, replaced or re-timed one by one; cancel the grid instead.
- Floor
- With
stopPriceUsd, a price at or below the floor moves the grid tostopping: waiting rungs are cancelled and every level still holding tokens gets a market sell, a rung that fires at any price. Those sells go through the policy, retries and approvals like any order. A level the policy refuses to sell stays in the wallet, and the grid says so. - Trailing the top
- With
trailTopPct, the top level does not sell atupperPriceUsd. It holds while the price is inside the range; once the price clears it, the level gets a sell that many percent below the price and never belowupperPriceUsd, which the keeper raises as the price climbs and never lowers. A range still sells near the top; a breakout rides until the price falls back by the trail. The spending limits do not cap that sale, since it sells what one level bought inside them, grown by the run: it skips the per-trade, daily and monthly limits and does not count toward them, and the trade carriestrailingExit: true. The approval threshold still applies.levelDetailsshows the level astrailing, with its currenttrailStopUsd. - Cancel
cancel_gridwithdraws the waiting rungs and leaves what the grid bought in the wallet. WithsellHoldings, every level still holding tokens is sold at market right away. A rung that is executing settles on its own.
// POST /api/v1/grids, the short form: a preset around the current price and a total
{ "baseToken": "SOL", "preset": "balanced", "investmentUsd": 200 }
// or every number by hand, with the top level trailing a breakout by 10%
{ "baseToken": "SOL", "lowerPriceUsd": 80, "upperPriceUsd": 120, "levels": 9, "amountPerLevelUsd": 20, "stopPriceUsd": 70, "trailTopPct": 10 }
// 201
{ "id": "grid_…", "status": "active", "levels": 9,
"levelPrices": [80, 84.16, 88.54, 93.14, 97.98, 103.08, 108.44, 114.08, 120],
"amountPerLevel": "20", "investment": "160", "stopPriceUsd": 70, "trailTopPct": 10,
"stats": { "openOrders": 5, "filledBuys": 0, "filledSells": 0, "realizedProfit": "0", "baseHeld": "0", "heldCost": "0" },
"profitability": { "verdict": "ok", "stepPct": 5.199, "roundTripCostPct": 1.2954, "netPerCyclePct": 3.8414, "netPerCycle": "0.768279", "warning": null, … } }
// 400, when the wallet holds less than the grid needs
{ "error": { "code": "invalid_request",
"message": "The wallet holds 100 USDC, but the grid needs 160 USDC to buy all 8 levels (8 × 20). Fund the wallet, or use fewer levels or a smaller amount." } }Grid bot statuses
activeRunning: the keeper keeps every level armed.stoppingThe floor was reached. Waiting rungs are cancelled and the market sells are executing.stoppedThe floor sale is done, or partly refused by the policy;errorsays which.cancelledBy the agent or owner, or because the owner turned limit orders off.expiredRan to its expiry (30 days by default, 90 at most). Its orders were withdrawn; what it holds stays in the wallet.
Recurring buys
A recurring buy, also called dollar-cost averaging, spends the same USD amount on a token on a schedule, so the user buys over time instead of at one price.
- Schedule
- Every
intervalHours(1 to 720) the keeper spendsamountUsdofinputToken, USDC by default, onoutputToken,totalBuystimes (2 to 500). The first buy runs within a minute, or afterstartInHours. A stablecoin is spent at face value; any other input is sized at its price when the buy runs. - Each buy is a swap
- Every buy goes through the same swap as the agent's own, with the fee and every limit checked when it runs. A buy over the approval threshold waits for the owner. Its trades carry
source: "dca"and the plan'sdcaPlanId. - Missed buys
- A buy the limits refuse, or that fails, is skipped and not made up later, so a plan never spends more than
amountUsd×totalBuys. A passing error such as a failed quote is tried again a minute later, three times at most. After 3 missed buys in a row the plan stops. - Paused agent
- While the agent is paused its plans wait. Once it is resumed the late buy runs and the schedule carries on at its usual time of day. Buys are never doubled up to catch up.
- Funds
- When the first buy runs right away the wallet must already hold it. After that, each buy needs its funds only when it runs; a buy the wallet cannot pay for is missed.
- Limits warning
limitWarningsays when the owner's limits will refuse or hold some buys, for example a daily cap below what the plan buys in 24 hours. It only looks at the plan itself; the agent's other trading uses the same caps.
// POST /api/v1/recurring-buys: $25 of SOL every day for 30 days
{ "outputToken": "SOL", "amountUsd": 25, "intervalHours": 24, "totalBuys": 30 }
// 201
{ "id": "dca_…", "status": "active", "amountUsd": 25, "intervalHours": 24, "totalBuys": 30,
"buysRun": 0, "buysLeft": 30, "nextBuyAt": "2026-11-01T09:00:00.000Z", "lastBuyAt": "2026-11-30T09:00:00.000Z",
"stats": { "filledBuys": 0, "missedBuys": 0, "pendingBuys": 0, "spent": "0", "received": "0", "spentUsd": 0, "averagePriceUsd": null },
"limitWarning": null }Recurring buy statuses
activeBuying on its schedule.nextBuyAtsays when the next buy runs.completedEvery buy has run.stoppedToo many buys in a row were missed;errorsays why.cancelledBy the agent or owner, or because the owner turned limit orders off. What it bought stays in the wallet.
Telegram notifications
The owner can connect Telegram to get a message for each trade, blocked trade and approval request, for limit orders, grid bots and recurring buys, and for account changes. The bot only reports. Telegram alerts
- Connect
- Open Notifications in the dashboard and press Connect Telegram: Telegram opens @runvoyager_bot with a one-time code, and pressing Start connects that chat. Or send
/startto the bot for a one-time link to confirm where you sign in. Codes work once, expire after 15 minutes and need a wallet signature from the last 15 minutes. - Topics
- Trades and approvals (recurring buys included), grid bot fills, orders, grid bots and recurring buys starting or ending, and account changes. All four start on, and each has its own switch.
- Commands
/startconnects the chat,/statuslists the wallets it follows and/disconnectstops them. Private chats only.- What it cannot do
- Trade, approve, cancel or change a setting. A trade waiting for approval links to the dashboard, where approving needs a wallet signature.
- Delivery
- Right after the change, or within a minute for fills the keeper makes. Messages that arrive together are sent as one, failed sends are retried, and news more than an hour old is dropped rather than sent late.
Errors
- policy_violation
- Blocked by the owner's limits.
violations[].rulesays which one; do not retry unchanged. - insufficient_funds
- The wallet lacks the input token or SOL for fees.
- token_not_found / ambiguous_token
- Symbol not resolvable to one verified token. Use the mint address.
- invalid_request
- Bad input, e.g. both amount and amountUsd, or too many decimals.
- quote_failed / execution_failed
- Jupiter could not route or land the swap, or the token's mint account could not be read. Safe to retry with the same idempotency key.
- conflict
- Clashes with the current state. For a new limit order: other waiting orders sell the same token and, with it, would sell more than the wallet holds.
details.orderslists them; ask the user, then retry withonOverlap. - unauthorized
- Missing, invalid or revoked API key.
- rate_limited
- Over 60 requests per minute for this agent or 300 across the owner's agents, or too many market-data lookups queued at once.
Policy rules
- max_per_trade
- Trade value over the per-trade cap. A grid's trailing top level is exempt
- daily_limit / monthly_limit
- Would exceed the rolling 24h / 30-day budget. A grid's trailing top level is exempt and not counted
- token_not_allowed
- A side of the trade is not on the allowlist
- unverified_token / suspicious_token
- Buying a token Jupiter has not verified, or has flagged
- freezable_token / permanent_delegate_token / pausable_token
- Buying a token whose mint lets its issuer freeze accounts, move or burn holders' tokens, or pause transfers (USDC, USDT and other pinned majors excepted, and vetted tokenized stocks while they are on)
- transfer_hook_token
- Buying a vetted tokenized stock whose issuer has since set a transfer hook program. Vetted stocks are the Backpack Securities and xStocks tokens whose powers sit with the issuer's on-chain addresses; search_tokens marks them vettedStock
- vetted_stocks_off
- The agent tried to turn vetted tokenized stocks on after the owner turned them off
- slippage / price_impact
- Execution would exceed the owner's ceilings
- agent_paused
- The owner paused the agent
- limit_orders_disabled / max_open_orders
- Limit orders off (open ones, grids and recurring buys are cancelled), or too many open
- losing_grid
- A new grid's levels sit too close together for its costs, so every cycle would lose money. The owner can turn this off
Trade lifecycle
confirmedLanded on-chain.failedDid not land.rejectedBlocked by the policy before anything was signed.awaiting_approvalOver the owner's approval threshold; becomes confirmed, rejected or expired.submittedSent, outcome not yet known; it still counts against the budget until it settles.
Safety and risks
Voyager's checks narrow what an agent can do. They do not make trading safe.
- Limits cap exposure, not losses
- Your limits bound how much an agent can trade, not whether its trades are good. An agent can lose money on trades inside its limits. The one sale they do not cap is a grid's trailing top level, if the agent turns it on. With no caps set, the agent can trade everything in its wallet.
- Not financial advice
- Voyager executes what your agent asks for. Nothing Voyager or your agent says is financial, investment or tax advice.
- Swaps are final
- Solana transactions cannot be reversed. Prices move between quote and execution, so a swap can fail or fill at a worse price within your slippage limit.
- Agent wallets are hot wallets
- Voyager creates each agent wallet and keeps its key encrypted on its servers so it can sign that agent's trades. Fund it only with what the agent may trade, and withdraw what it no longer needs.
- Guard your API keys
- Anyone with an agent's key can trade within that agent's limits. Store keys like passwords, revoke any that leak, and pause the agent if something looks wrong.
- Tokens carry their own risk
- Jupiter's token verification and Voyager's checks reduce, but do not remove, the risk of scam, illiquid or volatile tokens.
- Early software
- Voyager is new and depends on Jupiter and the Solana network. Start with small limits, review your agent's activity, and comply with the laws and tax rules that apply to you.