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
outerlayer login keeps waiting, or says the link expired
In a terminal, login prints a link and a code, then waits.
- Open the link.
- Check that the dashboard shows the same code.
- Approve the login.
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.
outerlayer connect exits 2: “has no link to … yet”
The repository is not linked to the factory. The message prints the link to the factory’s Work page.
- Open the link.
- Choose Connect GitHub repository and grant the App access to the repository.
- Choose Link repository.
- Run
outerlayer connectagain.
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 seemissing --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_URLand remove--url. - To call the other gateway, set
OUTERLAYER_API_KEYfor it besideOUTERLAYER_URL.
--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 withmissing and names each value it lacks, such as missing --url, a login or OUTERLAYER_API_KEY, --app-id.
- Run
outerlayer loginwith nothing piped, and approve the link. - Run
outerlayer connectin the repository to choose a factory.
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.
Commands use a factory key instead of your login
The CLI uses a factory key before a login. See Credential resolution. Runouterlayer 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
apiKeyfield 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 gavelogin.
- Check the Factory ID on the factory’s Settings → General.
- Check the key on Settings → API keys.
- Run
loginagain with the right key and id.
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.
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_WORKnamed 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.
The status line shows only the session cost
The daemon is not running. Start it in a terminal that you keep open:outerlayer daemon.
Hooks stopped firing after a Claude Code update
Runouterlayer 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/nameto 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--passor--fail. Run the command yourself, outside the agent session, with your own login.verdict_on_criterion:--passand--failcover 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:
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 withOUTERLAYER_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 ofouterlayer doctor.