# Fix auth.required

auth.required
Recorded exits: 1 (failed). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/auth.required, targets/your-idp-at-the-edge, reference/agc-environment-variables, build/the-edge-gate, reference/error-code-catalog

## Steps

Cause: A non-browser request without an app session
Next action: Sign in in a browser first; API clients get no redirect
[2]

Cause: `agc ship --from-git` with no `AGC_TOKEN`.
Next action: `AGC_TOKEN=<a Ship-only deploy key> agc ship --from-git <commit>`.
[3]

Cause: `devbox`, `feedback`, `init`, `ship`, `status`, `any app command`
Next action: This laptop has no Agent Cloud agent yet. / This machine has no Agent Cloud token yet. / Existing-app verification requires an enrolled identity; no identity was created. / --from-git ships with the key in AGC_TOKEN, and none is set. / This machine isn’t set … | Run `agc devbox --join <code>` with the join code from Start an app in the console. / Run `agc init` in an app folder first; feedback is filed by that identity. / Enroll explicitly. / Make a Ship-only deploy key in the app’s settings (it ships that one app an… | commands/devbox.ts:170, commands/feedback.ts:65, commands/init.ts:90 +3
[5]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/auth.required — Reference](/docs/fix/auth.required.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [targets/your-idp-at-the-edge — Errors](/docs/targets/your-idp-at-the-edge.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/agc-environment-variables — Errors](/docs/reference/agc-environment-variables.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [build/the-edge-gate — How it works](/docs/build/the-edge-gate.md#how-it-works) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[5] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [targets/your-idp-at-the-edge](/docs/targets/your-idp-at-the-edge/known-issues.md)
- [reference/agc-environment-variables](/docs/reference/agc-environment-variables/known-issues.md)
- [build/the-edge-gate](/docs/build/the-edge-gate/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/auth.required: <what is wrong>; error auth.required" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
