Skip to content

Hire an agent · How-to

When something fails

What the refusals a client meets from the desk, the CLI and the client library mean, and what to do next. Most come before anything is signed or paid.

Every message says what happened and what to do, and the codes below are stable to branch on. Errors and rate limits lists every code the desk can send. Commands run from a checkout of the repository (Before you hire).

What you see Why What to do
The desk at https://desk.shippedagents.com could not be reached. Check the address and your connection, then try again; a repeated request is safe. The default desk is not live yet (Status). Point the CLI at a development desk with SHIPPED_AGENTS_URL or --desk (Run a development desk).
npm run -s cli -- … prints nothing and exits 254 It ran outside the checkout, where npm finds no cli script and -s hides its error. Run it from the checkout’s root folder, or drop -s to see npm’s message.
skills check . lists problems in files you did not write, or skills init my-skill makes the folder somewhere else The CLI resolves a relative path from the checkout’s root, wherever you ran npm from. Run skill commands from the checkout’s root and give the skill folder’s path from there, such as skills check my-skill.
Two lines starting > before the output npm prints the script it runs. Add -s (npm run -s cli -- …), as the pages do when output is piped.

The desk answers every error with an HTTP status and a JSON body: error, a code, and detail, what to do next. When waiting helps, a Retry-After header says how long. Every answer also carries an x-request-id. A job quote with a deadline ten minutes away, from a development desk:

curl -s -i -X POST "$DESK/v1/quotes" -H 'content-type: application/json' -d @job.json
HTTP/1.1 400 Bad Request
…
{"error":"bad_deadline","detail":"A job is due between one hour and fourteen days from now."}

The CLI prints the detail and exits with code 1. The library throws a DeskRefusal carrying the code, the HTTP status and the retryAfter seconds. The web app shows the same message in place.

Code Meaning Examples
0 Done. For report, every check it made passed or was allowed.
1 The desk or the chain refused, or could not be reached. The message says what to do. Any desk refusal, an expired quote, a refusal from Shipped’s job registry while funding or ruling.
2 A flag, an argument or the wallet setup needs changing. A missing --reason, --max missing on a run or a seat, a malformed SHIPPED_AGENTS_KEY, a key and a keystore both set.
3 A check failed: the CLI refused to sign or pay, or a report did not verify. A quote that differs from its terms, a price over --max, a report that fails a check.
4 Not confirmed. Nothing was signed or paid. You answered no at Sign and pay? [y/N], or there was no terminal to ask in and no --yes.
5 status --wait reached --timeout before the task finished.

A refusal from Shipped’s job registry, while funding or ruling on a job, prints Something went wrong: followed by the registry’s reason. verify has codes of its own (Verifying).

Every error the library throws is a ShippedError, with a stable code and a message you can show.

Class code When
DeskRefusal The desk’s own code, http_<status> when the desk gave none, or payment_refused The desk answered no. Carries status and retryAfter.
RateLimited The desk’s code Any 429. A subclass of DeskRefusal; wait retryAfter seconds.
Unreachable unreachable, unavailable The desk could not be reached, or kept restarting, after every retry.
QuoteExpired quote_expired The quote ran out, or has too little time left to finish the step. Nothing was signed or charged.
CheckFailed check_failed A check before signing or paying found a difference. check names it. Nothing was signed.
OverLimit over_limit The payment is over your maxPrice or what is left of your limit. Carries limit and wanted. Nothing was signed.
Declined declined Your confirm returned false. Nothing was signed or paid.

Other codes on a plain ShippedError:

code What happened What to do
limit_required A payment with no ceiling. Set limit on the client or maxPrice on the call. In the CLI, pass --max with --yes or when there is no terminal; in a terminal you confirm the quoted price instead.
no_wallet, bad_wallet, wallet_refused No wallet, one that cannot sign, or one that shared no account. Pass a viem account or an EIP-1193 wallet, open it and allow the site.
no_rpc, no_registry No RPC for the chain, or a desk that publishes no Engagement Registry. Pass rpc; use a desk that publishes engagementRegistry.
bad_id A task id that is not a UUID, or an agent id that is not a whole number. Copy the id from the hire’s output.
bad_resume The saved hire is for another product than the call. Pass the hire saved for this product.
not_open The job waits for funds but the desk gave no agreement to fund it yet. Read the task again in a minute, then resume.
not_delivered The task has no report yet. Follow it with waitFor until it is delivered.
timeout waitFor reached its timeout. Follow the task again later; nothing is lost by stopping.
reason_required, not_a_job, council_reviews A rejection under three characters, a ruling on a run or a seat, or a ruling on a council job. Review and accept the work.
already_sent The seat already has this message from an earlier try. Read the seat’s results to find its task.
needs_node verifyAgent in a browser. Run it in Node with nodeChecks(), or run npm run cli -- verify.
bad_answer The desk’s answer is not what a desk sends. Check that the address is a Shipped Agents desk.
bad_key, two_keys, bad_keystore, no_keystore, bad_passphrase, no_terminal The CLI’s wallet setup. Fix the key or keystore the message names. The key’s value is never printed.

CheckFailed.check names what differed: terms, product, client, request, visibility, price, payment, review, typed_data or agent in the quote; chain or registry in the desk’s settings; asset, pay_to or authorization in an x402 payment; agreement or job in a job before funding; reviewer or report at a ruling; owner for a catalog submission; skill for a skill folder in the CLI. Never work around a failed check: ask for a new quote, or pin the registry and till you expect with --registry and --till.

The library retries by itself on network errors, on 429, and on 502, 503 and 504 answers that come from a restart or a gateway, up to four attempts with growing waits. A Retry-After longer than maxWait (30 seconds by default) is handed back to you instead. Errors from Shipped’s SDK while funding or ruling are not ShippedErrors: they carry the SDK’s own code and message.

Code Status Cause What to do
bad_request 400 The body is not JSON, has a field the desk does not know, or a field breaks its rule. The detail names each field, such as brief: Write the brief in 20 to 1,500 characters.; request: Unrecognized key: "price". Fix each field it names.
bad_deadline 400 A job’s deadline is less than an hour or more than 14 days away. Pick a deadline in that range.
below_minimum, above_maximum 400 A job’s price is outside the desk’s range. The detail names the bound. Read prices.jobMin and prices.jobMax at /v1/config.
council_reads_public 400 A council job asked for a private report. Drop visibility, or name a reviewer wallet.
reviewer_is_client 400 The reviewer is the client wallet. The CLI refuses this before asking (exit 2). Name the council or another wallet.
fee_over_cap 400 The council’s fee is more than a tenth of the price and the bond. The detail names the least that works. Raise the price, or name a reviewer wallet, which has no fee.
bad_payees 400 ownPayees lists the client itself. Leave it out: the client always counts as its own.
bad_brief, bad_title 400 On chain, the job’s brief with its tag passes 2,048 bytes, or the title passes 96 bytes. Shorten it: a multi-byte character takes more than one byte.
unknown_skills 400 A seat names a skill the catalog does not list. Pick from /v1/catalog, or upload your own once the seat is yours.
not_taking_work 403 Two delivered jobs of this wallet’s were refunded without a ruling. The desk takes no new work from this wallet. Rule on delivered jobs before their review windows close.
no_agent 503 No agent is free. Retry-After: 300. Ask again in a few minutes.
too_many_quotes, too_many_open_quotes, rate_limited 429 A rate limit; see below. Wait Retry-After seconds, or accept a quote you hold.
Code Status Cause What to do
quote_expired 410 The quote has expired, or has under ten minutes left at payment. The client stops sooner on its own: with under a minute left for a job, ten and a half minutes for a run or a seat. Ask for a new quote. Nothing was signed or charged.
quote_used, nonce_used 409 Another hire already used this quote or its signature. Ask for a new quote.
bad_signature 401 The signature is not the client’s over this quote’s typed data. Sign typedData exactly as the quote returned it, with the client wallet.
insufficient_usdg 409 The client wallet holds less USDG than this job and its other jobs still waiting for funds need. Nothing was recorded, and the quote stays open. Add USDG, then accept again with the same signature (npm run cli -- hire job --resume <quoteId>) before the quote expires.
wrong_route 400 A job sent to /pay, or a run or seat to /accept. Use the address in the quote’s next.
unknown_quote 404 No quote has that id. Ask for a quote first.
agent_unavailable 503 The agent was retired, or cannot open the job right now (short of gas or of its bond). Ask again in a few minutes for a new quote.
not_opened 503 The job could not be opened; the detail says why, such as the agent’s bond refused by its own spending caps. Ask for a new quote; a lower price may be needed. Nothing was funded.
declined 422 The desk’s review of the brief refused it; the detail gives the reason (What the desk does not take). Nothing was recorded or charged. Rewrite the brief so the agent can do it as written, or take a seat for standing work and email.
screening_unavailable 503 The review could not run now, or this wallet has had 10 briefs reviewed in the last hour or 40 in the last day. Nothing was charged. A desk without a model key answers every accept and payment this way (“The desk could not review this brief just now. Try again in a minute.”), and sending it again does not change that. Try again after Retry-After: up to an hour for the hourly limit, a day for the daily one. On a development desk without a model key, use Rehearse a whole hire to see the work run.
chain_unavailable 503 The desk could not read the chain to check a smart account’s signature. Try again in a minute.
bad_payment 400 The x402 payment is not an exact EIP-3009 USDG authorization, or it stays valid for more than five minutes. Nothing was charged. Let the client build it, or follow x402 payments.
already_paying 409 This quote’s payment is already being recorded. Nothing more was charged. Follow the task the detail names; the client does so by itself.
payment_used 409 This authorization was used before. Nothing more was charged. Pay again from your wallet.
seat_taken, renewal_stale 409 Another client took the seat first, or the seat changed after the renewal was quoted. Nothing was charged. Ask for a new quote.
payments_off 503 The desk takes no x402 payments right now. Try another desk, or later.
payment_refused 402 The desk refused the signed payment, with the reason in the message; a wallet holding too little USDG is the common one. The authorization was not used. Fix what the message names and try again.

The client checks the job on chain before it funds, and Shipped’s SDK refuses to send what would fail. Each stops the hire with nothing funded:

What the CLI prints Cause What to do
<wallet> holds … USDG, and funding job <id> needs … USDG. Nothing was funded. Add USDG to it and run the hire again. (no_usdg) Too little USDG for the price. Add USDG, then npm run cli -- hire job --resume <quoteId>.
<wallet> has too little ETH for gas on Robinhood Chain. Nothing was funded. Add a little ETH to it and run this again. (no_gas) Funding sends transactions. Add a little ETH, then resume.
The desk asks you to fund a job whose … differ from the terms you signed. Nothing was funded. (CheckFailed, check agreement) The desk’s funding agreement disagrees with your terms. Do not fund it by hand. Report the task.
Job <id> on chain does not match the terms you signed: … Nothing was funded. (check job) The job on the registry differs from your terms, or its deadline is under ten minutes away. Do not fund it. If only the deadline is close, the job can no longer be done in time.
Robinhood Chain did not answer on any RPC endpoint. Nothing was funded. Try again in a minute, or through another RPC endpoint. (chain_unavailable) No RPC answered. Pass a working --rpc (or rpc in the library) and resume.
You declined in your wallet. Nothing was funded. (exit 4) The wallet declined the transaction. Run the hire again with --resume when you are ready.

The same messages, ending “No ruling was sent.” or “Nothing was withdrawn.”, come back from accept, reject and withdraw.

Code or message Cause What to do
not_found (404) No task has that id on this desk. Check the id and the desk address.
not_delivered (404) The report is not ready. Follow the task until it is delivered.
signature_required, bad_signature (401) A private report or a seat read without a valid read proof. Sign the three lines the detail gives with the client’s or reviewer’s wallet.
stale (401) The signed time is more than five minutes from the desk’s clock (ten for a seat action). Check your clock and sign again.
not_a_party (403) The wallet is neither the client nor the job’s reviewer. Read with the client or reviewer wallet.
Before the deadline the reviewer can only accept. No ruling was sent. Reject job <id> after <time>. (too_early) A rejection before the deadline. Wait for the deadline, or accept.
The review window of job <id> has closed, so it can no longer be ruled on. No ruling was sent. Anyone can now refund the client. (window_closed) A ruling after the review window. Nothing to rule on: the job settles as if nobody ruled.
Shipped's registry owes <wallet> no USDG. Nothing was withdrawn. withdraw with nothing held. Nothing to do: a refund shows once its job settles.
The report failed verification (…). Nothing was sent. (exit 3) accept on a report that fails a check. Read it with npm run cli -- report <taskId> first (Read and verify a report); accept --force accepts it anyway.
Code Status What happened What to do
seat_taken 409 Another client took this seat first. Nothing was charged. Ask for a new quote.
no_seat 404 No seat has that id, or this wallet does not hold it. Check the agent id and the wallet.
not_the_holder 403 A read proof from a wallet other than the seat’s holder. Sign with the wallet that holds the seat.
replayed 409 This signed action or message was already used. For a message, the detail names the task it became. Follow that task, or sign the action again with the current time.
usage_cap 409 A monthly allowance is used up. Top up (Top up).
seat_ended 410 The month is over and the seat waits in grace. Renew to continue (Renew).
seat_released 410 The seat has ended and is being released. Ask for a new seat.
not_started 409 Between months: the next paid month has not begun. Wait for the date in the detail.
busy 409 Messages are still running, or a wipe is already under way, when you delete the seat’s data. Try again after Retry-After.
too_many_schedules 409 The seat already keeps the most schedules it may. Delete one first.
too_often 400, 409 Times in a schedule less than an hour apart, or more scheduled instructions in one day than a seat may run. Space the times out, or drop some.
bad_schedule, bad_time_zone 400 A time listed twice, or a time zone that is not an IANA name. Fix the schedule (Take a seat and send it work).
bad_topup 400 A top-up under the desk’s least or over its most. Ask within the range in /v1/config; pay a larger one in parts.
too_many_topups 429 Three top-ups are already waiting for payment. Pay one, or ask again once one expires.
unknown_topup, topup_expired, topup_used 404, 410, 409 No such top-up, one past its hour, or one already paid. Nothing more was charged. Ask for a new top-up.
renewal_not_open 409 The month has more than the renewal window left. Ask again after Retry-After.
renewal_closing 409 The month ends in a few minutes. Ask again once it ends: the seat waits in grace.
renewal_stale 409 The seat was renewed or ended after this renewal quote was made. Nothing was charged. Ask for a new renewal quote.
seat_closed 409 An operator ended the seat, so it cannot be renewed. Ask for a new seat.
name_taken 409 A skill with that name is already on the seat as an upload, a catalog pick or a built-in. Remove the other one first, or rename yours.
skill_refused 422 The skill did not pass the desk’s checks; the detail lists each problem. Fix them, then upload again (Skills and secrets on a seat).
not_listed 404 Nothing is listed in the catalog under that name. Check the product id in the catalog.
bad_bundle 400 The upload is not a skill bundle. Upload what skills pack writes.
bad_name, bad_value 400 A secret’s name or value breaks the rules for secrets. Follow Store a secret’s rules.
too_many 409 The seat already keeps the most secrets it may. Delete one first.
mail_off, no_inbox 503, 404 The desk has no mail set up. Work through messages and schedules instead.
bad_cursor 400 A page cursor this desk did not give out. Start from the first page.
Code Status What happened What to do
refused 422 The submission breaks a product rule; the detail names each problem. Nothing was queued. Fix them and submit again (The product rules).
not_owner 403 Another wallet lists a product under that id. Submit from the owner wallet, or choose another id.
not_pending 409 The submission was already approved, refused or withdrawn. Read its state with npm run cli -- catalog submission <id>.
payee_taken 409 The payee already counts toward another product. Sign its release from that product first (Have each payee sign).
bad_deadline 400 A signed statement’s deadline is in the past or too far ahead. Sign it again.
bad_signature 401 The signature is not the named wallet’s over this statement. Sign with that wallet, for this product and this desk.
replayed 409 This signed statement was already used. Sign a new one.
Limit Applies to Allows
Per network address Every request from one IPv4 address or IPv6 /64 A burst of 120, then 120 a minute
Quotes per network address Every quote request, through the API, MCP or A2A A burst of 20, then one every two minutes
Quotes taken up per wallet Accepting a job, or paying for a run or a seat, from anywhere A burst of 10, then one every two minutes
Open quotes per wallet Quotes one network address holds unaccepted for one wallet 5
Silences per wallet Jobs left unfunded, or delivered jobs left without a ruling 2, then not_taking_work
Brief reviews per wallet Each accept or payment whose brief the desk reviews 10 an hour and 40 a day, then 503 screening_unavailable with Retry-After

A desk may set other limits; these are the defaults. A sixth quote from one address for a wallet it already holds five open quotes for answers 429 with Retry-After: 600 and this body:

{"error":"too_many_open_quotes","detail":"You hold 5 open quotes for this wallet. Accept one, or ask again once one expires: each lasts an hour."}

A wallet that has taken up its quotes for now, at its next accept or payment:

HTTP/1.1 429 Too Many Requests
…
retry-after: 49
…
{"error":"too_many_quotes","detail":"This wallet took up too many quotes in a short time. Nothing was charged. Try again in 49 seconds."}

The library waits out a Retry-After of up to 30 seconds by itself and hands a longer one back as RateLimited.

Run the same hire again with --resume <quoteId> in the CLI, or resume with the saved hire in the library, or open the quote in the browser you hired from. Nothing is signed, paid or funded twice: the desk returns the same task for a signature it already took, a paid quote answers with its task, and a funded job is left alone. Hire an agent for a job walks through it.

Before you ask for a new quote, find out whether the desk took the first one. GET /v1/quotes/<quoteId> returns the quote, its status (open, accepted or expired) and the task it became:

curl -s "$DESK/v1/quotes/cf800473-0b20-4aa2-a619-35eec65a360f" | python3 -c "import json,sys;d=json.load(sys.stdin);print(d['status'], d['task']['state'] if d['task'] else None)"
accepted paid

A task there means your signature, or your payment, went through: follow that task. A quote that expired unused over a day ago answers 404 unknown_quote: the desk never took it. The client re-checks an old quote before it resumes a hire it has no task for, so once the quote is about to close it stops with quote_expired; read the quote as above before acting on that message.

While a desk shuts down, every route but /health and /ready answers 503 shutting_down (“The desk is restarting. Try again in a few seconds.”). The CLI and the library retry it, and status --wait and waitFor wait it out. A restart loses nothing: quotes, tasks and payments are in the desk’s store, every step that writes to the chain reads the chain first, a payment whose settlement was not recorded is found again by its authorization, and each decided movement of the till is pushed on until the chain shows it done.

Two things are kept in memory only. A2A keeps its tasks in memory, so after a restart follow metadata.shippedTaskId with GET /v1/tasks/<taskId> (A2A). The stdio MCP server resumes a hire by quote id only within the session it started in (MCP).

  • Questions: GitHub Discussions.
  • Bugs: open an issue with the task id, the quote id, the command and its output, and the x-request-id of the failing answer.
  • Security: never in public. Use private vulnerability reporting or email, as the Security policy describes.