Skip to main content
Run outerlayer doctor first. Most failing checks name their fix. If that does not help, find the message or symptom you see below. For a build that fails or never starts, see Troubleshoot builds.

Signing in and choosing a factory

In a terminal, login prints a link and a code, then waits.
  1. Open the link.
  2. Check that the dashboard shows the same code.
  3. Approve the login.
If the link expired, login ends with the login link expired; run outerlayer login again. Run outerlayer login again. In an agent’s shell, login prints one JSON line with "status": "waiting" and exits 75. Approve the link in that line. Then run the check command from the same line, outerlayer login --check <id>. Exit 75 again means it is still waiting. See outerlayer login.

login exits 2 with “—url and —app-id apply only to a piped key”

Browser login takes neither flag. Remove them, or pipe a key in with them.

login says it “is waiting for an API key on stdin”

Something left stdin open, so login waits for a key. Close stdin, or run login with nothing piped to sign in by browser. The repository is not linked to the factory. The message prints the link to the factory’s Work page.
  1. Open the link.
  2. Choose Connect GitHub repository and grant the App access to the repository.
  3. Choose Link repository.
  4. Run outerlayer connect again.
See Connect a repository.

outerlayer connect says “you can use no factory yet”

Your login has access to no factory. Create one in the dashboard, or ask an owner to give you access to one. Then run outerlayer connect again.

A command says no gateway URL or address is saved

You see missing --url, no gateway address is saved or no gateway URL. Run outerlayer login, which saves the address. You can also set OUTERLAYER_URL or pass --url. See Credential resolution.

A command says the gateway address is not the one your credential belongs to

The CLI sends a saved login or key only to the gateway it was made for. OUTERLAYER_URL or --url names another gateway.
  • To use the saved login, unset OUTERLAYER_URL and remove --url.
  • To call the other gateway, set OUTERLAYER_API_KEY for it beside OUTERLAYER_URL.
The message also names an --api-key flag. Do not use it, because a key on the command line shows in shell history.

A command says credentials are missing

The message starts with missing and names each value it lacks, such as missing --url, a login or OUTERLAYER_API_KEY, --app-id.
  1. Run outerlayer login with nothing piped, and approve the link.
  2. Run outerlayer connect in the repository to choose a factory.
If the message says you are logged in but no factory is chosen, run outerlayer connect. Outside a connected repository, pass --app-id instead. To use a key you already have, pipe it in. Never pass the key on the command line.
See API keys.

Commands use a factory key instead of your login

The CLI uses a factory key before a login. See Credential resolution. Run outerlayer doctor. A Factory key check means a key is in use, and its detail says where the key came from. To use your login instead:
  • Run unset OUTERLAYER_API_KEY, and remove the variable from your shell profile.
  • Delete the apiKey field from ~/.outerlayer/config.json.

”not authorized — the API key is unknown, expired, or bound to a different factory”

The key was revoked, or it belongs to a different factory than the id you gave login.
  1. Check the Factory ID on the factory’s Settings → General.
  2. Check the key on Settings → API keys.
  3. Run login again with the right key and id.
With a login, the message says the login expired or was revoked. Run outerlayer login.

Sessions and sync

outerlayer sync says “not launched with OUTERLAYER_WORK”

The sessions started without the variable. They stay on this machine and never upload. A runner always sets the variable for its builds. To debug a build in your own session, start the session with the item’s number. Read the number on the Work page.
See Debug a build in your own session.

outerlayer sync exits 2

OuterLayer rejected at least one session. The output lists each rejected session with its reason, such as session belongs to another work item. The CLI does not send a rejected session again by itself. Fix the cause, then run outerlayer sync --all. See outerlayer sync.

The session started but it is not on the work item’s page

Read ~/.outerlayer/spool/hook-errors.log. The usual reasons:
  • OUTERLAYER_WORK named an issue, such as #42, and not an item number. Read the item’s number on the Work page.
  • The number names no item in this factory, or a withdrawn item. Check it on the Work page.
  • The CLI could not reach the gateway.
Fix the cause. Then end the session and resume it with the right variable. Its whole transcript then uploads. See If you forgot the variable.

The status line shows only the session cost

The daemon is not running. Start it in a terminal that you keep open:
See outerlayer daemon.

Hooks stopped firing after a Claude Code update

Run outerlayer doctor and read Hooks installed and Settings JSON valid. Hooks installed also fails when a hook runs a file that no longer exists, such as a file in a cleared npx cache. Install the CLI globally, then install the hooks again. outerlayer init --local backs up your settings file first.

Work items and review

outerlayer work build says the repository “is not linked to this factory”

The repository is not linked to the factory. The error code is repository_not_connected. outerlayer work build --issue <n> uses the repository of the checkout’s remote. Do one of these:
  • Link the repository on the factory’s Settings → Repositories. See Connect a repository.
  • Pass --repo owner/name to name a repository that is linked.

work claim is refused with work_item_not_requested

The item has no unused build request. Run outerlayer work build --issue <n>, then claim again. An item with an open pull request also needs a thread that waits on an agent. Send a thread to the agent on the item’s page first. See work claim.

work comment is refused with verdict_needs_person, verdict_on_criterion or artifact_needs_attach

  • verdict_needs_person: only a person records --pass or --fail. Run the command yourself, outside the agent session, with your own login.
  • verdict_on_criterion: --pass and --fail cover the whole item. Remove --criterion. To note one criterion, post a plain comment.
  • artifact_needs_attach: add --attach, or remove --artifact.
work comment lists every code.

emit criteria is refused (409)

The item already has a recorded list, and only a person may replace it. Run the command yourself, in a plain shell and not in an agent session:
If you change the issue’s criteria with outerlayer spec edit, the edit records them on the item for you. emit criteria says who may replace a list.

Your judges do not apply to your pull requests

OuterLayer reads the judges from the pull request’s base branch. They apply only once the .outerlayer/ files are on that branch. Commit .outerlayer/ and merge it into that branch. See step 3 of the quickstart.

An artifact refuses to emit inside a session

The session was not started for a work item, so its artifacts cannot upload. Start the session with OUTERLAYER_WORK set to the item’s number. Or run the emit command from a plain shell with --pr.

The Judges tab shows an error row

A judge file on the base branch failed to load. The row on the work item’s Judges tab names the file and the problem. Fix the file and merge the fix into the base branch. See When a file fails to load.

When nothing here helps

Email hello@outerlayer.ai. Include the command you ran, the message it printed and the output of outerlayer doctor.