# Fix init.reset_with_token

init.reset_with_token
Recorded exits: 2 (usage). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/init.reset_with_token, reference/agc-environment-variables, reference/error-code-catalog

## Steps

Cause: `agc init --reset-identity` while `AGC_TOKEN` is set.
Next action: Replace the deploy key in the console, or unset `AGC_TOKEN` deliberately.
[2]

Cause: `init`
Next action: AGC_TOKEN is set, so --reset-identity would change nothing: agc uses that token, not this machine’s identity. | In CI, replace the deploy key in the app’s settings. To use this machine’s own agent instead, remove AGC_TOKEN deliberately and run it again. | commands/init.ts:1542
[3]

## 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/init.reset_with_token — Reference](/docs/fix/init.reset_with_token.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [reference/agc-environment-variables — Errors](/docs/reference/agc-environment-variables.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [reference/agc-environment-variables](/docs/reference/agc-environment-variables/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/init.reset_with_token: <what is wrong>; error init.reset_with_token" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
