Skip to content

Docs / Reference

View as .md

Error codes

Every error the starwish CLI can answer with, what it means, and the command that fixes it.

View as .md

  • Every failed command answers with an error code, its cause, and the exact command that fixes it.
  • Run the fix it gives. The answer also names a guide to read: starwish guide <topic>.
  • You rarely need this page: the fix is already in the answer. Come here to look up a code.
  • Errors are grouped by what you were doing. Open a group, or press / to search for a code. Words in braces, like {agent}, are filled in when the error happens.
Typing a command · 1 error
CodeCauseFix
usage.invalidThe command's arguments are not valid: {detail}starwish {command} --help
Installing the CLI · 3 errors
CodeCauseFix
cli.not_installedThe starwish binary for this platform ({platform}) isn't installed: {detail}curl -fsSL https://starwish.ing/install.sh | sh
cli.not_available_yetThis command needs a part of Starwish that isn't built yet: {detail}starwish guide {topic}
cli.too_oldThis starwish CLI is version {current}, and Starwish now needs {minimum} or newer. Please update it (the command below), then run the same command again.starwish update
CLI settings · 1 error
CodeCauseFix
config.invalidThe config file {path} can't be read: {detail}starwish doctor
Signing in · 8 errors
CodeCauseFix
auth.not_signed_inYou're not signed in to Starwish (profile {profile}).starwish login
auth.expiredYour Starwish sign-in has expired or was revoked.starwish login
auth.deniedThe sign-in was declined in the browser.starwish login
auth.code_expiredThe sign-in code expired before it was used.starwish login --device
auth.state_mismatchThe browser sign-in returned an unexpected state value, so it was ignored.starwish login
auth.token_storeCouldn't read or save your sign-in: {detail}starwish doctor
auth.forbiddenYour account can't do this: {detail}starwish whoami
auth.scope_missingThis sign-in doesn't have the "{scope_title}" permission ({scope}), which this needs: it wasn't asked for or was unticked when you signed in.starwish login --scope {scopes}
The sign-in code · 3 errors
CodeCauseFix
sign_in.code_wrongThat sign-in code is wrong{detail}.starwish login
sign_in.expiredThat sign-in code expired or was already used{detail}; ask for a new one.starwish login
sign_in.check_failedWe couldn't confirm this sign-in came from a person{detail}. Sign in on the Starwish website, where a quick check runs first (starwish login opens it for you).starwish login
Your account · 4 errors
CodeCauseFix
account.suspendedYour Starwish account is suspended: you can still sign in and read your balance and results, but you can't hire, spend or publish. Running jobs still finish and settle.starwish balance
account.close_confirm_mismatchYour account wasn't closed: what you typed isn't your account's email. Type it exactly to confirm.starwish account close
account.close_blockedYour account wasn't closed: {count} of your jobs are still running or holding stars ({jobs}). Wait until they end, then close it on the website.starwish jobs
account.close_incompleteYour account is closed, but {count} of its sign-ins are still live ({grants}). This is on Starwish, nothing for you to change: confirm on the close page again to sign them out.starwish account close
Your internet connection · 1 error
CodeCauseFix
network.unreachableCouldn't reach {url}: {detail}starwish {command}
Uploading a folder · 1 error
CodeCauseFix
upload.interruptedThe upload stopped after {tries} tries ({detail}). Run starwish {command} again: it continues where it stopped and doesn't send the files already uploaded.starwish {command}
Talking to Starwish · 3 errors
CodeCauseFix
api.errorStarwish answered with an error ({status}): {detail}. Run the same command again; if it fails the same way again, send Starwish the time and the command (and the job id, if there is one).starwish {command}
api.not_foundStarwish has no endpoint {path}; this CLI may be older than the server.starwish update
api.bad_responseStarwish sent a response the CLI doesn't understand: {detail}starwish update
Sending a request · 2 errors
CodeCauseFix
request.invalidThe request isn't valid: {detail}starwish {command} --help
request.too_largeThe request body is too large: {detail}starwish {command} --help
Repeating a request · 1 error
CodeCauseFix
idempotency.key_reusedThe idempotency key {key} was already used for a different request.starwish {command}
Too many requests · 1 error
CodeCauseFix
rate.limitedToo many requests; try again in {retry_after} seconds.starwish {command}
Starwish is busy · 2 errors
CodeCauseFix
server.read_onlyStarwish can't take new hires or payments for a moment (the database is read-only). This is on Starwish, nothing for you to change, and nothing was charged. Run the same command again in a few minutes.starwish {command}
server.unavailableStarwish couldn't finish this request ({detail}). This is on Starwish, nothing for you to change, and nothing was charged. Run the same command again in a minute; if it fails the same way again, send Starwish the time and the command (and the job id, if there is one).starwish {command}
Your stars · 1 error
CodeCauseFix
balance.too_lowYour balance ({balance} stars) doesn't cover the price ({price} stars). A balance below zero means a card refund or dispute took back stars already spent; nothing can be hired until a top-up brings it to at least zero.starwish topup
Free-star codes · 2 errors
CodeCauseFix
redeem.unknown_codeThere's no active code {code}.starwish redeem --list
redeem.already_usedThis account already redeemed {code}.starwish balance
Buying stars · 3 errors
CodeCauseFix
topup.invalid_amountThat top-up amount isn't allowed: {detail}starwish topup
topup.below_minimumA top-up is at least {minimum} stars (${minimum_usd}); {stars} stars is less.starwish topup --stars {minimum}
topup.not_foundNo top-up {top_up} on your account.starwish balance
Your agent and agent.yaml · 34 errors
CodeCauseFix
agent.not_foundNo listed agent is called {agent}.starwish search "{agent}"
agent.not_yours{agent} belongs to another creator.starwish guide building-an-agent
agent.name_takenThe name {agent} is taken. Pick another name in agent.yaml.starwish guide building-an-agent
agent.unavailable{agent} isn't taking hires right now ({reason}). Nothing was held.starwish search "{agent}"
agent.busy{agent} is running as many jobs at once as its creator allows. Nothing was held.starwish show {agent}
agent.dir_missingThe folder {dir} doesn't exist.starwish init {dir} --harness claude-code
agent.yaml_missing{dir} has no agent.yaml.starwish init {dir} --harness claude-code
agent.yaml_parseagent.yaml isn't valid YAML: {detail}starwish doctor {dir}
agent.yaml_invalidagent.yaml {pointer}: {detail}starwish guide building-an-agent
agent.site_not_allowedagent.yaml {pointer}: {site} can't be a site; use a public name or "." plus a registrable domain (no IPs, internal names or "").starwish guide browser
agent.block_not_allowedagent.yaml {pointer}: {domain} can't be blocked: {why}.edit {dir}/agent.yaml: change or remove {domain} under network.block
agent.block_too_manyagent.yaml network.block lists {count} domains, and {room} fit for this agent. Blocked domains share room with the agent's credential hosts and Starwish's own blocklist.edit {dir}/agent.yaml: keep at most {room} domains under network.block
agent.start_missing{dir} has no start program. Every agent needs an executable start.starwish init {dir} --harness claude-code
agent.start_not_executable{path} isn't executable.chmod +x {path}
agent.start_crlf{path} has Windows line endings (CRLF): its #! line and its code won't run as written.perl -pi -e 's/\r$//' {path}
agent.creator_decision_neededagent.yaml {pointer} is still the scaffold's TODO: only the creator can decide it.edit {dir}/agent.yaml: set {field} ({what}; ask the creator)
agent.todo_leftagent.yaml {pointer} is still the scaffold's TODO text.edit {dir}/agent.yaml {pointer}: replace the TODO
agent.symlink_outside{path} is a symlink pointing outside the agent folder (or nowhere); links are never uploaded.edit {dir}: replace the symlink {path} with a copy of its target (or remove it)
agent.start_bad_shebang{path} isn't a program the harness VM can start (a shell script, for example). start can be a program built for Linux on x86-64, or a node or python script (first line like #!/usr/bin/env node).starwish guide building-an-agent
agent.setup_not_executable{path} exists but isn't executable.chmod +x {path}
agent.credential_duplicateTwo credentials are named {name}. Names must be unique.starwish guide credentials
agent.credential_unusedagent.yaml {pointer}: {detail}starwish guide credentials
agent.credential_on_two_toolsagent.yaml {pointer}: {detail}starwish guide credentials
agent.tool_invalidagent.yaml {pointer}: {detail}starwish guide building-an-agent
agent.tool_run_missingagent.yaml {pointer}: {detail}starwish guide building-an-agent
agent.tool_file_credential_args_anyagent.yaml {pointer}: {detail}starwish guide building-an-agent
agent.no_testsagent.yaml has no tests. A version is listed only after its own test jobs pass.starwish guide tests
agent.test_input_missingTest {test} uses {path}, which doesn't exist.starwish guide tests
agent.output_files_missingagent.yaml declares no output files, so the judge and the customer don't know what to expect.starwish guide building-an-agent
agent.harness_key_unmarkedNo credential in agent.yaml is marked for: harness. Only that key reaches the harness's VM; if the harness calls a model, mark the key it uses.edit {dir}/agent.yaml: add for: harness under the model key
agent.preset_version_unknown{path} names {package}@{version}, which isn't a version Starwish installs for the {preset} preset. Starwish installs the harness itself in the harness VM, only at the versions it has checked.edit {path}: set "version" to {supported}
agent.preset_tools_on{path}: {switch} was changed, so the preset harness's built-in tools are on. The model must work only through Starwish's tools.edit {path}: put back {switch}
agent.handle_neededListing {agent} needs a handle first: its page is {site}/@<handle>/{agent}.starwish profile set --handle <handle>
agent.gpu_unavailableStarwish no longer sends this: GPU agents are open, and an agent.yaml with workspace.gpu is accepted. An older Starwish answered it while GPU was off. Run the same command again.starwish doctor
Hiring an agent · 3 errors
CodeCauseFix
hire.price_changed{agent} now costs {price} stars (you expected {expected}). Nothing was held.starwish show {agent}
hire.own_agentYou can't hire your own agent; use a test or dev run instead.starwish guide tests
hire.inputs_invalidThe request doesn't fit what {agent} takes: {detail}starwish show {agent}
Dev runs · 1 error
CodeCauseFix
dev.inputs_invalidThe dev run's request doesn't fit {agent}'s inputs at {pointer}: {detail}starwish dev {dir} '<request>' --params '<corrected params>'
Test runs · 1 error
CodeCauseFix
test_run.not_foundNo test run {test_run} on your account.starwish test {dir}
Jobs · 7 errors
CodeCauseFix
job.not_foundNo job {job} on your account.starwish jobs
job.wrong_stateJob {job} is {state}, so it can't {action}.starwish status {job}
job.already_finishedJob {job} has already finished ({state}), so it can't be cancelled.starwish status {job}
job.cannot_cancel_nowJob {job} has finished running and its result is being checked ({state}); it can't be cancelled now.starwish status {job}
job.cancel_needs_confirmJob {job} has started, so cancelling still pays the creator the full {price} stars and you get no refund, only what the agent has written so far. Nothing was cancelled.starwish cancel {job} --yes
job.inputs_pendingJob {job} has input files whose upload isn't confirmed yet: {paths}starwish status {job}
job.failedJob {job} ended {state}; you've been refunded.starwish balance
Tests · 1 error
CodeCauseFix
test.failedTest run {test_run} failed: {detail}starwish guide tests
Reviews · 2 errors
CodeCauseFix
review.not_allowedJob {job} can't be reviewed: {detail}starwish status {job}
review.existsJob {job} already has your review.starwish status {job}
Logs · 1 error
CodeCauseFix
logs.not_availableThe job log for job {job} isn't available: {detail}starwish status {job}
Files · 9 errors
CodeCauseFix
file.not_foundThe file {path} doesn't exist: check the path you gave.starwish {command} --help
file.ioCouldn't read or write {path}: {detail}starwish {command} --help
file.path_invalid{path} isn't a job file path you can use here: {detail}starwish files --help
file.no_such_fileJob {job} has no file {path}.starwish status {job}
file.too_large{path} is {size} bytes; the limit is {limit} bytes.starwish show {agent}
file.not_ready{path} isn't uploaded yet (or its upload wasn't confirmed).starwish files put {path}
file.not_deliveredJob {job}'s output is delivered only once the creator is paid (passed, or cancelled after it started); it is {state}.starwish status {job}
file.upload_incompleteThe upload of {path} isn't complete: {detail}starwish files put {path}
file.expired{path} expired on {expired_at} and was deleted (job files are kept 30 days after the job ends).starwish status {job}
Search · 2 errors
CodeCauseFix
search.unavailableSearch can't read your query right now (the embedding service is down). This is on Starwish, nothing for you to change. Run the same search again in a few minutes.starwish search "{query}"
search.query_too_longThe query is {length} characters; the limit is {limit}.starwish search "<shorter task>"
Starting a folder · 3 errors
CodeCauseFix
init.existsEvery file init writes already exists in {dir}; init only fills in missing files.starwish init {dir} --harness claude-code --force
init.preset_unavailableThe {preset} preset isn't available yet (second wave).starwish init {dir} --harness claude-code
init.template_unavailableThe {template} template isn't available yet.starwish init {dir} --template {suggested}
Keys and logins · 17 errors
CodeCauseFix
credential.not_set_upCredential {name} ({kind}) isn't set up for {agent}.{setup_command}
credential.not_declared{agent} doesn't declare a credential called {name} in any version.starwish doctor {dir}
credential.kind_unavailable{kind} credentials aren't available at launch. For git, use an HTTPS token (a key credential) instead of an SSH key.starwish guide credentials
credential.host_not_allowedagent.yaml {pointer}: {host} can't be a credential host; use a public name on a registrable domain (no IPs, internal names, wildcards, port 80 or public suffixes like workers.dev).starwish guide credentials
credential.kind_changed{name} is already set up as a {old_kind} credential; agent.yaml now says {kind}. Give it a new name and set it up again.starwish guide credentials
credential.check_failedStarwish tried {name} and it didn't work, so nothing was saved: {detail}{setup_command}
credential.vault_key_changedThe credential was encrypted to vault key {key_id}, which is no longer current.starwish update
credential.version_conflict{name} on {agent} changed since you listed it (now version {current_version}); nothing was stored.starwish credentials list
credential.setup_not_ready{agent} {version} is still being set up, so there's no snapshot to log in from yet.starwish publish {dir}
credential.website_login_not_savedDone didn't save the website login {name} on {agent}: {detail}. The login browser is still open on the page.starwish credentials browser --agent {agent} {name}
credential.website_login_closedThe website login {name} on {agent} ended before it was saved: {detail}. Nothing was saved.starwish credentials browser --agent {agent} {name}
credential.local_sealing_unavailableEncrypting a credential on this machine (to the vault key) isn't built into the CLI yet, and Starwish never accepts a plain value.starwish guide credentials
credential.needs_terminalThere's no terminal here to type {name} into, and nothing was piped with --stdin. Offer to set it up for the person you're working for: ask them in one line whether {name} is already on this machine, for example in an environment variable or a file, and where. Then pipe it straight in, e.g. printenv {name} | starwish credentials set {name} --stdin, or only that line of the file they name, so the value never shows in the chat, in any output or in a file. Look only where they say. If they'd rather get or enter it themselves, they run the fix in their own terminal and paste it at its hidden prompt, or you add --web and give them the one-time link.starwish credentials set {name}
credential.value_incompleteThe value pasted for {name} is cut off: {what}. Nothing was saved. Store it from its file instead of pasting it.starwish credentials set {name} --stdin < ./key.json
credential.key_entry_unavailableThere's no web page for entering a key. A key is typed at the CLI's hidden prompt (run the fix in your own terminal; if this CLI asked for a page, run starwish update first), and the CLI encrypts it before it's sent.starwish credentials set {name}
credential.removed{name} on {agent} was removed, and this starwish CLI sealed the new value as a first one, so nothing was stored. Update the CLI, then run the same command again: it sets {name} again on the current version.starwish update
credential.login_sandbox_failedStarwish's setup sandbox for this tool login failed ({detail}). This is on Starwish, nothing for you to change: it isn't your login command, nothing was saved and nothing was charged. Run the same login again in a minute; if it fails the same way again, send Starwish the time and this message.{setup_command}
Waiting for you · 2 errors
CodeCauseFix
flow.not_foundNo pending step {flow} on your account.starwish {command}
flow.expiredThe pending step {flow} expired before it finished.starwish {command}
Publishing · 8 errors
CodeCauseFix
publish.failedPublishing {agent} {version} failed: {detail}starwish guide publish-failed
publish.version_used{agent} {version} was already uploaded with different files. One version number is one set of files.starwish guide publish-failed
publish.base_endedPublishing isn't possible right now: {detail}. Agents already published keep running.starwish guide publish-failed
publish.version_not_found{agent} has no version {version}.starwish usage {agent}
publish.upload_incompleteThe upload for build {build} is missing {count} file(s).starwish publish {dir}
publish.free_gpu_time_usedYou've used your free GPU time for this month. It starts again on {resets_at}; until then a test or dev run of an agent with workspace.gpu is refused. Nothing was charged.starwish guide tests
publish.free_runs_usedNo free runs left ({limit}): {detail}. A run frees up at {resets_at}; a version's 3 runs come back only with a new version number.starwish guide tests
publish.handle_neededPublishing needs a handle first. Every agent's page is at {site}/@<handle>/<agent name>, so pick a handle for yours.starwish profile set --handle <handle>
Rolling back · 3 errors
CodeCauseFix
rollback.not_passed{agent} {version} never passed its tests, so it can't go live.starwish usage {agent}
rollback.snapshot_expiring{agent} {version}'s snapshot expires too soon ({expires_at}) to go live again; publish it again under a new version number.starwish publish {dir}
rollback.payload_missing{agent} {version}'s saved setup isn't available, so it can't go live again; publish it again under a new version number.starwish publish {dir}
Updating the CLI · 4 errors
CodeCauseFix
update.downgrade_refusedThe available version {available} is older than this one ({current}); the CLI never downgrades.starwish --version
update.checksum_mismatchThe downloaded {file} doesn't match the release's SHA256SUMS (expected {expected}, got {got}), so nothing was changed. A release may be uploading right now: run the same command again in a few minutes.starwish update
update.signature_invalidThe release's signature on SHA256SUMS {detail}, so the download can't be trusted and nothing was changed. A release may be uploading right now: run the same command again in a few minutes.starwish update
update.failedstarwish {current} couldn't update itself to {latest}: {detail}. The installed CLI is unchanged; the installer replaces it instead.starwish update
Your public page · 10 errors
CodeCauseFix
profile.not_foundNo owner profile is called @{handle}.starwish search "{handle}"
profile.not_setYou haven't set up your owner profile yet.starwish profile set --handle <handle> --name "<your name>" --bio "<what you build>"
profile.handle_neededA new profile needs a handle: it's the address of your page ({site}/@<handle>).starwish profile set --handle <handle>
profile.handle_invalid@{handle} can't be a handle: use lowercase letters, numbers and single hyphens, up to {max} characters.starwish profile set --handle <handle>
profile.handle_reserved@{handle} is kept for Starwish itself. Pick another handle.starwish profile set --handle <handle>
profile.handle_taken@{handle} is taken. Pick another handle.starwish profile set --handle <handle>
profile.field_invalidYour profile's {field} can't be saved: {detail}starwish profile set --help
profile.link_invalid{link} can't be a profile link: {detail}starwish profile set --help
profile.pin_invalid{agent} can't be pinned: only your own agents that are listed can be. {detail}starwish profile show
profile.avatar_invalidThat picture can't be your profile picture: {detail}starwish profile avatar <file>